Match Index two criteria and return multiple values

Jarlath

New Member
Joined
Jun 29, 2015
Messages
8
Hello,

I am currently using the below formula:

=INDEX($B$40:$B$404,MATCH($B$5&$B$11,$C$40:$C$404&$D$40:$D$404,0),1)

I am matching b5 & b11 from cascading dependant drop down lists.

It works to return the first value I need in column B, but when I copy it down it still returns the same value rather than move to the next value.

For example it will return MON013 in the first cell, this code will appear in the cells below once copied down. Whereas I need to it return MON014,MON034 ( other applicable values from the table)

Any help would be great thanks.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Maybe something like this.
This is an array formula and must be entered with CTRL-SHIFT-ENTER (if done right Excel will put {} around the formula).

Code:
=INDEX($B$40:$B$404,SMALL(IF($C$40:$C404=$B$5,IF($D$40:$D$404=$B$11,ROW($B$40:$B$404)-ROW($B$40)+1)),ROWS($B$40:B40)))
 
Upvote 0
You're welcome. Glad that did the job. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

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