INDEX/MATCH with 2 Criteria ??

Aitch

Board Regular
Joined
Jan 27, 2019
Messages
119
Office Version
  1. 2010
Platform
  1. Windows
Is there a way to use 2 conditions with an INDEX/MATCH ?

I have something like this, which finds the non-blank cell in column B

INDEX(B:B , MATCH("??*" , B:B , 0)

But I need to also make sure the non-blank cell has value 3 in column D - so...

INDEX(B:B , MATCH("??*" , B:B , 0) + MATCH("3" , D:D , 0)

Can this be achieved without using an Array?

Thanks for any help!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Maybe this link will be of some help. If not post a small sample and the result you expect.
 
Upvote 0
Hi, the below code will solve but I am using array. So, need to press ctrl+shift+enter after writing formula:

VBA Code:
=INDEX($B$1:$B$6,MATCH(1,(NOT($B$1:$B$6="??*"))*($D$1:$D$6=3),0))
 
Upvote 0
Try:
INDEX($B$1:$B$6,AGGREGATE(15,6,(ROW($B$1:$B$6)-ROW($B$1)+1)/(($B$1:$B$6<>"??*")*($D$1:$D$6=3)),1))
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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