VLOOKUP incomplete match

BakerBaker

New Member
Joined
Feb 12, 2018
Messages
38
Office Version
  1. 2019
Platform
  1. Windows
I have been lucky to have received help previously on this board and would appreciate some help with the following:

I am preparing a football (soccer) prediction model with data from 2 different sources. Unfortunately, there are variations in the naming of some of the teams (eg Man Utd and Manchester Utd) which is causing a problem with the "normal" use of the VLOOKUP formula.

In the below, I wish to populate the yellow cell on sheet 1 with the data in the blue cell on sheet 2 - Please note the non-matching name variation for "Bristol".
Prediction.png


Thanks is anticipation
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Thanks, but that doesn't match Bristol CITY with just Bristol in that order. The formula is to be entered in the yellow cell, not vice versa.
 
Upvote 0
I assumed that way around because the other way doesn't make sense. We can't search a longer string to match a shorter one.

To shorten your search term, just get the text left of the first space with; LEFT(A5, FIND(” “, A5) -1)


Or you could add a hidden helper column.
 
Upvote 0
Hi,

Use this in B5, change adjust range/cell references to suit your data:

Book3.xlsx
ABEF
5Bristol City1.23
6
20
21Bristol1.23
Sheet861
Cell Formulas
RangeFormula
B5B5=LOOKUP(2,1/SEARCH(" "&A$21:A$30&" "," "&A5&" "),F$21:F$30)
 
Upvote 0
Hi,

Use this in B5, change adjust range/cell references to suit your data:

Book3.xlsx
ABEF
5Bristol City1.23
6
20
21Bristol1.23
Sheet861
Cell Formulas
RangeFormula
B5B5=LOOKUP(2,1/SEARCH(" "&A$21:A$30&" "," "&A5&" "),F$21:F$30)
Thanks for this will adapt the sheets/cells/rows etc.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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