+ Reply to Thread
Results 1 to 4 of 4

Comparing values and returning the column heading

  1. #1
    Steven Brobst
    Guest

    Comparing values and returning the column heading

    Is there a way to take the max value of a range of cells ( say a3:g3 ) and
    return the row 1 value of that?

    Like if max(a3:g3) would say the value of f3 is the largest, I would like
    the cell to actually return the value (company name) of F1


    Thanks,
    Steven





  2. #2
    Dave Peterson
    Guest

    Re: Comparing values and returning the column heading

    How about:

    =INDEX(A1:G1,MATCH(MAX(A3:G3),A3:G3,0))



    Steven Brobst wrote:
    >
    > Is there a way to take the max value of a range of cells ( say a3:g3 ) and
    > return the row 1 value of that?
    >
    > Like if max(a3:g3) would say the value of f3 is the largest, I would like
    > the cell to actually return the value (company name) of F1
    >
    > Thanks,
    > Steven


    --

    Dave Peterson

  3. #3
    JE McGimpsey
    Guest

    Re: Comparing values and returning the column heading

    One way:

    =INDEX(A1:G1,MATCH(MAX(A3:G3),A3:G3,FALSE))

    In article <[email protected]>,
    "Steven Brobst" <[email protected]> wrote:

    > Is there a way to take the max value of a range of cells ( say a3:g3 ) and
    > return the row 1 value of that?
    >
    > Like if max(a3:g3) would say the value of f3 is the largest, I would like
    > the cell to actually return the value (company name) of F1
    >
    >
    > Thanks,
    > Steven


  4. #4
    Peo Sjoblom
    Guest

    Re: Comparing values and returning the column heading

    =INDEX(A:G1,MATCH(MAX(A3:G3),A3:G3,0))

    --
    Regards,

    Peo Sjoblom

    (No private emails please, for everyone's
    benefit keep the discussion in the newsgroup/forum)



    "Steven Brobst" <[email protected]> wrote in message
    news:[email protected]...
    > Is there a way to take the max value of a range of cells ( say a3:g3 ) and
    > return the row 1 value of that?
    >
    > Like if max(a3:g3) would say the value of f3 is the largest, I would like
    > the cell to actually return the value (company name) of F1
    >
    >
    > Thanks,
    > Steven
    >
    >
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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