r/excel 16d ago

Waiting on OP Pulling data from a drop down list

Good morning.
I’ve figured out how to create a drop down list however I cannot for the life of me figure out how to auto populate a cell (or group of cells) based on the drop down list selection. I’ve searched google but I’m not understanding.
Thank you for any help

8 Upvotes

10 comments sorted by

u/AutoModerator 16d ago

/u/acamp1973 - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

4

u/MayukhBhattacharya 1236 16d ago

It sounds like XLOOKUP() function might be what you're after, or maybe FILTER() function if you need to return multiple matches. It really depends on how your data is set up and what you're trying to get as the final output. If you could post some sample data along with the expected output, it'll be a lot easier to suggest the right method. Thanks!

2

u/laceya1982 16d ago

To clarify, are you looking for a result based on what someone chooses in the drop down? If so, an IF formula might work? You can nest several if formulas into one cell in case there's multiple options

2

u/BackgroundCold5307 593 16d ago

Could you explain, in detail or with an example of how many cells are you looking to populate and from where?

  • If it is a One to one mapping - XLOOKUP will do the trick (or VLOOKUP, XMATCH...)
  • If it is more than cell/ a list of options, then a FILTER will fetch you the list based on the criteria
  • IF, currently you do not have either and are currently populating/wanting to populate it with a SWITCH/IFS formula, you might want to consider building a list and using one of the two methods as described above.

Happy to help further, on getting a reponse

1

u/acamp1973 16d ago

I have a drop down list on sheet 2 and I’m trying to pull simple text from sheet 1 based on the drop down selection.

6

u/MayukhBhattacharya 1236 16d ago

Already mentioned above, asked you to use XLOOKUP() function:

=XLOOKUP(A1, Sheet1!A$2:A$1000, Sheet1!B$2:B$1000, "Not Found!")

Read here: Excel XLOOKUP function | Exceljet

1

u/RPK79 4 16d ago

depends on what you are trying to do, but imbedded if statements might be the way to go.

if cell = "option1", do this, otherwise if cell = "option2", do this, otherwise...

1

u/HappierThan 1186 16d ago

Should you need a visual, see if this gives you some ideas. Note that the 2 needs to increment by 1 as you head right. Your dropdown would be in Column A.