Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default vlookup - return multiple data

Assume the lookup table is in the range of E1:F10

A1 = lookup_value

=IF(ROWS($1:1)<=COUNTIF(E$1:E$10,A$1),INDEX(F$1:F$ 10,MATCH(A$1,E$1:E$10,0)+ROWS($1:1)-1),"")

Copied down to a number of cells that is equal to the max count of any
lookup_value. For example, suppose the lookup_value is "white" and it
appears more than any other lookup_value. It appears 10 times so you'd need
to copy the formula to at least 10 cells.

--
Biff
Microsoft Excel MVP


"RBA" wrote in message
...
I sorted my table array by the look up value prior to writing the formula
so
they are grouped together.

"T. Valko" wrote:

Is your table_array sorted on the lookup_value so that the lookup_values
are
all grouped together? Or, are the lookup_values in random locations?

If they're grouped together (sorted) it's a much easier formula. If
they're
random then it's a somewhat complicated array formula.

--
Biff
Microsoft Excel MVP


"RBA" wrote in message
...
I am very familiar with the vlookup function. Is there any way I can
return
multiple cell values if the look up value is located on multiple lines
of
the
table array? In this instance, I'm dealing with text so it's not
something I
can sum.






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: Return Multiple Columns? Walter Excel Discussion (Misc queries) 6 August 29th 07 05:58 PM
How to return multiple instances using VLOOKUP Jaybisco Excel Worksheet Functions 3 August 30th 06 08:28 PM
how to return multiple results in vlookup? Landa Excel Worksheet Functions 3 July 20th 06 08:27 AM
Vlookup multiple terms and return one value sahafi Excel Worksheet Functions 5 June 21st 06 09:11 PM
Can I return multiple columns from a vlookup? carolyn Excel Worksheet Functions 3 February 8th 06 09:46 PM


All times are GMT +1. The time now is 02:46 PM.

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"