Forum Discussion

sbliss304's avatar
sbliss304
Copper Contributor
Mar 01, 2023
Solved

How to return a single variable from various variables

Hi, my spreadsheet contains various fields that require various inputs which I am trying to automate. I am only trying to automate certain fields. 

 

There are 18 sites and 4 departments and I'm trying to find a way that if I enter the site into a cell, the other selected cells automatically fill in information like the set criteria below. 

 

I tried the IF function but it wouldn't let me enter more than one site.

 

Can you help?

Many thanks in advance,

Sam

SiteDepartmentPhoneField1Field2Field3
AldermastonSalesYesOctOctBG964
SkegnessAdminYesSqdSqdBG654
SkegnessSalesYesNovNovBG395
BromleyHead OfficeYesRmnRmnBG

462

 

  • Thank you for uploading the file.

     

    I have added the formula and I have also made some changes that I think are the ones you were looking to have using the data validation.

     

    sbliss304 

  • ricardojose's avatar
    ricardojose
    Brass Contributor
    It sounds to me that you are looking for the XLOOKUP formula. But, maybe if you upload your file I will be able to see what you are actually trying to achieve there.
    • sbliss304's avatar
      sbliss304
      Copper Contributor

      Hi ricardojose,

       

      I've uploaded a file so you can see the layout and fields. There are 2 worksheets:

       

      Users are where I would want the values populated.

      LOOKUP are the values I would like used used for each office.

       

      What I'm trying to achieve is that, if enter the Site into the user worksheet it pulls through the other fields of data relating to that office from the LOOK-UP worksheet.

       

      Thank you for helping me with this!!!

      Best,

      Sam  

      • ricardojose's avatar
        ricardojose
        Brass Contributor

        Thank you for uploading the file.

         

        I have added the formula and I have also made some changes that I think are the ones you were looking to have using the data validation.

         

        sbliss304 

Resources