Looking for some guidance on a formula. I am needing to collect a quick snapshot of Data for the following:
- Current Month - based on today's month + current year
- Prior Month - based on the month prior to today's month + year.
Given that we are in January, the current month is populating correctly with the formula I created. I was able to create a formula for the Prior Month with the prior year, however, once we move into February, we're going to have an issue as PM1 should read January 2023, but the way I have the formula written it's only pulling PY. I am stumped on how I can improve so it's not a manual update in the control center to all of the formulas and it be effective to it can span across years.
A few thoughts:
- Can i populate the Prior Month based on the Current Month and just work my way back?
- Is there an alternative formula than the below to capture the current year through an "If statement" for Months October - December that I can use in Prior Month 1, 2 and 3?
Formula text:
=IF(MONTH(TODAY()) = 1, "December", IF(MONTH(TODAY()) = 2, "January", IF(MONTH(TODAY()) = 3, "February", IF(MONTH(TODAY()) = 4, "March", IF(MONTH(TODAY()) = 5, "April", IF(MONTH(TODAY()) = 6, "May", IF(MONTH(TODAY()) = 7, "June", IF(MONTH(TODAY()) = 8, "July", IF(MONTH(TODAY()) = 9, "August", IF(MONTH(TODAY()) = 10, "September", IF(MONTH(TODAY()) = 11, "October", IF(MONTH(TODAY()) = 12, "November")))))))))))) + " " + (YEAR(TODAY()) - 1)