ANY text contained in cell C2 is ALSO contained in cell B2 (Fuzzy Match)

kyleno

Board Regular
Joined
Jun 9, 2014
Messages
61
I've been searching for a formula on the forum for some time now and have not found this exact scenario.

I'm looking to have a formula that indicates if there is any text in cell C2 that matches any text in cell B2.

Yes
B2 C2
Acme Mfg. ACME MFG CO

No
B2 C2
Bob's Fruit Jerry's Bread

I found a formula that ALMOST worked but failed with the Acme example above
=IFERROR(LOOKUP(9.99999999999999E+307,SEARCH(Sheet4!B2,C2),Sheet4!B2),"")

Please and thank you.

~ Ky
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
It didn't format correctly.

Yes
B2
Acme Mfg.

C2
ACME MFG CO

No
B2
Bob's Fruit

C2
Jerry's Bread


I've been searching for a formula on the forum for some time now and have not found this exact scenario.

I'm looking to have a formula that indicates if there is any text in cell C2 that matches any text in cell B2.

Yes
B2 C2
Acme Mfg. ACME MFG CO

No
B2 C2
Bob's Fruit Jerry's Bread

I found a formula that ALMOST worked but failed with the Acme example above
=IFERROR(LOOKUP(9.99999999999999E+307,SEARCH(Sheet4!B2,C2),Sheet4!B2),"")

Please and thank you.

~ Ky
 
Upvote 0
It didn't format correctly.

Yes
B2
Acme Mfg.

C2
ACME MFG CO

No
B2
Bob's Fruit

C2
Jerry's Bread

This one I found seems to work as long as the cell begins with the name you are looking for:
=MATCH("*"&LEFT(B2,5)&"*",C2,0)
 
Upvote 0
This one I found seems to work as long as the cell begins with the name you are looking for:
=MATCH("*"&LEFT(B2,5)&"*",C2,0)

Solved!

You need TWO columns for lookup:

1) =MATCH("*"&LEFT(B2,5)&"*",C2,0)

and

2) =MATCH("*"&RIGHT(B2,5)&"*",C2,0)

Filter column 1 to show only #N/A AND filter column 2 to show only #N/A.

That way you are searching from both sides and will now have a pretty good list of items that are NOT like the other.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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