I'm trying to create a report that will have a rolling time period covering some number of months. Let's say 4 months for the example.
Column 1: Current Month
Column 2: Last Month
Column 3: 2 months ago
Column 4: 3 months ago
I'm trying to user a helper column with an if statement, basically saying:
If [Date]@row is this month, 1, if [Date]@row is last month, 2, if [Date]@row is 2 months ago, 3, if [Date]@row is 3 months ago, 4
Then, I can use a countif to count each occurrence and assign to my report by month.
When I build the formula for the first condition, it works fine.
=IF([Date]@row = MONTH(TODAY()), "This Month", "Unknown")
When I create a formula to just evaluate for last month, it works fine
=IF([Date]@row = (MONTH(TODAY()) - 1), "Last Month", "Unknown")
When I try to nest the expression for last month behind this month, I get #INCORRECT ARGUMENT
=IF([Date]@row = MONTH(TODAY()), "This Month", IF([Date]@row = MONTH(TODAY()) - 1), "Last Month", "Unknown")
I can't figure out why a statement that is successful on its own fails when nested.
Any suggestions are greatly appreciated.