Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Getting column number from HLOOKUP?

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!

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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default Getting column number from HLOOKUP?

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

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

Hope this helps!

In article .com,
wrote:

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!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Getting column number from HLOOKUP?

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






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

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

Hope this helps!

In article .com,
wrote:

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!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
SEeing if a number in one column is in another column Ricki Miles Excel Discussion (Misc queries) 4 February 16th 06 11:04 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
look up number in column eioval Excel Worksheet Functions 2 July 30th 05 08:16 PM


All times are GMT +1. The time now is 08:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"