Use a drop down list to search and return multiple values
I have multiple worksheets in an excel book. I have a drop down menu on the worksheet entitles "ON Work" The drop down menu is in cell B50
I then need to be able to look up whatever option is picked in B50 and look up mulitple values from a different worksheet entiled "Panels" the Panels table goes from A1:F80
So if i choose the option 140XL in B50 below it I need all the information from the "panels" sheet that corresponds with 140XL.
The Panels Sheet information is set up like this:
140XL 12025 16" Large
140XL 58625 12" Small
140XL 99951 12" Rear
So i need it to look up 140XL and get the infromation 12025,58625,9951
i have looked all over the internet for help and it's either way too confusing or doesn't deal with multiple worksheets. I know it is possible but i really am out of ideas
Answer:
Create drop down list
- Go to "Data" tab
- Click "Data Validation" button

- Select List

- Type 140XL, 150XL, 160XL in "Source:" window
- Click OK
Excel 2007 array formula in cell B5:
How to enter an array formula
- Copy (Ctrl + c) above array formula
- Select cell B5
- Paste (Ctrl + v)
- Press and hold Ctrl + Shift
- Press Enter once
- Release all keys
How to copy array formula
- Select cell B5
- Copy (Ctrl + c)
- Select cell range B7:B16
- Paste (Ctrl + v)
How this formula works
You can find an explanation here:
How to return multiple values using vlookup
Download excel *.xlsx file








December 7th, 2011 at 8:28 pm
thank you so much!!! Worked Perfectly
December 27th, 2011 at 3:05 pm
For some reason I am unable to 'ask a question' by clicking the link, so, I thought i'll post it here since it is relevant to drop-down list.
In my workbook I have three worksheets; "Customer", "Vendor" and "Payment". In the Customer sheet I have a table, tblCustomer, where I add new customers. Similarly, in the Vendor sheet I have a table, tblVendor, where I add new vendors. In the Payment sheet I have a table, tblPayment, where i have three columns; Date, Amount and Name. Now, here is what I want to do; In the Name column of the tblPayment, I want to create a drop down list in each cell, which would contain all the names from tblCustomer[Name] and tblVendor[Name]. This way I can fill in the Date, Amount and then select one of all the names available in the drop down list of my Name cell. Is this possible without using VB code or any macro? If so, please help me out with this.
January 2nd, 2012 at 4:49 pm
Rattan,
Read this post: Basic invoice template in excel
January 20th, 2012 at 9:17 am
Pls the best way excel functions espeacially VLOOKUP / HLOOKUP etc to use in various way , columns, functions, multiple way.
rgds
abdussamed
March 12th, 2012 at 4:25 pm
Hi, I know this isn't array formula but maybe you can still help me. I have a spreadsheet that I use for 3 different companies.
What i would really like to do is have a drop down menu with the three company names: eg: Mcdonalds, Pizza Hut, Subway and then when i choose which company the spreadsheet will be for then all the contact information and logo will appear as a header on the top of the spread sheet. is this possible?
March 15th, 2012 at 7:04 pm
Hi one more question this array formula that you gave me earlier in the year, it's not working now.
I added another drop down box right beside the first one and i just want to take the exact same informaion so i dragged the formula to copy into the other cells and i just changed from B26 to B27 where the drop down menu is to look up.
Now it is not getting any of my informaion even though it's the exact same formula
March 15th, 2012 at 9:16 pm
Ainslie,
Can you provide both formulas? I am not sure whats wrong.
March 15th, 2012 at 9:27 pm
This is the original:
=IFERROR(INDEX(Panels!$C$2:$C$80, SMALL(IF($B$56=Panels!$A$2:$A$80, MATCH(ROW(Panels!$A$2:$A$80), ROW(Panels!$A$2:$A$80)), ""), ROW(A1))), "")
This is the one i'm trying to get to work. I need it to do the exact same thing in cells below where the original is used but both need to do the same thing just the drop down box where it has the information where to lookup is in a different location
=IFERROR(INDEX(Panels!$C$2:$C$80, SMALL(IF($B$57=Panels!$A$2:$A$80, MATCH(ROW(Panels!$A$2:$A$80), ROW(Panels!$A$2:$A$80)), ""), ROW(A1))), "")
March 16th, 2012 at 4:04 pm
Ainslie,
There seems to be nothing wrong with the formulas. Maybe the value ($B$57) in the drop down list doesnt exactly match some of the values in your list (Panels!$A$2:$A$80)?
March 16th, 2012 at 4:28 pm
nope, that's all the same, nothing has changed. it works in the other drop down box in B56 - the exact same values but not in B57
March 21st, 2012 at 10:02 am
Aynsley Wall,
See this post: Use a drop down list to select company info in header (vba)