How to calculate dynamic Running YTD Report?

Manith

New Member
Joined
Apr 14, 2020
Messages
29
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I would like to ask about the follow report which can be comparing between year 2021 vs 2020 or 2020 Vs 2019 which need to use only onn table as following. So, current table below is comparing between 2021 Vs 2020, however I want to switch to 2020 Vs 2019 by changing only the year in "Red" hightlight or maybe you can create another hyperlink tape to change the year. Pls note that the current month&year is Aug-2021, so the Running YTD for 2021 will be Jan-July 2021.

1629637349206.png


Result after changing the year as running YTD also changed.

1629637124292.png


Thank you!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Result after changing the year as running YTD also changed.



Thank you!
Please note that
Hi All,

I would like to ask about the follow report which can be comparing between year 2021 vs 2020 or 2020 Vs 2019 which need to use only onn table as following. So, current table below is comparing between 2021 Vs 2020, however I want to switch to 2020 Vs 2019 by changing only the year in "Red" hightlight or maybe you can create another hyperlink tape to change the year. Pls note that the current month&year is Aug-2021, so the Running YTD for 2021 will be Jan-July 2021.



Result after changing the year as running YTD also changed.



Thank you!
Please note that Aug-2021 has sale data until today is 20, however the Running YTD for 2021 will not include the sale data in Aug-2021.
Thank you!
 
Upvote 0
Cannot manipulate data in a picture. Please use XL2BB (See my signature if unfamiliar) to upload sample data.
 
Upvote 0
Cannot manipulate data in a picture. Please use XL2BB (See my signature if unfamiliar) to upload sample data.

Please kindly find the below report. And please note that The Running YTD in 2021 should be from Jan-July 2021 which in not include the Aug-2021 (In Red Hightlight). So the Running YTD in 2021 should be 170.

Running YTD.xlsx
ABCDEFGHIJKLMNOPQRSTU
2End of Last Month31-Jul-21
3Sales Data2021
4YearMonthSales2020
52019Jan5
62019Feb10Main Table
72019Mar10YearJanFebMarAprMayJunJulAugSepOctNovDecTotalRunning YTD
82019Apr15202110203020253035200000190190
92019May202020102025253025304035455060395395
102019Jun25Comparison0%0%20%-20%-17%20%17%-50%-100%-100%-100%-100%-52%-52%
112019Jul30
122019Aug25
132019Sep30
142019Oct35
152019Nov30
162019Dec40
172020Jan10
182020Feb20
192020Mar25
202020Apr25
212020May30
222020Jun25
232020Jul30
242020Aug40
252020Sep35
262020Oct45
272020Nov50
282020Dec60
292021Jan10
302021Feb20
312021Mar30
322021Apr20
332021May25
342021Jun30
352021Jul35
362021Aug20
37
Sheet1
Cell Formulas
RangeFormula
G2G2=EOMONTH(TODAY(),-1)
G8:R8G8=SUMIFS($D$5:$D$36,$B$5:$B$36,$F$3,$C$5:$C$36,G$7)
S8:S9S8=SUM(G8:R8)
T8:T9T8=SUMIF($B$5:$B$36,F8,$D$5:$D$36)
G9:R9G9=SUMIFS($D$5:$D$36,$B$5:$B$36,$F$4,$C$5:$C$36,G$7)
G10:T10G10=G8/G9-1
F8:F9F8=F3
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,217
Members
453,024
Latest member
Wingit77

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