Partial matching between columns

Joey1510

New Member
Joined
Mar 23, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a list of names of current tenants and I need to find a way to see if any match a list of new tenants (basically where other tenants would move out but one stays the same) - is there anyway to do this in a formula?

Sometimes there is more than one so column B is always set up as 1st tenant AND 2nd Tenant AND 3rd Tenant etc (most is 5) and sometimes column A would have more than one tenant so I need something that would flag up the in the below examples:

Col A Col B
John SMITH AND Ian DAVIES Ian DAVIES AND Jade CONNOR
Gary ANDREWS AND Sam CHARLES AND Sian LLOYD Stuart JAMES AND Sam CHARLES
Steve BROOKS AND Clare CHARLES Steve BROOKS

Thank you
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Cannot distinguish your columns. Please upload your data using XL2BB. Look at the link in my signature.
 
Upvote 0
Is this better?

1610040139298.png
 
Upvote 0
Consider this at C2 and copy down.
=IF(MAX(IFERROR(SEARCH(TRIM(MID(SUBSTITUTE(B2,"AND",REPT(" ",LEN(B2))),1+(COLUMN(A1:F1)-1)*LEN(B2),LEN(B2)))," "&A2),0))>1,"Yes","NO")
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,461
Members
449,085
Latest member
ExcelError

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