Solved

Problem with Lookup with Wildcard

Posted on 2013-11-12
1
180 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
1 Comment
 
LVL 35

Accepted Solution

by:
Kimputer earned 500 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

813 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now