Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 133
Default Formula for Calendar Year to Date (CYTD)

I was looking on here for a formula that ascertains the values
pertaining to the CYTD and finally came up with my own solution that I
post here for others. I don't want a formula that stops at the end of
a calendar year and restarts at the start of the next. With this
solution, you can copy the formula down the sheet over multiple years.

* I have a column of dates (end of month).
* I have a relative named range called Date that refers to the current
month. If the dates are in column A and the cursor is in cell D40
then the named range Date refers to $A40.
* I created a named range called CYTD which refers to "=OFFSET(Date, -
(MONTH(Date)-1), 0, MONTH(Date))"
* Now, if I want the sum of values in column B as running CYTD values,
my formula will be =SUM(OFFSET(CYTD, 0, 1))
* Or if I want the rate of the value in column B divided by the value
in column C, it'll be =SUM(OFFSET(CYTD, 0, 1))/SUM(OFFSET(CYTD, 0, 2))

The main issue is defining which range defines the CYTD. Once you
have that, any other calculation based on it is easily ascertained by
using the relevant offset.

Paul Martin
Melbourne, Australia
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
Help dealing with a fiscal year rather than a calendar year Tyler Excel Worksheet Functions 3 August 25th 07 11:26 AM
calculate prior calendar year end from a moving current date Louise Excel Worksheet Functions 1 December 6th 06 08:48 PM
change the year in a calendar template to different year George Excel Discussion (Misc queries) 1 July 19th 06 07:34 PM
Year-to-date year to date formula Philm Excel Worksheet Functions 1 October 7th 05 02:50 AM
Date formula: return Quarter and Fiscal Year of a date Rob Excel Discussion (Misc queries) 7 May 11th 05 08:48 PM


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