Multiple criteria with Multiple Match

dtman85

New Member
Joined
Dec 23, 2014
Messages
44
Data Table:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Store[/TD]
[TD]Agent [/TD]
[/TR]
[TR]
[TD]July 1 2017[/TD]
[TD]Anderson[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]July 1 2017[/TD]
[TD]Nashville[/TD]
[TD]99[/TD]
[/TR]
[TR]
[TD]July 1 2017[/TD]
[TD]Kentucky [/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]July 2 2017[/TD]
[TD]Maine [/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]July 2 2017[/TD]
[TD]Riverdale[/TD]
[TD]99[/TD]
[/TR]
[TR]
[TD]July 4 2017[/TD]
[TD]Alabama[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]July 4 2017[/TD]
[TD]South Carolina[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]July 4 2017[/TD]
[TD]Anderson[/TD]
[TD]99[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Result:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Agent [/TD]
[TD]July 1 2017[/TD]
[TD]July 2 2017[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]Anderson/Kentucky[/TD]
[TD]Maine [/TD]
[/TR]
</tbody>[/TABLE]

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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

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,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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