Index-Match/Small based on multiple criteria

WilliamWhite70

New Member
Joined
Dec 9, 2016
Messages
1
So I've gotten the basic search to work:
{=INDEX('Combined Data'!$A$2:$C$1000000,SMALL(IF('Combined Data'!$B$2:$B$1000000=$B5,ROW('Combined Data'!$B$2:$B$1000000)),ROW(1:1))-1,3)}

Right now, it's looking just at the $B column of the array, and as it's a huge array with up to 30 instances of the data in that column, that's a lot of calculating every time I enter new data to search for.

What I'm wondering is: Can I add in another criteria for consideration?
The search data would be located in $B$3, and the location to compare B3 against would be 'Combined Data'!$A$2:$A$1000000

Thank you in advance for any help!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi, welcome to the forum :)

it's a huge array with up to 30 instances of the data in that column, that's a lot of calculating every time I enter new data to search for.

What I'm wondering is: Can I add in another criteria for consideration?

It's already big and you want to add more?

Anyway, yes you can, try this...
=INDEX('Combined Data'!$A:$C,SMALL(IF(('Combined Data'!$B$2:$B$1000000=$B5)*('Combined Data'!$AB$2:$A$1000000=$B3),ROW('Combined Data'!$B$2:$B$1000000)),ROWs($A$1:A1))),3)
(hope I got all the () in the right place)

edit: If you really do have 1 000 000 rows of data, that is going to be really slow, maybe consider using a helper column, instead of an array formula

If you don't have that many rows, reduce the range to more like what you actually need
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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