#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 130
Default Subtotaling

I need a formula to subtotal colums of sequential 1s as shown:
e.g. B is the column of data, C has the subtotals.

1 )
1 )
1 )
1 )
1 ) subtotal = 5
4
5
6
7
1 )
1 )
1 ) subtotal = 3
3
4
5
1
1 = subtotal = 2
5

Any help?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Subtotaling

Assuming your data in B1:B18

In C2: =IF(AND(B2=1,B3<1),SUMIF($B$1:B2,1)-SUM($C$1:C1),"")
copy down



"Katie" wrote:

I need a formula to subtotal colums of sequential 1s as shown:
e.g. B is the column of data, C has the subtotals.

1 )
1 )
1 )
1 )
1 ) subtotal = 5
4
5
6
7
1 )
1 )
1 ) subtotal = 3
3
4
5
1
1 = subtotal = 2
5

Any help?


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
Subtotaling falva Excel Worksheet Functions 0 February 20th 09 05:01 PM
Display when subtotaling. Bookmdano Excel Discussion (Misc queries) 2 August 11th 08 05:02 PM
subtotaling Mike Morris Excel Discussion (Misc queries) 2 March 27th 08 10:01 PM
subtotaling every third row? [email protected] Excel Worksheet Functions 4 May 4th 07 11:44 PM
Subtotaling of hours Thomas Excel Worksheet Functions 2 November 28th 06 06:03 PM


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