Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Cumulative Column when using Sub Totals Q

I have the Code below that places a Formula in Cells L13 & L14, then copies the formula in L14 down to last active Row. Essentially this produces a Running Total

How can I adjust this, if I have Sub Total's inserted, instead of a Running total just for the Sub Total Rows, its a Running Total of all Rows?

Sub CopyFormula()
Dim LastRow As Long

Sheets("Report").Select
Range("L13").Select
ActiveCell.FormulaR1C1 = "=RC[-1]"
Range("L14").Select
ActiveCell.FormulaR1C1 = "=RC[-1]+R[-1]C"

LastRow = Cells.Find(What:="*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Range("L14:L" & LastRow).FillDown
Range("A1").Select


End Sub
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
Cumulative totals Songoku Excel Worksheet Functions 0 August 1st 08 08:54 AM
Show cumulative totals IanW[_2_] Charts and Charting in Excel 0 September 14th 07 02:00 PM
cumulative totals AOU Excel Discussion (Misc queries) 3 July 18th 07 04:28 PM
Cumulative totals mantrid Excel Programming 0 April 13th 07 02:07 PM
CUMULATIVE TOTALS George Excel Discussion (Misc queries) 0 November 17th 06 09:04 PM


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