Turn Rolling 12 Month report into Rolling 24 Month Report
Using help from a discussion on Smartsheet Community, I have managed to create a rolling 12 month report, using the following formulas
Month: =IF(MONTH(TODAY()) - [M1]$1 < 1, MONTH(TODAY()) + (12 - [M1]$1), MONTH(TODAY()) - [M1]$1)
Year: =IF(MONTH(TODAY()) - [M1]$1 < 1, YEAR(TODAY()) - 1, YEAR(TODAY()))
However, if I wanted to extend this to a 24 month rolling report, how would I re-configure the Month and Year formulas above to be intelligent enough to revert to the correct year, as with the current date being October 2022 - some months in the report will be looking at months in 2020. (I've tried changing YEAR to -2, in Columns M23 and M24 but I am conscious this will need manually changing as time progresses.
Answers
-
I'm trying to wrap my brain around this to help you out.
Why would using YEAR(TODAY()-2) need to be changed manually? Wouldn't you always get 2 years from the current year?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!