Index Match multiple criteria, multiple results

rugbytomc

New Member
Joined
Jul 25, 2013
Messages
13
I have a formula
=INDEX(Sheet_1_crosstab.csv!$D:$D,MATCH(1,(A2=Sheet_1_crosstab.csv!$B:$B)*(B2=Sheet_1_crosstab.csv!$C:$C),0))

It's great for giving me the first result from Column D in my Sheet_1)crosstab.csv that matches my 2 different criteria. What I can't figure out is how to get the 2nd, 3rd.....xth result (should there be one) as well.

I don't mind how that looks, either the result in the next column or in the same cell with a comma etc etc

Any help much appreciated!

Thanks
Tom
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try (untested)

in E1
=IFERROR(INDEX(Sheet_1_crosstab.csv!$D1:$D1000,SMALL(IF((A2=Sheet_1_crosstab.csv!$B1:$B1000)*(B2=Sheet_1_crosstab.csv!$C1:$C1000),ROW($A$1:$A$1000)),ROW(A1))-(ROW(A$1)-1),1),"")
Array formula, use Ctrl-Shift-Enter

or if you can use AGGREGATE

=IFERROR(INDEX(Sheet_1_crosstab.csv!$D1:$D1000,AGGREGATE(15,6,ROW(A$1:A$1000)/((A2=Sheet_1_crosstab.csv!$B1:$B1000)*(B2=Sheet_1_crosstab.csv!$C1:$C1000)),ROWS(A$1:A1000))-(1-1),1),"")
non array formula

copy down the column for however many solutions you think there will be
Array formulas will be slow.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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