LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Write an excel 'sum' formula for a certain # of columns

Hmm,

What's a 'trailing' day? I think your saying you want to sum the last 30
entries of data. This sums the last 30 entries in column A and is dynamic so
as new entries are added it stills sums the last 30

=SUM(OFFSET(A1,COUNTA(A:A)-30,):OFFSET(A1,COUNTA(A:A),))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"ctante" wrote:

I am trying to build a rolling spreadsheet based on days. I want to have a
total for the trailing 30 days, but keep all the information that is older
than 30 days. If I lock the formula, and add new days it keeps the original
30 day calculation, instead of adding on 1 new day and dropping off the
oldest day of the 30.

 
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
a simple 'sum' formula is not adding all of the data in range Wild Cherry Excel Discussion (Misc queries) 2 July 7th 09 05:10 AM
how to put 'SUM' formula in VB after picking up certain names and their bonus [email protected] Excel Discussion (Misc queries) 11 January 31st 07 10:19 AM
'SUM' Tables masster Excel Worksheet Functions 4 August 27th 05 07:33 AM
How do I write a VBA code in excel that will compare two columns . PenelopeinCinci Excel Worksheet Functions 2 April 14th 05 05:27 PM
How can I write vertically in some columns on an Excel spreadshee. Teacher using spreadsheets Charts and Charting in Excel 1 January 9th 05 01:00 AM


All times are GMT +1. The time now is 09:56 PM.

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"