Getting column number from HLOOKUP?

R

robotman

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!
 
D

Domenic

Assuming that A1:C1 contains the data, try...

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

Hope this helps!
 
R

robotman

Ah...thanks! Now I have a new problem with the match. For some reason
MATCH isn't finding matching dates. I'll start a new topic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top