# 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. ## 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. 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
 E2E3E4E5 =

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. i cou;dnt get index to work but offset with your same formula worked great thank you very much

#### Posting Permissions

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