View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
squenson via OfficeKB.com squenson via OfficeKB.com is offline
external usenet poster
 
Posts: 78
Default Multiple results in Vlookup

You could use a MATCH function which returns the row in a range instead of
the value, then you would combine it with an INDEX function to select the
proper column. Something like:

=IF(FREQUENCY(...)1, INDEX(myRangeToSearch, MATCH(mySoughtValue,
myColumnRangeToMatch, 0), myColumnNumber), VLOOKUP(...))

=INDEX(A8:B11,MATCH("123456",A8:A11,0),2)

Stephane Quenson

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