BrettOlbrys1
Board Regular
- Joined
- May 1, 2018
- Messages
- 139
- Office Version
- 365
- Platform
- Windows
I have 12 columns of data and each column contains data for a specific quarter (date range). Above each column a number should appear such that the CURRENT QUARTER (4/1/23 - 6/30/23) should have a "1" above it. Each preceding quarter would be 1 less than the previous quarter. For example, Q1 22 should be -4, Q2 22 should be -3, Q3 22 should be -2, Q4 22 should be -1, Q1 23 should be 0, and Q2 23 should be 1.
The formula I am using is this:
=IF(AND(TODAY()>=X226,TODAY()<=Y226),1,1+((12*(YEAR(X226)-YEAR(TODAY()))+MONTH(X226)-FLOOR(MONTH(TODAY()),3)-1)/3))
It was working fine until today, and it is now assigning a "1" to 7/1/23 - 9/30/23, a 0 to the current quarter, etc...
How do I fix this formula so the CURRENT QUARTER will always be assigned the number "1"?
Thanks
Brett
The formula I am using is this:
=IF(AND(TODAY()>=X226,TODAY()<=Y226),1,1+((12*(YEAR(X226)-YEAR(TODAY()))+MONTH(X226)-FLOOR(MONTH(TODAY()),3)-1)/3))
It was working fine until today, and it is now assigning a "1" to 7/1/23 - 9/30/23, a 0 to the current quarter, etc...
How do I fix this formula so the CURRENT QUARTER will always be assigned the number "1"?
Thanks
Brett