LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Cumulative totals carrying over to several spreadsheets

If you're willing to use a User Defined Function.......

Function PrevSheet(rg As Range)
n = Application.Caller.Parent.Index
If n = 1 Then
PrevSheet = CVErr(xlErrRef)
ElseIf TypeName(Sheets(n - 1)) = "Chart" Then
PrevSheet = CVErr(xlErrNA)
Else
PrevSheet = Sheets(n - 1).Range(rg.Address).Value
End If
End Function

Say you have 52 sheets, sheet1 through sheet52...........sheet names don't
matter.

In sheet1 you have a formula in A10 =SUM(A1:A9)

Select second sheet and SHIFT + Click last sheet

In active sheet A10 enter =SUM(PrevSheet(A10),A1:A9)

Ungroup the sheets.

Each A10 will have the sum of the previous sheet's A10 plus the sum of the
current sheet's A1:A9


Gord Dibben MS Excel MVP


On Thu, 15 Nov 2007 08:46:01 -0800, Schotze's Mom <Schotze's
wrote:

I'm creating an Excel spreadsheet with separate tabs for each week of the
year. I need to have cumulative totals carrying over from one week to the
next through the end of the year. Is it possible to do this?




 
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
carrying previous totals from one worksheet to another. Yvesdouce Excel Worksheet Functions 1 October 10th 07 05:47 PM
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 George Excel Discussion (Misc queries) 0 November 17th 06 08:04 PM
cumulative totals in a workbook YvonneAsthma Excel Worksheet Functions 1 February 9th 06 04:12 AM


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