Multiple criteria with Multiple Match

dtman85

New Member
Joined
Dec 23, 2014
Messages
44
Data Table:
DateStoreAgent
July 1 2017Anderson100
July 1 2017Nashville99
July 1 2017Kentucky 100
July 2 2017Maine 100
July 2 2017Riverdale99
July 4 2017Alabama100
July 4 2017South Carolina100
July 4 2017Anderson99

<tbody>
</tbody>

Result:
Agent July 1 2017July 2 2017
100Anderson/KentuckyMaine

<tbody>
</tbody>

I want to find the Agent with the name of the stores by date. Index match will yield the first store but I can't figure out how to find the second store by omitting the first value with multiple criteria. Is it possible to get multiple stores result within one cell?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Excel 2010
ABCD
1DateStoreAgent
27/1/2017Anderson100
37/1/2017Nashville99
47/1/2017Kentucky100
57/2/2017Maine100
67/2/2017Riverdale99
77/4/2017Alabama100
87/4/2017South Carolina100
97/4/2017Anderson99
10
11
12Agent7/1/20177/2/20177/4/2017
13100AndersonMaineAlabama
14Kentucky South Carolina
Sheet1
Cell Formulas
RangeFormula
B13{=IF(ROWS(B$13:B13)>COUNTIFS($A$2:$A$9,B$12,$C$2:$C$9,$A$13),"",INDEX($B$2:$B$9,SMALL(IF($C$2:$C$9=$A$13,IF($A$2:$A$9=B$12,ROW($B$2:$B$9)-ROW($B$2)+1)),ROWS(B$13:B13))))}
B14{=IF(ROWS(B$13:B14)>COUNTIFS($A$2:$A$9,B$12,$C$2:$C$9,$A$13),"",INDEX($B$2:$B$9,SMALL(IF($C$2:$C$9=$A$13,IF($A$2:$A$9=B$12,ROW($B$2:$B$9)-ROW($B$2)+1)),ROWS(B$13:B14))))}
C13{=IF(ROWS(C$13:C13)>COUNTIFS($A$2:$A$9,C$12,$C$2:$C$9,$A$13),"",INDEX($B$2:$B$9,SMALL(IF($C$2:$C$9=$A$13,IF($A$2:$A$9=C$12,ROW($B$2:$B$9)-ROW($B$2)+1)),ROWS(C$13:C13))))}
C14{=IF(ROWS(C$13:C14)>COUNTIFS($A$2:$A$9,C$12,$C$2:$C$9,$A$13),"",INDEX($B$2:$B$9,SMALL(IF($C$2:$C$9=$A$13,IF($A$2:$A$9=C$12,ROW($B$2:$B$9)-ROW($B$2)+1)),ROWS(C$13:C14))))}
D13{=IF(ROWS(D$13:D13)>COUNTIFS($A$2:$A$9,D$12,$C$2:$C$9,$A$13),"",INDEX($B$2:$B$9,SMALL(IF($C$2:$C$9=$A$13,IF($A$2:$A$9=D$12,ROW($B$2:$B$9)-ROW($B$2)+1)),ROWS(D$13:D13))))}
D14{=IF(ROWS(D$13:D14)>COUNTIFS($A$2:$A$9,D$12,$C$2:$C$9,$A$13),"",INDEX($B$2:$B$9,SMALL(IF($C$2:$C$9=$A$13,IF($A$2:$A$9=D$12,ROW($B$2:$B$9)-ROW($B$2)+1)),ROWS(D$13:D14))))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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