Solved

Problem with Lookup with Wildcard

Posted on 2013-11-12
1
162 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

759 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

18 Experts available now in Live!

Get 1:1 Help Now