Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Looking up multiple results with VLOOKUP

Is it possible to have VLOOKUP return multiple results? (I suspect the
answer is "No"). My "lookup table" consists of project numbers in column A
and supported systems in column B (the project number is repeated in each row
for which there is a different supported system).
If VLOOKUP can't do the job, can someone possibly show me how to write a
macro that will? I would appreciate any help.
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Looking up multiple results with VLOOKUP

Here;'s a way

http://nwexcelsolutions.com/advanced_function_page.htm

look at number 6

You can download a sample here

http://nwexcelsolutions.com/Download...20lookup .xls


--
Regards,

Peo Sjoblom



"Bob" wrote in message
...
Is it possible to have VLOOKUP return multiple results? (I suspect the
answer is "No"). My "lookup table" consists of project numbers in column
A
and supported systems in column B (the project number is repeated in each
row
for which there is a different supported system).
If VLOOKUP can't do the job, can someone possibly show me how to write a
macro that will? I would appreciate any help.
Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Looking up multiple results with VLOOKUP

=INDEX(C1:C100,MATCH(1,(A1:A100="criteria 1")*(B1:B100="criteria 2"))

ctrl+shift+enter, not just enter


"Bob" wrote:

Is it possible to have VLOOKUP return multiple results? (I suspect the
answer is "No"). My "lookup table" consists of project numbers in column A
and supported systems in column B (the project number is repeated in each row
for which there is a different supported system).
If VLOOKUP can't do the job, can someone possibly show me how to write a
macro that will? I would appreciate any help.
Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Looking up multiple results with VLOOKUP

Thanks for the help! My current VLOOKUP formula is as follows:
=VLOOKUP(F2,$A$2:$B$11343,2)
I'm not sure I understand how to translate your formula below to use the
lookup_value, table_array, and col_index_number contained in my formula.
Could you kindly clarify? Thanks.


"Teethless mama" wrote:

=INDEX(C1:C100,MATCH(1,(A1:A100="criteria 1")*(B1:B100="criteria 2"))

ctrl+shift+enter, not just enter


"Bob" wrote:

Is it possible to have VLOOKUP return multiple results? (I suspect the
answer is "No"). My "lookup table" consists of project numbers in column A
and supported systems in column B (the project number is repeated in each row
for which there is a different supported system).
If VLOOKUP can't do the job, can someone possibly show me how to write a
macro that will? I would appreciate any help.
Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Looking up multiple results with VLOOKUP

Peo,
Thanks for your help! Instead of returning the results in separate cells,
can you tell me if there is a way to modify your formula so that the results
are concatentated (using a comma and space as a separator) and displayed in
one cell?
Thanks again,
Bob


"Peo Sjoblom" wrote:

Here;'s a way

http://nwexcelsolutions.com/advanced_function_page.htm

look at number 6

You can download a sample here

http://nwexcelsolutions.com/Download...20lookup .xls


--
Regards,

Peo Sjoblom



"Bob" wrote in message
...
Is it possible to have VLOOKUP return multiple results? (I suspect the
answer is "No"). My "lookup table" consists of project numbers in column
A
and supported systems in column B (the project number is repeated in each
row
for which there is a different supported system).
If VLOOKUP can't do the job, can someone possibly show me how to write a
macro that will? I would appreciate any help.
Thanks.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Looking up multiple results with VLOOKUP

You need to use 2 formulas then, first get all lookups then concatenate them

=A1&", "&A2&", "&A3 etc

you won't get a formula that will do this in one fell swoop


--
Regards,

Peo Sjoblom



"Bob" wrote in message
...
Peo,
Thanks for your help! Instead of returning the results in separate cells,
can you tell me if there is a way to modify your formula so that the
results
are concatentated (using a comma and space as a separator) and displayed
in
one cell?
Thanks again,
Bob


"Peo Sjoblom" wrote:

Here;'s a way

http://nwexcelsolutions.com/advanced_function_page.htm

look at number 6

You can download a sample here

http://nwexcelsolutions.com/Download...20lookup .xls


--
Regards,

Peo Sjoblom



"Bob" wrote in message
...
Is it possible to have VLOOKUP return multiple results? (I suspect the
answer is "No"). My "lookup table" consists of project numbers in
column
A
and supported systems in column B (the project number is repeated in
each
row
for which there is a different supported system).
If VLOOKUP can't do the job, can someone possibly show me how to write
a
macro that will? I would appreciate any help.
Thanks.






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Looking up multiple results with VLOOKUP

=VLOOKUP(F2,$A$2:$B$11343,2)

That tells me your table is sorted so that means all the project numbers are
grouped.

Try this:

=IF(ROWS($1:1)<=COUNTIF(A$2:A$11343,F$2),INDEX(B$2 :B$11343,MATCH(F$2,A$2:A$11343,0)+ROWS($1:1)-1),"")

Copy down until you get blanks. You'd have to copy to the same number of
cells that equals the max count of any project. For example, project XX
appears the most, 10 times. So you'd have to copy the formula to at least 10
cells.

--
Biff
Microsoft Excel MVP


"Bob" wrote in message
...
Thanks for the help! My current VLOOKUP formula is as follows:
=VLOOKUP(F2,$A$2:$B$11343,2)
I'm not sure I understand how to translate your formula below to use the
lookup_value, table_array, and col_index_number contained in my formula.
Could you kindly clarify? Thanks.


"Teethless mama" wrote:

=INDEX(C1:C100,MATCH(1,(A1:A100="criteria 1")*(B1:B100="criteria 2"))

ctrl+shift+enter, not just enter


"Bob" wrote:

Is it possible to have VLOOKUP return multiple results? (I suspect the
answer is "No"). My "lookup table" consists of project numbers in
column A
and supported systems in column B (the project number is repeated in
each row
for which there is a different supported system).
If VLOOKUP can't do the job, can someone possibly show me how to write
a
macro that will? I would appreciate any help.
Thanks.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Looking up multiple results with VLOOKUP

Peo,
Thanks. However, since the number of supported systems varies by project
(and can change over time), your proposed solution doesn't really help.
Thanks all the same.
Bob


"Peo Sjoblom" wrote:

You need to use 2 formulas then, first get all lookups then concatenate them

=A1&", "&A2&", "&A3 etc

you won't get a formula that will do this in one fell swoop


--
Regards,

Peo Sjoblom



"Bob" wrote in message
...
Peo,
Thanks for your help! Instead of returning the results in separate cells,
can you tell me if there is a way to modify your formula so that the
results
are concatentated (using a comma and space as a separator) and displayed
in
one cell?
Thanks again,
Bob


"Peo Sjoblom" wrote:

Here;'s a way

http://nwexcelsolutions.com/advanced_function_page.htm

look at number 6

You can download a sample here

http://nwexcelsolutions.com/Download...20lookup .xls


--
Regards,

Peo Sjoblom



"Bob" wrote in message
...
Is it possible to have VLOOKUP return multiple results? (I suspect the
answer is "No"). My "lookup table" consists of project numbers in
column
A
and supported systems in column B (the project number is repeated in
each
row
for which there is a different supported system).
If VLOOKUP can't do the job, can someone possibly show me how to write
a
macro that will? I would appreciate any help.
Thanks.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup, multiple results (in different cells)? Johan[_2_] Excel Worksheet Functions 1 May 2nd 07 04:19 PM
Index & Match functions - multiple criteria and multiple results [email protected] Excel Worksheet Functions 4 May 2nd 07 03:13 AM
adding multiple vlookup results fomo Excel Worksheet Functions 7 January 30th 07 08:43 PM
how to return multiple results in vlookup? Landa Excel Worksheet Functions 3 July 20th 06 08:27 AM
Add multiple vlookup results Dawn Excel Worksheet Functions 6 June 20th 06 10:06 PM


All times are GMT +1. The time now is 05:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"