# Finding the Highest Value in a Row, and then return the value of cell above it

#### jeells102

##### New Member
Hi All,

So I've got a table in excel that is laid out like below;

 8am-9am 9am-10am 10am-11am 11am-12pm 12pm-1pm 1pm-2pm 2pm-3pm 3pm-4pm 4pm-5pm 5pm-6pm 1 2 3 4 5 6 7 8 9 10 1 12 72 124 209 322 450 500 644 678 1 2 3 4 5 6 7 8 9 10 11 60 52 85 113 128 50 144 34

<colgroup><col><col><col><col><col><col span="5"></colgroup><tbody>
</tbody>

And the last row is the difference between Column B - Column A. What I want to do, in a different cell, is say "Find the highest number in the row, and then return the time in which that happened in"

So in the table above, Excel would find that 144 was the highest number, and it would return 4pm-5pm. I cannot think of a way to do this. Does anyone have any ideas?

I think I'm gonna have to do a index and match, but I have no clue on how best to tackle that.

Any ideas would be greatly appreciated

### Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

#### mrshl9898

##### Well-known Member
Hi,

Assuming your data above starts in A1, try this:

=INDEX(A1:J1,1,MATCH(MAX(A5:J5),A5:J5,0))

#### dcoker

##### New Member
=INDEX(A1:J1,1,MATCH(max(A5:J5),A5:J5,0))

This is given that the data is in row 1 starting with column A.

Hope this helps!

Replies
2
Views
40
Replies
2
Views
577
Replies
2
Views
209
Replies
9
Views
149
Replies
10
Views
517

Threads
1,108,492
Messages
5,523,262
Members
409,506
Latest member
reneekeane