Solved

Problem with Lookup with Wildcard

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

820 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