+ Reply to Thread
Results 1 to 5 of 5

Identifying MAX column header

  1. #1
    Registered User
    Join Date
    10-06-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    7

    Identifying MAX column header

    There is probably a really easy solution to this, but I can't for the life of me figure one out and I am not having any luck with the googles.

    I am using a MAX function to identify the top revenue/cost/profit measures but I also want to identify which branch had the top-performing measure. I've attached a small sample that will, hopefully, show what I mean more clearly.

    Any help would be appreciated.

    Thanks!
    Attached Files Attached Files
    Last edited by Canucklehead; 10-07-2009 at 08:41 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Identifying MAX column header

    Try:

    =INDEX($B$2:$D$2,MATCH(E3,B3:D3,0))

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-06-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Identifying MAX column header

    Thanks, that worked wonders. Now, if I could only understand why... Guess I'll be doing some reading this morning.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Identifying MAX column header

    Match() matches the value in E3 to values in B3:D3 and finds the position of the first match it comes across... then Index() indexes the header range and returns, the value at the same position that the Match() argument returned...

    It is a bit like Hlookup reversed so that you can lookup above the lookup range instead of just below....

  5. #5
    Registered User
    Join Date
    10-06-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Identifying MAX column header

    I am still puzzling my way through it; it will just take practice and fooling around a bit with these new-to-me functions. Thanks for taking the time to explain.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1