Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 124
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default 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!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert a month to a quarter ...... Epinn New Users to Excel 26 May 3rd 23 07:45 PM
Vlookup to Return a Range of Data Rob Excel Discussion (Misc queries) 13 June 1st 06 04:02 AM
If formula John Excel Worksheet Functions 4 May 17th 06 04:42 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM


All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"