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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try this...

Data Range
[Table="class: grid"][tr][td="bgcolor: #c0c0c0"][/td][td="bgcolor: #c0c0c0"]
A
[/td][td="bgcolor: #c0c0c0"]
B
[/td][td="bgcolor: #c0c0c0"]
C
[/td][td="bgcolor: #c0c0c0"]
D
[/td][/tr]
[tr][td="bgcolor: #c0c0c0"]
1
[/td][td]
Values​
[/td][td]
Exception?​
[/td][td]
------​
[/td][td]
Exceptions​
[/td][/tr]

[tr][td="bgcolor: #c0c0c0"]
2
[/td][td]
JOHN SMITH​
[/td][td][/td][td][/td][td]
UNIVERS​
[/td][/tr]

[tr][td="bgcolor: #c0c0c0"]
3
[/td][td]
UNIVERSITY OF OHIO​
[/td][td]
1​
[/td][td][/td][td]
STATE​
[/td][/tr]

[tr][td="bgcolor: #c0c0c0"]
4
[/td][td]
UNIVERSIDAD DE COLUMBIA​
[/td][td]
1​
[/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #c0c0c0"]
5
[/td][td]
JAMES JOHNSON​
[/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #c0c0c0"]
6
[/td][td]
HOPKINS UNIVERSITY​
[/td][td]
1​
[/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #c0c0c0"]
7
[/td][td]
STACY JONES​
[/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #c0c0c0"]
8
[/td][td]
OHIO STATE​
[/td][td]
1​
[/td][td][/td][td][/td][/tr]
[/table]


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,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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