Results 1 to 3 of 3

simple MAX + comparison formula

This is a discussion on simple MAX + comparison formula within the Excel Questions forums, part of the Question Forums category; hi ok here's my question. i have 4 columns (A:D). for each row, i need the 5th cell to say ...

  1. #1
    j0e
    j0e is offline
    New Member
    Join Date
    Nov 2005
    Posts
    2

    Default simple MAX + comparison formula

    hi

    ok here's my question. i have 4 columns (A:D). for each row, i need the 5th cell to say which is the highest. lets say a-d are apples, oranges, bananas, pears. and the spread looked like this:

    A O B P
    5 7 3 5
    1 8 2 4
    1 0 6 4
    8 2 6 3


    i would want to add a 5th column that figures out which of A-D is highest and tells me. so it would look like this:

    A O B P Max
    5 7 3 5 O
    1 8 2 4 O
    1 0 6 4 B
    8 2 6 3 A


    i'm not worried about ties (they will be very rare) so you can have an error or give the wrong answer, whatever.

    thanks very much for your help

  2. #2
    Board Regular PA HS Teacher's Avatar
    Join Date
    Jul 2004
    Location
    Rochester, NY
    Posts
    2,838

    Default

    Since you're not worried about ties, how about something like this?
    ******** ******************** ************************************************************************>
    Microsoft Excel - Book1___Running: xl2000 : OS = Windows XP
    (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
    =

    A
    B
    C
    D
    E
    1
    AOBPMax
    2
    5735O
    3
    1824O
    4
    1064B
    5
    8263A
    Sheet1

    [HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
    PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.


    In E2 and pasted down:
    Code:
    =INDEX(A$1:D$1,MATCH(MAX(A2:D2),A2:D2,0))

  3. #3
    j0e
    j0e is offline
    New Member
    Join Date
    Nov 2005
    Posts
    2

    Default

    i cou;dnt get index to work but offset with your same formula worked great thank you very much

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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


DMCA.com