Index / Match multiple criteria and multiple results

Glasgowsmile

Active Member
Joined
Apr 14, 2018
Messages
280
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet using the following formula but I found that some users of this report are on Excel 2016 and cannot upgrade so I have to use something older like Index / Match to mimic these results.
Excel Formula:
=IFERROR(IF($B$4="","",FILTER('Data'!$J$2:$J$32851,('Data'!$A$2:$A$32851=$B$4)*IF($B$5="",1,'Data'!$B$2:$B$32851=$B$5)*IF($B$6="",1,'Data'!$C$2:$C$32851=$B$6))),"")

$B$4 is required (It's a date field) to filter the sheet but $B$5 and $B$6 are optional. I prefer to keep it that way if possible.

I'm currently using this since there are a lot of results possible results for each date.
Excel Formula:
=IFERROR(INDEX('Data'!$B:$R, SMALL(IF($B$4='Data'!$A:$A, ROW('Data'!$A:$A)-ROW('Data'!$A$2)+1),ROW(1:1)),1),"")

I tried something like this as a test but it's not pulling just $B$5 results like I expected: I think this needs a match but I'm not sure how to get multiple results correctly.
Excel Formula:
=IFERROR(INDEX('Data'!$B2:$R1000, SMALL(IF(AND($B$4='Data'!$A2:$A1000, $B$5='Data'!$B2:$B1000),ROW('Data'!$A2:$A1000)-ROW('Data'!$A$2)+1),ROW(1:1)),1),"")

Little worried about performance on this too, it will go across 12 columns and could be 70k rows or more.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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