Sorry you will need to use HLOOKUP instead of VLOOKUP (if it exists, if HLOOKUP doesnt exist then you will need to re-arrange the data so it is vertical)
Your formula is slightly wrong though.
You have
Quote
=VLOOKUP(MAX(A2:D2), A2:D2, 1)
Where your numbers are in the cells A2:D2 and your subjects are in A1:D1 (in the second example_
The formula basically says this:
Quote
vertical look up(for the biggest number in cells(A2:D2), Show me the values from the cell range, A2:D2, 1)
I dont know what the 1 at the end is for
So basically you need to make the formula look in the number cells fo rhte highest value and then pick the corresponding subject from the cells ABOVE:
Vertical lookup(Biggest number in(NUMBER:CELLS), Show me the corresponding value from, SUBJECT:CELLS, 1)
EG:
Quote
=HLOOKUP(MAX(A2:*D2), A1:*D1, 1)
Try that In your second exmaple where the numbers are on the second row and the subjects on the first. If you copy and paste it then be aware i have put a * between the colon and the D's as otherwise it gets lumped together as the

emoticon. So if you copy and paste remember to take out the *
Edited by shadowx, 11 December 2009 - 09:41 AM.