Identify row number from cell with max value

weeping fig

New Member
Joined
Jan 4, 2014
Messages
3
Hi new to Excel but enjoying it.

I have a column of numbers, say in column "A" that increase to a maximum and then starts to decrease.

I have Identified the cell that has the maximum number in the column using the Max function and this number is then updated in another part of my spreadsheet but I need to identify what row number this is.

What formula would show this?

Many thanks
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
if your data goes from A1 to A100 then use below to find row number

MATCH(MAX($A$1:$A$100);$A$1:$A$100;0)
 
Last edited:
Upvote 0
Hi, thanks for your quick response and help with this.

I tried the formula but an error was returned. Not sure if I did right but I changed your 2 semi colons to commas and a row number was returned but was incorrect.
The cell range that I am using is AL14 to AL148.
This time row 18 was returned and should have been row 31.

Many thanks
 
Upvote 0
Hi, thanks for your quick response and help with this.

I tried the formula but an error was returned. Not sure if I did right but I changed your 2 semi colons to commas and a row number was returned but was incorrect.
The cell range that I am using is AL14 to AL148.
This time row 18 was returned and should have been row 31.
See if this variation on VBA Geek's formula works for you...

=MATCH(MAX($AL$14:$AL$148),$AL$14:$AL$148,0)+8
 
Upvote 0
in your match function you may also input the whole range AL1:AL148 as second argument, then as first argument the max AL14:AL148, then exact match as third.
 
Upvote 0
Hi great, not 8 but add 13. Do you know why I need to add 13 to the formula?

Thanks for your help, first thread and quick success.
 
Upvote 0
Hi great, not 8 but add 13. Do you know why I need to add 13 to the formula?
Yes, 13, not 8... I forgot to change it from the example range I was testing with. Glad you were able to figure it out on your own. The number being added is one less than the starting row number for the range because MATCH returns a count starting from the beginning of the range given it, not Row 1, so we have to add the offset from Row 1 to the beginning of the range to account for that.
 
Last edited:
Upvote 0
Hi great, not 8 but add 13. Do you know why I need to add 13 to the formula?

Thanks for your help, first thread and quick success.

See my formula in #6

About your question:
Because MATCH returns the relative position of the MAX inside the range AL14:AL148.

So, 1 (the first position) corresponds to AL14; 2 corresponds to AL15; 3 corresponds to AL16 and so on.

Therefore to get the row number of the MAX value, you need to add the row number of the first cell (AL14) and subtract 1.

M.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top