simple MAX + comparison formula

j0e

New Member
Joined
Nov 3, 2005
Messages
2
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 :)
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Since you're not worried about ties, how about something like this?
Book1
ABCDE
1AOBPMax
25735O
31824O
41064B
58263A
Sheet1


In E2 and pasted down:
Code:
=INDEX(A$1:D$1,MATCH(MAX(A2:D2),A2:D2,0))
 
Upvote 0
i cou;dnt get index to work but offset with your same formula worked great :) thank you very much
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,207
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top