look up text with closest match

bizpioneer

New Member
Joined
Apr 28, 2014
Messages
31
I've been trying to look up the closest match in excel.. for example:

sheet1 in column A:
Red carpets
blue cheese


Sheet2 in Column A:
Fast carpets
Free carpets
Red carpets for free
blue pen

is there a formula that looks up the closest match in this case...
"Red carpet" in sheet 1 should match up with "red carpets for free"
and "blue cheese" in sheet 1 should be matched with "blue pen" in sheet 2, etc
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
A
B
C
D
E
1
Red carpetsRed carpets for freesheet1
2
blue cheese

<tbody>
</tbody>




A
B
C
1
Fast carpetssheet2
2
Free carpets
3
Red carpets for free
4
blue pen

<tbody>
</tbody>

sheet 1

c1=
VLOOKUP(A1&"*",Sheet2!$A$1:$A$4,1,0)
 
Upvote 0
A
B
C
D
E
1
Red carpetsRed carpets for freesheet1
2
blue cheese

<tbody>
</tbody>




A
B
C
1
Fast carpetssheet2
2
Free carpets
3
Red carpets for free
4
blue pen

<tbody>
</tbody>

sheet 1

c1=
VLOOKUP(A1&"*",Sheet2!$A$1:$A$4,1,0)

This is almost it, but it doesn't work if there is a phrase before or after "Red Carpet" in sheet 1 A1
 
Upvote 0
his is almost it, but it doesn't work if there is a phrase before or after "Red Carpet" in sheet 1 A1: for example ?
 
Upvote 0
This is almost it, but it doesn't work if there is a phrase before or after "Red Carpet" in sheet 1 A1 =for example?

try

sheet1

c1=
VLOOKUP("*"&A1&"*",Sheet2!$A$1:$A$4,1,0)
 
Upvote 0
A
B
C
D
E
1
Red carpetsRed carpets for freesheet1
2
amazing red carpets#NA

<tbody>
</tbody>





A
B
C
1
Fast carpetssheet2
2
Free carpets
3
Red carpets for free
4
blue pen

<tbody>
</tbody>

 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,360
Members
449,155
Latest member
ravioli44

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