+ Reply to Thread
Results 1 to 3 of 3

find which column has the maximum value

  1. #1
    Frank Drost
    Guest

    find which column has the maximum value

    I have to check each row for the maximum value in that row. But instead of
    writing the maximum value of that row, I have to write the column number of
    that maximum value. The very first row of my dataset goes from 1 to 100,
    indicating 100 columns, and is there only to number the columns. So, the
    column number has to be picked from that row.
    For instance, in row 20, the maximum value is 10, and it is at column 56.
    How can I as output of a formula (or conditional formatting) get as answer 56?

    ta


  2. #2
    Bob Phillips
    Guest

    Re: find which column has the maximum value

    Try this

    =MATCH(MAX(20:20),20:20,0)

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Frank Drost" <FrankDrost@discussions.microsoft.com> wrote in message
    news:B0630D7E-102C-4A7E-B4A6-11D0B148E4A1@microsoft.com...
    > I have to check each row for the maximum value in that row. But instead of
    > writing the maximum value of that row, I have to write the column number

    of
    > that maximum value. The very first row of my dataset goes from 1 to 100,
    > indicating 100 columns, and is there only to number the columns. So, the
    > column number has to be picked from that row.
    > For instance, in row 20, the maximum value is 10, and it is at column 56.
    > How can I as output of a formula (or conditional formatting) get as answer

    56?
    >
    > ta
    >




  3. #3
    B. R.Ramachandran
    Guest

    RE: find which column has the maximum value

    Hi,

    If your data start in Column A (so the column range is A:CV for your 100
    columns), use the following formula in may be CW (i.e., column 101) and
    autofill down the rows.

    =MATCH(MAX(A2:CV2),A2:CV2,0)

    If your data start in some other column, say Column C, (so the range is
    C:CX), use the following modification.

    =MATCH(MAX(C2:CX2),C2:CX2,0)+COLUMN(C2)-1

    Regards,
    B. R. Ramachandran

    "Frank Drost" wrote:

    > I have to check each row for the maximum value in that row. But instead of
    > writing the maximum value of that row, I have to write the column number of
    > that maximum value. The very first row of my dataset goes from 1 to 100,
    > indicating 100 columns, and is there only to number the columns. So, the
    > column number has to be picked from that row.
    > For instance, in row 20, the maximum value is 10, and it is at column 56.
    > How can I as output of a formula (or conditional formatting) get as answer 56?
    >
    > ta
    >


+ 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