Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problem with Lookup with Wildcard

Posted on 2013-11-12
1
Medium Priority
?
207 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 37

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

972 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