Forum Discussion

jegarner's avatar
jegarner
Copper Contributor
Nov 16, 2020

Data Validation for Multi-Column Selection in Drop Down List

I have Sheet1 and Sheet2 tabs in my Excel spreadsheet.
Sheet1 has data in columns A & B.
Sheet1 column-A1  has a column header named Food
Sheet1 column-B1  has a column header named Color
There are five items under the headers in each column (Sheet1 A2:A6,B2:B6).
I'd like to create a data validation list drop box Sheet2 A1. When I click on Sheet2 A1, I'd like to see the data list showing both columns in Sheet1 (A1& B1), and have it populate Sheet2 A1&B1 with the data selected.
I'm open to any suggestions making it as easy as possible.
Thank you in advance!

12 Replies

  • mathetes's avatar
    mathetes
    Silver Contributor

    jegarner 

     

    Can you post the spreadsheet as it exists now. (just make sure no private or confidential info is in it)

     

    And maybe describe a little more thoroughly how this data validation process is to work:

    • Is it to show only the combinations in each row of A and B in Sheet 1, or every possible combination?
    • If the latter, can we break it into two separate steps (two separate entries) during data entry in Sheet 2?

     

    Maybe describe just a bit more what the application is, where it's to be used, how, by whom.

    • jegarner's avatar
      jegarner
      Copper Contributor

      Thanks for all of your helpful suggestions, but I was able to get what I wanted to do with the following formula:

      =IFERROR(VLOOKUP(A2,Sheet1!A2:B,2,FALSE),"Choose a Food")

      • mathetes's avatar
        mathetes
        Silver Contributor

        jegarner 

        You're certainly welcome. I'm glad you found a solution that is working for the time being.

         

        I'd have to say, it looks like something that can function, but may not be the most effective in the long run. One of the fascinating things about Excel is that there often are multiple routes to a workable solution. Sometimes they're equally effective; other times they're not.

         

        So I'd still invite you to post your spreadsheet and solicit feedback....... along with a full description of the context here. How is this being used?

         

  • jegarner 

    Data Validation doesn't work that way, so it would require VBA to do what you want. That seems to be overkill to me.

    The attached version shows a slightly different way:

    It uses a helper column on the data sheet:

Resources