Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
clh clh is offline
external usenet poster
 
Posts: 1
Default Subtotals every "X" number of rows

Is there a quick, easy way in Excel to do subtotals ever certain number of
rows? In my case I need subtotals every 15 rows. Oh, this is Excel 2003.

I know how to use the Subtotals tool but the only option there seems to be
subtotals based on the change in values of a column. In my case I don't care
about the values of any columns, I just need the subtotals every 15 rows.

Of course I could do this manually, but I'm hoping there's a quick and easy
way to do it similar to how the built-in Subtotals tool works.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Subtotals every "X" number of rows

In a helper column you could put this formula on row 1:

=INT(ROW()/15)

and copy it down. It will give you 15 zeros, followed by 15 ones, then
15 twos etc, so you could use the Data | Subtotals feature using this
column to determine where the subtotals should go (i.e. for each
change in this column ...).

Hope this helps.

Pete

On Dec 10, 4:34*pm, clh wrote:
Is there a quick, easy way in Excel to do subtotals ever certain number of
rows? *In my case I need subtotals every 15 rows. *Oh, this is Excel 2003.

I know how to use the Subtotals tool but the only option there seems to be
subtotals based on the change in values of a column. *In my case I don't care
about the values of any columns, I just need the subtotals every 15 rows.

Of course I could do this manually, but I'm hoping there's a quick and easy
way to do it similar to how the built-in Subtotals tool works.

Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Subtotals every "X" number of rows

Sorry, it should really be:

=INT((ROW()-1)/15)

to give you 15 zeros from row 1.

Pete

On Dec 10, 4:34*pm, clh wrote:
Is there a quick, easy way in Excel to do subtotals ever certain number of
rows? *In my case I need subtotals every 15 rows. *Oh, this is Excel 2003.

I know how to use the Subtotals tool but the only option there seems to be
subtotals based on the change in values of a column. *In my case I don't care
about the values of any columns, I just need the subtotals every 15 rows.

Of course I could do this manually, but I'm hoping there's a quick and easy
way to do it similar to how the built-in Subtotals tool works.

Thank you.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Subtotals every "X" number of rows

One way is with a helper column ;
Enter this in a helper Col (say Col B)
=MOD(Row(),15) and copy down

Then you can use the following to SUM the value in Col A for every 15th row
=SUMPRODUCT(A1:A25,--(B1:B25=1))

"clh" wrote:

Is there a quick, easy way in Excel to do subtotals ever certain number of
rows? In my case I need subtotals every 15 rows. Oh, this is Excel 2003.

I know how to use the Subtotals tool but the only option there seems to be
subtotals based on the change in values of a column. In my case I don't care
about the values of any columns, I just need the subtotals every 15 rows.

Of course I could do this manually, but I'm hoping there's a quick and easy
way to do it similar to how the built-in Subtotals tool works.

Thank you.

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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
how i convert "100" to "hundred"( number to text) in excel-2007 mohanraj Excel Worksheet Functions 1 May 11th 08 09:07 PM
HLOOKUP copied across rows with "row index number" changing KUMPFfrog Excel Worksheet Functions 3 March 13th 08 03:15 PM
How to Count the number of "rows" (or Array items) included in a Sumif formula? EagleOne Excel Discussion (Misc queries) 3 July 30th 07 06:25 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


All times are GMT +1. The time now is 02:39 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"