Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default Select End of list in formula?

Is there a way to have a formula dynamically select the end of a list.

For example I have a list in Col A that can range from 10 - 5000
entries. I want to dynamically sum this (without always just selecting
the max size because there is information below the list). I also want
to use a formula instead of a list or pivot table.

In visual basic the selection would be something like:
SUM (Range(Range("A1"),Range("A1").End(xldown)))

Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 695
Default Select End of list in formula?

=SUM(A10:INDIRECT("A"&MAX(IF(A10:A5000<"",ROW(A10 :A5000)))))
paste then hit ctrl+shift+enter

" skrev:

Is there a way to have a formula dynamically select the end of a list.

For example I have a list in Col A that can range from 10 - 5000
entries. I want to dynamically sum this (without always just selecting
the max size because there is information below the list). I also want
to use a formula instead of a list or pivot table.

In visual basic the selection would be something like:
SUM (Range(Range("A1"),Range("A1").End(xldown)))

Any ideas?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Select End of list in formula?

Will there be any empty cells *within* the range of interest? Is there a
"delimiter" between the range of interest and the data below it (like an
empty cell)?

Here's one way assuming no empty cells *within* the range of interest and
there is at least one empty cell between data sets:

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=SUM(A1:INDEX(A1:A10000,MATCH(TRUE,A1:A10000="",0) ))

Biff

wrote in message
oups.com...
Is there a way to have a formula dynamically select the end of a list.

For example I have a list in Col A that can range from 10 - 5000
entries. I want to dynamically sum this (without always just selecting
the max size because there is information below the list). I also want
to use a formula instead of a list or pivot table.

In visual basic the selection would be something like:
SUM (Range(Range("A1"),Range("A1").End(xldown)))

Any ideas?



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
auto updating list Larry Excel Worksheet Functions 8 July 27th 06 01:59 PM
list formula for dates Jim Excel Worksheet Functions 3 January 19th 06 07:12 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
enhanced conditional formatting Stuart Excel Discussion (Misc queries) 13 November 13th 05 07:20 PM


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

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

About Us

"It's about Microsoft Excel"