Find largest value and return placement

  • Thread starter Thread starter Molly
  • Start date Start date
M

Molly

Assuming you want the Name of the Company - A, B or C -
with max sales:

In first column, assuming it is column A with Company
names in Cells B1, C1 and D1 and Company Sales in Rows 2
through whatever - try:

A2 =INDEX($B$1:$D$1,1,MATCH(MAX(B2:D2),B2:D2,0))
A3 =INDEX($B$1:$D$1,1,MATCH(MAX(B3:D3),B3:D3,0))
A4 =INDEX($B$1:$D$1,1,MATCH(MAX(B4:D4),B4:D4,0))
A5 =INDEX($B$1:$D$1,1,MATCH(MAX(B5:D5),B5:D5,0))

etc.

Does this do you?
 
It do me good! Thanks a ton.

-----Original Message-----
Assuming you want the Name of the Company - A, B or C -
with max sales:

In first column, assuming it is column A with Company
names in Cells B1, C1 and D1 and Company Sales in Rows 2
through whatever - try:

A2 =INDEX($B$1:$D$1,1,MATCH(MAX(B2:D2),B2:D2,0))
A3 =INDEX($B$1:$D$1,1,MATCH(MAX(B3:D3),B3:D3,0))
A4 =INDEX($B$1:$D$1,1,MATCH(MAX(B4:D4),B4:D4,0))
A5 =INDEX($B$1:$D$1,1,MATCH(MAX(B5:D5),B5:D5,0))

etc.

Does this do you?
.
 
Back
Top