Rolling year-to-date

pholt33

Board Regular
Joined
Jan 4, 2005
Messages
202
Office Version
  1. 365
Platform
  1. Windows
I am trying to calculate YTD but getting the sum rather than the product. How can I get the product?

Here is what I have...

YTD (G8) : =SUMPRODUCT( ( F$5:F8 ) * ( YEAR(A$5:A8 ) = YEAR($A8) ) )

1 Year (H8) : =PRODUCT(1 + $F5:$F8) - 1

At year-end dates, YTD should = 1 year

Here is a small sample of data, it continues quarterly until current date.
3 MoYTD1 Year
3/31/201324.70%24.70%-
6/30/20131.44%26.14%-
9/30/2013-2.88%23.27%-
12/31/201310.37%33.64%35.61%


The Xl2bb mini sheet process was freezing my computer so here is a screenshot...

1695237706347.png
 
Last edited:

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I'm confused. In Column H are you asking for Percent Of Year To for each quarter?

Book1
ABCDEFGH
1
2
3
43 MoYTD1 Year
52013-03-3124.70%24.70%73.45%
62013-06-301.44%26.14%77.73%
72013-09-30-2.88%23.26%69.16%
82013-12-3110.37%33.63%100.00%
9
Sheet1
Cell Formulas
RangeFormula
G5:G8G5=SUMPRODUCT((F$5:F5)*(YEAR(A$5:A5)=YEAR(A$8)))
H5:H8H5=SUMPRODUCT((F$5:F5)*(YEAR(A$5:A5)=YEAR(A$8)))/ SUMPRODUCT($F$5:$F$8*(--(YEAR($A$5:$A$8))=YEAR(A5)))
 
Upvote 0
Maybe this will help to show the basic mechanics of how the YTD column should work. I am looking for a generic formula so that I dont have to manually adjust the ranges each quarter/year.

1695238866966.png
 
Upvote 0
Maybe:
Copy formula down as needed.
Book2
AFGHIJ
1
2
3Returns
43 MoYTD incorrectYTD Correct
53/31/201324.70%24.709624.70% -PRODUCT(I + FS) - 124.70%
66/30/20131.44%26.14%26.50% =PRODUCT(I + F5:F6) - 126.50%
79/30/2013-2.88%23.279622.86% -PRODUCT(I + F5:F7) - 122.85%
812/31/201310.37%33.64%35.61% =PRODUCI(I + f5:f8) - 135.59%
93/31/20141.45%1.45%1.45% -PRODUCT(I + F9) - 11.45%
106/30/20142.20%3.65%3.68% PRODUCT(I + F9:F10) • 13.68%
119/30/20143.29%6.94%7.09% -PRODUCI(I + 69:611) - 17.09%
1212/31/20148.60%15.54%16.30% =PRODUCT(I + F9:F12) - 116.30%
Sheet1
Cell Formulas
RangeFormula
J5:J12J5=PRODUCT(1+IF(YEAR(A5)=YEAR($A$5:A5),$F$5:F5))-1
 
Upvote 0
Solution

Forum statistics

Threads
1,215,073
Messages
6,122,975
Members
449,095
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top