use INDEX formula in Excel for gathering multiple search items

Half Measures

New Member
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.

Half Measures

New Member
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"?

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Half Measures

New Member
how do I "exclude duplicates"?
I'm not seeing any "typo's" either.

Fluff

MrExcel MVP, Moderator
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.

Half Measures

New Member
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.

Half Measures

New Member

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.

Fluff

MrExcel MVP, Moderator
Glad it's working & thanks for the feedback.

Half Measures

New Member

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

Fluff

MrExcel MVP, Moderator
Is calculation set to manual?

Half Measures

New Member
Is calculation set to manual?
How do you check that? Not sure what you mean, or how to fix it to what it should be.

Fluff

MrExcel MVP, Moderator
On the formula tab click "Calculation options" & make sure it's set to automatic.

Replies
17
Views
271
Replies
9
Views
524
Replies
5
Views
29
Replies
2
Views
310
Replies
9
Views
174

1,127,602
Messages
5,625,750
Members
416,133
Latest member
ToseSenpai

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.

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

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