ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   row number within a formula (https://www.excelbanter.com/excel-discussion-misc-queries/126139-row-number-within-formula.html)

charles

row number within a formula
 
I am trying to use the row number within a formula.

For example, instead of
=MIN(A2:A25)

I would need to incorporate ROW(A25) into the formula.

Something like this:
=MIN(A2:A"ROW(A25)")
although this syntax is incorrect.

Thanks!

Ron Rosenfeld

row number within a formula
 
On Mon, 15 Jan 2007 07:43:00 -0800, Charles
wrote:

I am trying to use the row number within a formula.

For example, instead of
=MIN(A2:A25)

I would need to incorporate ROW(A25) into the formula.

Something like this:
=MIN(A2:A"ROW(A25)")
although this syntax is incorrect.

Thanks!



Here's one way:

=MIN(OFFSET(A2,0,0,24))
--ron

PMC1

row number within a formula
 
This would be a two step process:

1. Somewhere in the worksheet (e.g. B1) enter ="A2:A" & Row(A25)

2. Where you want the result returned enter =MIN(INDIRECT(B1))

Regards

Paul


Charles wrote:
I am trying to use the row number within a formula.

For example, instead of
=MIN(A2:A25)

I would need to incorporate ROW(A25) into the formula.

Something like this:
=MIN(A2:A"ROW(A25)")
although this syntax is incorrect.

Thanks!




All times are GMT +1. The time now is 02:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com