adding criteria for correct match

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
730
Office Version
  1. 2019
Platform
  1. Windows
Hello,
This formula is working, but I need to add another criteria.
In addition to MATCH("*"&C2&"*",'Player Stats'!C:C,0),
want to add: MATCH(B2,'Player Stats'!A:A,0)
This way its looking at 2 matches (A:A & C:C) in different columns for a correct result (AC:AC).

This is the complete formula.
Excel Formula:
=INDEX('Player Stats'!AC:AC,MATCH("*"&C2&"*",'Player Stats'!C:C,0))

You can create a different formula (not using Index, Match) if needed.

thank you
 
Try this version

=INDEX('Player Stats'!AC:AC,MATCH(1,ISNUMBER(SEARCH(C2,'Player Stats'!C:C))*('Player Stats'!A:A=B2),0))

In Excel 2019 and earlier Excel versions this formula needs to be "array entered", i.e. confirm with key combination CTRL+SHIFT+ENTER
 
Last edited:
Upvote 0
Solution
Try this version

=INDEX('Player Stats'!AC:AC,MATCH(1,ISNUMBER(SEARCH(C2,'Player Stats'!C:C))*('Player Stats'!A:A=B2),0))

In Excel 2019 and earlier Excel versions this formula needs to be "array entered", i.e. confirm with key combination CTRL+SHIFT+ENTER
Perfect. Thank you.
 
Upvote 0

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