Match criteria against multiple cells without OR function

ExcelJournyman

New Member
Joined
Jun 19, 2018
Messages
5
So here is the deal. I want a function in column C that will use Column A (as A1, A2, etc) as criteria. I want to search in the Data Match Table for row AAA, BBB, etc. and return True if the 2nd criteria in column B matches any of the values for that given row in Column F or G. I don't want to use OR functions because I want to be able to add new columns to search against without having to mess with the function too much.
Please let me know if you need anything cleared up or have a solution.
ABCDEFG
1Lookup criteriaReturnData Match Table
2AAA111TRUEAAA111222
3AAA222TRUEBBB333444
4DDD777TRUECCC555666
5CCC0FALSEDDD777111
6BBB333TRUE
7AAA222TRUE
8DDD111TRUE
9CCC555TRUE
10AAA0FALSE

<colgroup><col><col><col span="6"></colgroup><tbody>
</tbody>
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Yes. This just an example list of values of course. Basically, the values in Column F or G aren't unique. Otherwise, I would just use a 2 column VLOOKUP.
 
Upvote 0
Yes. This just an example list of values of course. Basically, the values in Column F or G aren't unique. Otherwise, I would just use a 2 column VLOOKUP.

The way the majority of records of your table are structured, i.e. F < G, made me to ask the question. Since that is not the case:

=ISNUMBER(MATCH(B2,INDEX($E$2:$G$5,MATCH(A2,$E$2:$E$5,0),0),0))

will suffice, as Marcelo also concludes.
 
Upvote 0
Oh my! Thank you! I had not conceived of another solution besides trying to compare column B directly against the returned contents of columns F and G.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,607
Members
449,090
Latest member
vivek chauhan

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