Lookup Based on Multiple Criteria - with a contains option

Steven101

Board Regular
Joined
Oct 27, 2014
Messages
62
Hi I have the following code which works great based on the Role columns in a table being "Yes"


Looks up the nth occurrence of,

A5 =Table4[Name]
B1 <= Table4[Date]
B2 >= Table4[Date]
Yes = Table4[Role]

and returns the Table4[Ref].


HTML:
=INDEX(Table4[Ref],SMALL(IF(($A5=Table4[Name])*($B$1<=Table4[Date])*($B$2>=Table4[Date])*(Table4[Role]="Yes"),ROW(Table4[Name])-ROW(Data!$A$2)+1),Nth))

Is it possible to amend the formula so that Table4[Ref] contains "Yes"...I have tried amending

"Yes" = Table4[Role] to "*Yes*" = Table4[Role] but does no work

Any help would be appreciated.
Thanks
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Or, if your Excel version uses semicolon as argument separator

(ISNUMBER(SEARCH("Yes";Table4[Role])))

M.
 
Upvote 0

Forum statistics

Threads
1,215,973
Messages
6,128,040
Members
449,414
Latest member
sameri

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