Index Match multiple criteria, multiple results

rugbytomc

New Member
Joined
Jul 25, 2013
Messages
14
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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,225,757
Messages
6,186,850
Members
453,379
Latest member
gabriellegonzalez

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