View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
KL KL is offline
external usenet poster
 
Posts: 201
Default Getting column number from HLOOKUP?

=MATCH("orange",A1:D1,0)

Regards,
KL

wrote in message
oups.com...
I'm doing a simple HLOOKUP and would like to know what column a
matching value is in rather than the value of something else in a
nearby row.

For example if I have:

apple orange pear

in columns 1, 2, and 3 respectively, how do I do a search for "orange"
and then return the column number "2" as the match?

Thanks for any ideas!