Returning a Value Based on Mixed Criteria

Excel_77

Active Member
Joined
Sep 15, 2016
Messages
306
Office Version
  1. 2019
Platform
  1. Windows
Hi All,

I have a list of unique IDs in column A, I want to check these against the unique IDs in column A of "tab2" and when there is a match I want column B of "tab2" checked for an occurrence of "3(1)". With column B the cells maybe mixed so some will have "3(15), 2(18)" in this occurrence I want a "No" returned, however if the cell has "3(15), 2(18), 3(1)" I want "Yes returned as there is a match for "3(1)".

How can I do this?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
For an entry in cell A1, try:
Code:
=IF(SUMPRODUCT(--('tab2'!A:A=A1),--ISNUMBER(FIND("3(1)",'tab2'!B:B)))>0,"Yes","No")
 
Upvote 0
Hi All,

I have a list of unique IDs in column A, I want to check these against the unique IDs in column A of "tab2" and when there is a match I want column B of "tab2" checked for an occurrence of "3(1)". With column B the cells maybe mixed so some will have "3(15), 2(18)" in this occurrence I want a "No" returned, however if the cell has "3(15), 2(18), 3(1)" I want "Yes returned as there is a match for "3(1)".

How can I do this?

Hi!

Try the formula below too in B2 (tab1) and copy down:

=IF(COUNT(FIND("3(1)",VLOOKUP(A2,'tab2'!$A$2:$B$10,2,0))),"Yes","No")


ABCDABCD
1IDResulttab11IDCol Btab2
290001No2900013(15), 2(18)
390002Yes3900023(15), 2(18), 3(1)
490003No4900033(15), 2(18)
590004Yes5900043(1)
690005No6900053(15), 2(18)
790006Yes7900063(15), 2(18), 3(1)
890007No8900073(15), 2(18)
990008Yes9900083(1)
1090009No10900093(15), 2(18)
1190010No11
1212
************************************************************

<tbody>
</tbody>


Markmzz
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,981
Members
449,058
Latest member
oculus

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