insert column header in cell below result of max FUNCTION

M

mark s

I am using the MAX function to select a cell value, I would like to print
the column header of the column that the cell value was selected from in the
cell below the results of the max function.
 
M

Max

One way to extract it directly ..

Assume col headers in B1:D1, with values in row2 down
Put in say A2, copy down:
=INDEX(B$1:D$1,MATCH(MAX(B2:D2),B2:D2,0))
to return the required col header

If there are ties in the max, the leftmost header will be returned
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:15,700 Files:353 Subscribers:53
xdemechanik
 
T

T. Valko

Try this:

...........A..........B..........C..........D.....
1......Wk1....Wk2.....Wk3.....Wk4
2.......22.........17.........44........30

=INDEX(A1:D1,MATCH(MAX(A2:D2),A2:D2,0))

Result = Wk3
 

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