Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default subtotal filter with growing range

i have an excel sheet with data in several columns and hundreds of rows that
i am calculating a subtotal for when i filter the data. i want the subtotal
formula as the top row of the spreadsheet so that when the filter is applied
the change in results is visible. i will be adding rows to the bottom of the
spreadsheet and want to define a dynamic range for the column so that i do
not have to change the subtotal formula range every time a new group of rows
is added, but i keep getting circular reference errors when doing this using
the offset formula to name the group of cells. is there a way to define a
name for the last cell in a column that has data in it that would not create
a circular reference?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 143
Default subtotal filter with growing range

You can set your subtotal range to near the end of the sheet:
=SUBTOTAL(9,A2:A50000)

As long as your dataset does not exceed 50,000 rows, you are set. If it
does, just adjust the range again. Really, there is nothing stopping you
from setting it to
SUBTOTAL(9,A2:A65536) for Excel 2003 or earlier
or
SUBTOTAL(9,A2:A1048576) for Excel 2007. There may be a performance issue,
but only if you have a complex array.

--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"Starboxes" wrote:

i have an excel sheet with data in several columns and hundreds of rows that
i am calculating a subtotal for when i filter the data. i want the subtotal
formula as the top row of the spreadsheet so that when the filter is applied
the change in results is visible. i will be adding rows to the bottom of the
spreadsheet and want to define a dynamic range for the column so that i do
not have to change the subtotal formula range every time a new group of rows
is added, but i keep getting circular reference errors when doing this using
the offset formula to name the group of cells. is there a way to define a
name for the last cell in a column that has data in it that would not create
a circular reference?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default subtotal filter with growing range

yeah i'd thought of that but didn't want it to have to come to that since i
will not be the person using the sheet in another month...guess i'm stuck!
thanks :)

"PJFry" wrote:

You can set your subtotal range to near the end of the sheet:
=SUBTOTAL(9,A2:A50000)

As long as your dataset does not exceed 50,000 rows, you are set. If it
does, just adjust the range again. Really, there is nothing stopping you
from setting it to
SUBTOTAL(9,A2:A65536) for Excel 2003 or earlier
or
SUBTOTAL(9,A2:A1048576) for Excel 2007. There may be a performance issue,
but only if you have a complex array.

--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"Starboxes" wrote:

i have an excel sheet with data in several columns and hundreds of rows that
i am calculating a subtotal for when i filter the data. i want the subtotal
formula as the top row of the spreadsheet so that when the filter is applied
the change in results is visible. i will be adding rows to the bottom of the
spreadsheet and want to define a dynamic range for the column so that i do
not have to change the subtotal formula range every time a new group of rows
is added, but i keep getting circular reference errors when doing this using
the offset formula to name the group of cells. is there a way to define a
name for the last cell in a column that has data in it that would not create
a circular reference?

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
Subtotal and Auto-filter John Excel Worksheet Functions 1 October 20th 08 11:41 PM
Growing range within a Sumproduct. mmartens12 via OfficeKB.com Excel Worksheet Functions 5 August 2nd 06 12:46 AM
SUBTOTAL and FILTER confused Excel Worksheet Functions 5 June 21st 06 01:57 PM
Auto Filter + subtotal alex Excel Discussion (Misc queries) 7 September 13th 05 06:33 PM
Auto Filter + subtotal alex Excel Worksheet Functions 4 July 25th 05 01:41 PM


All times are GMT +1. The time now is 06:42 PM.

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"