Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem with Lookup with Wildcard

Posted on 2013-11-12
1
Medium Priority
?
205 Views
Last Modified: 2013-11-20
Hi Guys, is it possible to do a Vlookup where, for example, you are looking for part of the cell in the Lookup, eg. on my attachment, I am looking for in a look up called GBO (a list of Daily breaking trades) on column H on the Rec Page where certain celles have multiple IDs in them? On the Dashboard tab column E is a list of Daily breaking trades, in H582 on the Rec tab, there is a trade which matches the GBO column, but only part of it so a normal lookup would fail. My lookup is in BA582, can anyone help?
DummyRec3.xlsx
0
Comment
Question by:Justincut
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 36

Accepted Solution

by:
Kimputer earned 2000 total points
ID: 39641266
A wildcard works, if your Lookup value is SMALLER than what you're looking for. However, now your search criteria is the one that's bigger.
The best thing I can come up with is to use the first part before the comma, which returns 1897916_BSNE_FLGBCLIENT_CALL_SWAP because your cell was originally "1897916, 4821268", which I broke down to just the first part, and THEN add the wildcard.

If you think this is in the right direction, and you will have only 2 items at most, you can expand your formula again, to add the vlookup after the comma if the first part fails.

For now, see if this is satisfactory before you proceed:

cell BA582:

=IF(ISNA(VLOOKUP(I582,GBO,1,FALSE)),VLOOKUP("*"&LEFT(H582,SEARCH(",",H582,1)-1)&"*",Murex,1,FALSE),VLOOKUP(I582,GBO,1,FALSE))

Open in new window


If you sometimes have 3 or more items in column H, it will get problematic to make a formula.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question