Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mal
 
Posts: n/a
Default Is there a function for a 'year to date' sum

I am trying to build an automated 'year to date' column in a financial
summary worksheet but don't want to have to update the formula each month (ie
in month 6, sum cells A to F, then in month 7 change the formula to sum cells
A to G). Is there a function (or group of functions) which will 'lookup' the
current month e.g july and add up the contents of the cells in columns from A
to G (Jan to July)? The following month when I input August in a given cell
the function I'm looking for will recognise this and automatically add cells
A to H (Jan to Aug).

Hope this makes sense. Thanks in anticipation.
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Assuming the row you want to sum is the 10th row

=SUM(OFFSET(A10,0,0,1,MONTH(TODAY())))

"Mal" wrote:

I am trying to build an automated 'year to date' column in a financial
summary worksheet but don't want to have to update the formula each month (ie
in month 6, sum cells A to F, then in month 7 change the formula to sum cells
A to G). Is there a function (or group of functions) which will 'lookup' the
current month e.g july and add up the contents of the cells in columns from A
to G (Jan to July)? The following month when I input August in a given cell
the function I'm looking for will recognise this and automatically add cells
A to H (Jan to Aug).

Hope this makes sense. Thanks in anticipation.

  #3   Report Post  
Gordon
 
Posts: n/a
Default

"Mal" wrote in message
...
I am trying to build an automated 'year to date' column in a financial
summary worksheet but don't want to have to update the formula each month
(ie
in month 6, sum cells A to F, then in month 7 change the formula to sum
cells
A to G).


If you have a sheet with calendarised figures (ie each month in a separate
column - and it's a very good analysis tool to do that anyway) and a total
in rows for the twelve months, then the YTD is done automatically, because
all future months are blank! No need for any "automation"!


--
Gordon Burgess-Parker
Systems and Management Accounting
www.gbpcomputing.co.uk


  #4   Report Post  
Flintstone
 
Posts: n/a
Default


Hello Mal:

Cell M1 is todays date ( 7/20/2005 ).

=SUM(INDIRECT("A:"&CHOOSE(MONTH(M1),"A","B","C","D ","E","F","G","H","I","J","K","L")))

Matt


--
Flintstone
------------------------------------------------------------------------
Flintstone's Profile: http://www.excelforum.com/member.php...o&userid=15310
View this thread: http://www.excelforum.com/showthread...hreadid=388435

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
Function to caculate date Jen Excel Discussion (Misc queries) 3 July 18th 05 03:39 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Day number of given date in a year Jeff Gordon Excel Worksheet Functions 1 March 20th 05 05:35 PM
Date function question John Day Excel Discussion (Misc queries) 3 March 9th 05 03:55 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM


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