View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
Malcolm McMaster[_2_] Malcolm McMaster[_2_] is offline
external usenet poster
 
Posts: 15
Default VLookup With multiple corresponding values

many thanks I'll give this a try

"Carim" wrote:

Hi Malcolm,

What you are after is only possible with an array formula ( Control
Shift Enter ), starting in row 2 of your second worksheet :

=IF(ROWS(B$2:B2)<=COUNTIF(Data!$A$2:$A$21,$A$2),IN DEX(Data!$B$2:$B
$21,SMALL(IF(Data!$A$2:$A$21=$A$2,ROW(Data!$A$2:$A $21)-ROW(Data!$A
$2)+1),ROWS(B$2:B2))),"")

Assumption is that your data is located is located in sheet called
Data, area is A1:B21 and field names are in row 1 ...

HTH