View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sam via OfficeKB.com Sam via OfficeKB.com is offline
external usenet poster
 
Posts: 247
Default Search Column Data and Return Multiple Values across Row

Hi Domenic,

Thank you very much. Formula works Great!

Cheers,
Sam

Domenic wrote:
Assuming that the results are to be returned in Row 20, starting at D20,
try the following formula which needs to be confirmed with
CONTROL+SHIFT+ENTER...


D20, copied across:


=IF(COLUMNS($D20:D20)<=COUNTIF($B$20:$B$105,"=2" ),INDEX($A$20:$A$105,SMA
LL(IF($B$20:$B$105=2,ROW($B$20:$B$105)-ROW($B$20)+1),COLUMNS($D20:D20)))
,"")


Hope this helps!


--
Message posted via http://www.officekb.com