Find Partial Match from List??

svendiamond

Well-known Member
Joined
Jun 13, 2014
Messages
1,504
Office Version
  1. 365
Platform
  1. Windows
Greetings! I am trying to get the following results in column B:


Book1
ABCD
1ValuesException?Exceptions
2JOHN SMITHUNIVERS
3UNIVERSITY OF OHIO1STATE
4UNIVERSIDAD DE COLUMBIA1
5JAMES JOHNSON
6HOPKINS UNIVERSITY1
7STACY JONES
8OHIO STATE1
Sheet6


Basically, if the cell in column A matches any of the list in column D, I want to return a 1. How can I make this happen? I've tried a few different combinations of FIND and MATCH and I can't seem to get it right. I've also tried using Range.Find in VBA to no avail.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try this...

Data Range
A
B
C
D
1
Values​
Exception?​
------​
Exceptions​
2
JOHN SMITH​
UNIVERS​
3
UNIVERSITY OF OHIO​
1​
STATE​
4
UNIVERSIDAD DE COLUMBIA​
1​
5
JAMES JOHNSON​
6
HOPKINS UNIVERSITY​
1​
7
STACY JONES​
8
OHIO STATE​
1​

This formula entered in B2 and copied down:

=IF(COUNT(LOOKUP(1E100,SEARCH(D$2:D$3,A2))),1,"")
 
Upvote 0
Thank you! That is awesome. Could you explain how this LOOKUP function is working? I rarely ever use it. What is the 1E100 for:? EDIT: found in link, thank you everyone!
 
Last edited:
Upvote 0
Resolved !!!

MickG, did you also post some VBA code? I was looking at it and I think you removed it on your edit. Can you post it again? I think a VBA solution might be better and I was going to try yours out...
 
Upvote 0

Forum statistics

Threads
1,215,518
Messages
6,125,291
Members
449,218
Latest member
Excel Master

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