Find largest value and return placement

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?
 
P

PJD

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?
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top