Row number

G-fer

Board Regular
Joined
Jul 18, 2005
Messages
192
Hi All ...

How do I find the row number of the cell that meets this criteria?

=MAX(A:A)

Regards ....
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi All ...

How do I find the row number of the cell that meets this criteria?

=MAX(A:A)

Regards ....

B1, just enter:

=MATCH(9.99999999999999E+307,A:A)

B2, just enter:

=MAX(A1:INDEX(A:A,B1)

B3, just enter:

=COUNTIF(A1:INDEX(A:A,B1),B2)

B4: Rows Of Max

B5, control+shift+enter, not just enter, and copy down:

=IF(ROWS($B$5:B5)<=$B$3,SMALL(IF($A$1:INDEX(A:A,$B$1)=$B$2,ROW($A$1:INDEX(A:A,$B$1))),ROWS($B$5:B5)),"")

B5 downwards you get the native row numbers.
 
Upvote 0
Ok then, that part's solved, now the harder part ...

The result of =MATCH(MAX(A:A),A:A,0) is row number 70

Now I need to assign the contents of B70 (the 70 being the result of the previous formula) to C1. I've tried things like =$B$MATCH(MAX(A:A),A:A,0) etc., but to no avail.

Any ideas?

G
 
Upvote 0
Ok then, that part's solved, now the harder part ...

The result of =MATCH(MAX(A:A),A:A,0) is row number 70

Now I need to assign the contents of B70 (the 70 being the result of the previous formula) to C1. I've tried things like =$B$MATCH(MAX(A:A),A:A,0) etc., but to no avail.

Any ideas?

G

What is your exact range in A:B? You can't just assume that there is just one instance of the MAX value in the A-range...
 
Upvote 0
Mmm ....

Good thought Aladin ...

A new number is appended to the bottom of row A at regular intervals. At the same time, a number is removed from the top of the numbers. Thecolumn length is continually growing, but the number of populated cells would normally remain the same. At this time there will only be a maximum of 5 populated cells in the column, and, because they run to a number of decimal places, it is extremely unlikely that there will be any dupes. however, if there were two, for example, either one of the rows returned would suffice.

My aim is to assign the value of the cell at col B, row(whatever was returned), to C1.

G-fer
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,158
Members
452,892
Latest member
yadavagiri

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