Jump to content

Recommended Posts

Posted (edited)

I'm not an Excel guru but use it a lot for simple record keeping (student grades etc).

In the SS I'm working on at the moment one cell finds the highest mark from a set of marks using the =Max(Cell range) function.

What I would like to do is (automatically) fill a second cell with the 'Header' cell corresponding to the highest mark.

It's probably easier to understand with a picture (a very much simplified version):

post-18455-1209402796_thumb.jpg

Any help would be welcome (I'm not afraid of macros or VBA).

Sorry forgot to say - MS Office/Excel 2003

Edited by <SparTacuS>

Posted

=INDEX(C1:E1,1,MATCH(F2,C2:E2,0))

where c2:e2 in the MATCH statement is the same cell range as the MAX() range.

and C1:E1 is the cell range containing your headers

Posted

I take your point spacesurfer, I'll have to try it out and see what happens if there are multiple instances of the highest value - will it crash, or just pick the first instance?

In the case of my SS as long as it picks one of them it won't matter (This is just to decide the best assignment to submit to exam board - purely on highest score) but it may make a difference in another application.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...