vlookup part of a cell in part of another cell

mohammadmihdi

New Member
Joined
Apr 20, 2021
Messages
4
Office Version
  1. 2013
Platform
  1. Windows
Hi,

I hope this note finds you well. I want to vlookup a part of value in part of cell data.

For example I have a list of full names in one column and have another column that contains a part of the name meaning the first OR last name.

So partial value vlookup on parial data is possible?



So if in A1 I have “john smith” I know that =(“*”&A1&”*”,B1,1,false) will not work if B1 data is “M. smith company” or “john company”.

I need to vlookup by part of the name. Thank You very much.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Following article may help.

 
Upvote 0
the formula =vlookup(“*”&A1&”*”,B1,1,false) would work if I vlooup for A1 in parts of B1. But I want to vlookup parts of A1 in parts of B1.
 
Upvote 0
Hi,

If I understand correctly, if you have "john smith" in A1, you want to Lookup Column B for values that contain either "john" or "smith" and return that value, Correct?
These formulas would do that, I see potential problems though:
1. Do you want "john" as primary search, or "smith" as primary search?
My formulas, are using "john" 1st, if not found, than "smith"
2. What if you have both matches, (i.e. “M. smith company” and “john company”)?
My formulas, will return the Last found in Column.

The Longer version is Normally entered, the Shorter version requires CSE:

Book3.xlsx
ABCDE
1john smithabc corpM. smith companyM. smith company
2M. smith company
3xyz company
4
5
6
Sheet924
Cell Formulas
RangeFormula
D1D1=IFERROR(IFERROR(LOOKUP(2,1/SEARCH(LEFT(A1,FIND(" ",A1)-1),B1:B10),B1:B10),LOOKUP(2,1/SEARCH(MID(A1,FIND(" ",A1)+1,99),B1:B10),B1:B10)),"None")
E1E1=IFERROR(LOOKUP(2,1/IFERROR(SEARCH(LEFT(A1,FIND(" ",A1)-1),B1:B10),SEARCH(MID(A1,FIND(" ",A1)+1,99),B1:B10)),B1:B10),"None")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
No this did not work. Please see the image. I want to vlookup data set 1 customers in data set 2 customers and input balance.
1618951062847.png
 
Upvote 0
It didn't work because your description in OP does Not match your pic above.
Column A has Middle Initials, Middle Names, and Other Text within.
And you didn't say to return the Value of a Different Column.

You'll have to decide How you want the criteria First.
It will be impossible to lookup Every single word of the entire Text strings of Column A, may be Just the First name?
But looking at your sample, "Aaron" in Column A has Numerous matches in Column E, so That won't work.
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,016
Members
448,936
Latest member
almerpogi

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