LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default HLOOKUP() to return heading cells

Think its optional ..

From Excel's Help
INDEX(array,row_num,column_num)
If array contains only one row or column,
the corresponding row_num or column_num argument is optional.

In H2: =INDEX(A$1:F$1,,MATCH(G2,A2:F2,0))
would have worked just as well
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,000 Files:362 Subscribers:62
xdemechanik
---
"FARAZ QURESHI" wrote in message
...
Max! U r the best no doubt!
However, can you explain how does this formula work?
The part MATCH(G2,A2:F2,0) has been inserted in the Row_Num, instead of
Col_Num?
The formula as per the F1 help should have been
=INDEX(A$1:F$1,1,MATCH(G2,A2:F2,0))? Don't you think so?




 
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
Lookup Value and Return Column Heading eb Excel Worksheet Functions 6 May 24th 08 05:24 AM
Return the value of a column heading Eric Excel Discussion (Misc queries) 1 May 19th 08 10:02 PM
Return column heading Tubthumper Excel Worksheet Functions 5 April 30th 08 09:09 PM
return a collum heading ABCBAC Excel Worksheet Functions 1 November 11th 06 10:01 AM
LOOKUP and return the column heading for IF/THEN return for False NN Excel Discussion (Misc queries) 1 October 6th 06 11:24 AM


All times are GMT +1. The time now is 06:46 PM.

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

About Us

"It's about Microsoft Excel"