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
 

freakofnature

New Member
Joined
Jan 13, 2018
Messages
10
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>
 

freakofnature

New Member
Joined
Jan 13, 2018
Messages
10
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
 

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
4,344
Office Version
365
Platform
Windows
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)
 

freakofnature

New Member
Joined
Jan 13, 2018
Messages
10
Ok, tested & it works except for ones that have @xx, like @KC, @NO
 

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
4,344
Office Version
365
Platform
Windows
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>
 

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
4,344
Office Version
365
Platform
Windows
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.
 

Forum statistics

Threads
1,081,994
Messages
5,362,609
Members
400,684
Latest member
Vie

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top