use INDEX formula in Excel for gathering multiple search items

Half Measures

New Member
Joined
Dec 16, 2020
Messages
26
Office Version
  1. 365
Platform
  1. Windows
On the "List" worksheet, I have an inventory of Food, Music, Activity and Color that a Customer uses listed into columns. On a "Search" worksheet I have created PickLists cataloguing the Food, Music, Activity and Color available for Customers.

My goal with this is to create an INDEX formula for finding which Customers are utilizing a chosen item from the PickLists? These would be done by aligning the Row of a Customer and Item listed that they are using, from the "List" worksheet. A VLOOKUP formula only shows one result, and only shows the first one in the search. I’m looking for a way to result all the Customers using the chosen item.

I wanted to attach the Excel doc here that I'm talking about, for a better example. But, I couldn't find a way to do that. I'm new here. So, here are some screen-shot's visualizing what I'm talking about.


List worksheet.jpg
Search worksheet PickLists.jpg
Search worksheet search formula.jpg
 
The formula does not exclude duplicate values, because you never said it should. ;)
If you are missing values then it's probably because on the list sheet the values are not exactly the same as D2. Check for typos & leading/trailing spaces.
how do I "exclude duplicates"?
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Try
Excel Formula:
=IFERROR(INDEX(List!$D$2:$D$8,AGGREGATE(15,6,(ROW(List!$D$2:$D$8)-ROW(List!$D$2)+1)/(List!$A$2:$A$8=B$3)/(ISNA(MATCH(List!D$2:D$8,B$6:B6,0))),1)),"")
This might get rid of both problems, as the original formula was missing a $ sign.
 
Upvote 0
Try
Excel Formula:
=IFERROR(INDEX(List!$D$2:$D$8,AGGREGATE(15,6,(ROW(List!$D$2:$D$8)-ROW(List!$D$2)+1)/(List!$A$2:$A$8=B$3)/(ISNA(MATCH(List!D$2:D$8,B$6:B6,0))),1)),"")
This might get rid of both problems, as the original formula was missing a $ sign.
Cool. I'll leave you alone for now. Gonna edit it and call it a day. Got some other things I need to do before I close it down. Thanks again. This is a great forum to use.
 
Upvote 0
Cool. I'll leave you alone for now. Gonna edit it and call it a day. Got some other things I need to do before I close it down. Thanks again. This is a great forum to use.
I think I have it working now, using that new formula you posted yesterday. No duplicates, and all Customers are showing now. Thank you, again. I really appreciate your help with this.
 
Upvote 0
Glad it's working & thanks for the feedback.
 
Upvote 0
Everything was working fine. But, after saving it and opening it back up, the results stay frozen and do not work anymore?

Faux Customer Form.xlsx
ABCDEFGH
1
2FoodMusicActivityColor
3hamburgercountrysleepingyellow
4
5
6CustomerCustomerCustomerCustomer
7Alice's kitchenAlice's kitchenDonovan's backyardAlice's kitchen
8 Donovan's backyard Donovan's backyard
9    
10    
11    
12    
13    
14    
15    
16    
17    
Search
Cell Formulas
RangeFormula
B7:B17B7=IFERROR(INDEX(List!$A$2:$A$8,AGGREGATE(15,6,(ROW(List!$A$2:$A$8)-ROW(List!$A$2)+1)/(List!$B$2:$B$8=B$3)/(ISNA(MATCH(List!A$2:A$8,B$6:B6,0))),1)),"")
D7:D17D7=IFERROR(INDEX(List!$A$2:$A$8,AGGREGATE(15,6,(ROW(List!$A$2:$A$8)-ROW(List!$A$2)+1)/(List!$C$2:$C$8=D$3)/(ISNA(MATCH(List!A$2:A$8,D$6:D6,0))),1)),"")
F7:F17F7=IFERROR(INDEX(List!$A$2:$A$8,AGGREGATE(15,6,(ROW(List!$A$2:$A$8)-ROW(List!$A$2)+1)/(List!$D$2:$D$8=F$3)/(ISNA(MATCH(List!A$2:A$8,F$6:F6,0))),1)),"")
H7:H17H7=IFERROR(INDEX(List!$A$2:$A$8,AGGREGATE(15,6,(ROW(List!$A$2:$A$8)-ROW(List!$A$2)+1)/(List!$E$2:$E$8=H$3)/(ISNA(MATCH(List!A$2:A$8,H$6:H6,0))),1)),"")
Cells with Data Validation
CellAllowCriteria
D3List=Index!$D$3:$D$7
F3List=Index!$F$3:$F$5
H3List=Index!$H$3:$H$7
B3List=Index!$B$3:$B$6
 
Upvote 0
On the formula tab click "Calculation options" & make sure it's set to automatic.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,316
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top