Home > Software engineering >  Dropdown lists & conditional formatting in Google Sheets
Dropdown lists & conditional formatting in Google Sheets

Time:07-25

I am making my business spreadsheet and my business is selling in multiple countries. So, for example, I have a drop-down list (and when Country is chosen I want it to affect the rest of the spreadsheet). In that list, I have all the countries I sell to. What I want to do is for example when I select UK it will update all the prices and costs that are there to GBP AND also hide specific columns that are not necessary for the UK. The same goes for other countries if US is selected I want to see $ currency and hide the column of VAT tax since it doesn't apply to the US.

To summarize, when Country is selected from the dropdown I want it to show different values and hide 1-2 columns. Wondering if this is even possible in sheets. Hopefully, this makes a little bit of sense. Thanks for the help!

CodePudding user response:

Yes It is possible, get only the columns you want from a range.

Dropdown from a list

Go to Data > enter image description here

The Formula

Paste this formula next to srearch key range and below the column names you want to search, Take a look at this "freshly made" enter image description here

Choose the country and all the data will be populated, replacate this formula column and expand the lookup range to get more info put in place.

  • we are using MATCH to return the matching index from the column above for example Currency C1 from the range G2:J2 which is 2 in this case MATCH function returns the matching value index "column" 2, to be used as an index for vlookup function.
  • Related