ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Limelight Media - ExcelTip.com Books > F1 Get the most out of Excel Formulas & Functions

Notices

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-30-2006, 11:21 AM
Eladamri Eladamri is offline
Registered User
 
Join Date: 05 Jun 2006
Location: Philippines
Posts: 22
Eladamri is on a distinguished road
Vlookup displaying all possible matches

how can Vlookup display all possible matches? that means the whole data in the cell in which the lookup value can be found is reflected.

for example:
Lookup Value is 456

Column A Column B
123456 =vlookup(456,.....
223456 =vlookup(456,.....
333456 =vlookup(456,.....
456 =vlookup(456,.....
CN456 =vlookup(456,.....
456 =vlookup(456,.....

Will give the result:
Column A Column B
123456 123456
223456 223456
333456 333456
456 456
CN456 CN456
456 456

Last edited by Eladamri; 08-30-2006 at 11:24 AM.
Reply With Quote
  #2  
Old 09-20-2006, 09:16 PM
Bryan Hessey Bryan Hessey is offline
Forum Guru
 
Join Date: 13 Mar 2005
Posts: 6,202
Bryan Hessey is on a distinguished road
The question is a little old, but what you want can be achieved in a separate column.

=IF(LEN(SUBSTITUTE(A1,"456",""))=LEN(A1),"",A1)

or perhaps
=IF(LEN(SUBSTITUTE(Sheet1!A1,"45L",""))=LEN(Sheet1!A1),"nomatch",Sheet1!A1)

so that you can Filter and delete all 'nomatch' rows.

---

Quote:
Originally Posted by Eladamri
how can Vlookup display all possible matches? that means the whole data in the cell in which the lookup value can be found is reflected.

for example:
Lookup Value is 456

Column A Column B
123456 =vlookup(456,.....
223456 =vlookup(456,.....
333456 =vlookup(456,.....
456 =vlookup(456,.....
CN456 =vlookup(456,.....
456 =vlookup(456,.....

Will give the result:
Column A Column B
123456 123456
223456 223456
333456 333456
456 456
CN456 CN456
456 456
Reply With Quote
Reply

Bookmarks

New topics in F1 Get the most out of Excel Formulas & Functions


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -4. The time now is 05:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0