If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Want to VLOOKUP where target is "contained" within, rather than being the whole value

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-16-06, 05:38
severin1962 severin1962 is offline
Registered User
 
Join Date: Aug 2006
Posts: 9
Want to VLOOKUP where target is "contained" within, rather than being the whole value

I need to look up a value in a table and return some neighbouring results. Seems a simple job for VLOOKUP.

However, within the table_array, the lookup_value, will not be the whole cell value, merely a part of it.

An example. I want to VLOOKUP a value of D123 and retunr the next two columns. However within the table array, there might be a cell containing "C543, D123, G432". I want to find this result. So a simple VLOOKUP alone won't do.

I think i need some sort of "FIND" within it as well.
Reply With Quote
  #2 (permalink)  
Old 08-16-06, 06:25
severin1962 severin1962 is offline
Registered User
 
Join Date: Aug 2006
Posts: 9
It's ok, solved it.

Used wildcards as in "=VLOOKUP("*"&A5094&"*",M:M,1,FALSE)"

So, not even lunchtime and i've learnt somethnig already.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On