vlookup with wildcards

freakofnature

New Member
Joined
Jan 13, 2018
Messages
10
can't get "*"& cell ref wildcard to work, trying to vlookup in ref to a column of nfl teams 2-3 character abbreviations,
GB vlookup formula
DAL vlookup formula @SEA
and so on ... looking into another sheet that has all teams
with their fantasy points allowed by position in columns..


Team name QB pts RB pts WR pts K pts Total pts
GB 13 14 17 7 sum
DAL 12 12 15 8 sum
.. etc
the @ is what's hanging me up, it won't match @SEA to SEA
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
week#17
@@SEA#N/A (formula)
HCAR
HCIN#N/A

<colgroup><col><col><col span="2"></colgroup><tbody>
</tbody>
TeamGms QBPts RB Pts WR Pts TE Pts K Pts Pts Allow/Gm
ARI17.516.121.177.9 69.6
ATL16.917.418.16.38.2 66.8
BAL10.619.716.88.17.4 62.6
BUF12.721.616.78.18.6 67.8
CAR14.715.621.66.37.1 65.2
CHI13.716.920.46.18.6 65.7

<colgroup><col span="2"><col span="5"><col></colgroup><tbody>
</tbody>
 
Upvote 0
Thx for the quick response but that doesn't work, the above column with the Team names is AJ,
=VLOOKUP("*"&AJ2&"*",'2017 FPA Def'!C2:J33,4,FALSE) where C2:J33 is the range for the bottom part of the above post
 
Upvote 0
Is it always the last 3 letters you are trying to match? If so try:

=VLOOKUP(RIGHT(AJ2,3),'2017 FPA Def'!C2:J33,4,FALSE)
 
Upvote 0
No, maybe this instead. This assumes AJ2 will always be something like @SEA, @GB.

=VLOOKUP(SUBSTITUTE(AJ2,"@",""),'2017 FPA Def'!C2:J33,4,FALSE)

<colgroup><col width="461"></colgroup><tbody>
</tbody>
 
Upvote 0
It doesn't replace any of your data if that's what you mean.
In the VLOOKUP formula it just drops the @ from cell AJ2, so it's looking up SEA and not @SEA in your team database. Cell AJ2 stays as @SEA.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

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