Index & Match on 2 conditions with wild char

rex759

Well-known Member
Joined
Nov 8, 2004
Messages
610
Office Version
  1. 365
Platform
  1. Windows
Hello,
I'm attempting to match the second condition based on a word in column C using a wild character.

I tried many variables using ~, ? And * but cant seem to get it to work.

Any ideas?

Book1
ABCDEFG
1
2
3
4
51111JackandJillwentupthehill10
62222MaryandTedwerelatefordinner11
73333PhilandCarrylosttheircat12
84444DerekandSammissedthegame13
93333GraceandJuliaaregoodcooks11
10
11
12
13
14
153333PhilandCarrylosttheircat#N/A
16
17
Sheet1
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try using:

=INDEX($D$5:$D$9,MATCH(1,IF($A$5:$A$9=A15,IF(ISNUMBER(SEARCH("phil",$C$5:$C$9)),1)),0))

Array entered with CTRL+SHIFT+ENTER.
 
Upvote 0
Here's a non-array version:

=INDEX($D$5:$D$9,MATCH(1,INDEX(($A$5:$A$9=A15)*(ISNUMBER(SEARCH("Phil",$C$5:$C$9))),),FALSE))
 
Upvote 0
One more question, how do I add a 3rd condtion if column B has "CC"?

match on 2 cond with wild.xlsx
ABCDEF
1
2
3
4
51111aaJackandJillwentupthehill10
62222bbMaryandTedwerelatefordinner11
73333ccPhilandCarrylosttheircat12
84444aaDerekandSammissedthegame13
93333bbGraceandJuliaaregoodcooks11
103333ccPhilandCarrylosttheircat7
11
12
13
14
153333ccPhilandCarrylosttheircat12
16
1712
18
Sheet1
 
Upvote 0
Like this:

=INDEX($D$5:$D$9,MATCH(1,INDEX(($A$5:$A$9=A15)*($B$5:$B$9=B15)*(ISNUMBER(SEARCH("Phil",$C$5:$C$9))),),FALSE))
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,314
Members
452,905
Latest member
deadwings

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