sparkytech
Board Regular
- Joined
- Mar 6, 2018
- Messages
- 96
- Office Version
- 365
- 2019
I am trying to count multi-year dates in N5:N1500 that occur in the next quarter only. Starting at BA5 in column BA5:BA1500, I have the following typical formula:
This checks to see if the date in N5 is greater or equal to today and that O5 does not contain a date, and then displays the quarter of the N5 date in BA5. I also have the following formula to calculate the total cells in column BA that match the next quarter:
The problem I have is since the dates in Column "N" span multiple years, any dates occurring in a quarter are counted for this year, and also future years (i.e: any dates occurring in Q3 are counted for 2021, 2022, 2023, etc.). How can I remedy this? My end goal is to look at N5:N1500 and total any dates occurring in the next quater. Thanks in advance!
Excel Formula:
=IF(AND(O5="",N5>=TODAY(),N5<>""),(ROUNDUP(MONTH(N5)/3,0)),"")
This checks to see if the date in N5 is greater or equal to today and that O5 does not contain a date, and then displays the quarter of the N5 date in BA5. I also have the following formula to calculate the total cells in column BA that match the next quarter:
Excel Formula:
=COUNTIF(BA5:BA1500,(ROUNDUP(MONTH(TODAY())/3,0)+1))
The problem I have is since the dates in Column "N" span multiple years, any dates occurring in a quarter are counted for this year, and also future years (i.e: any dates occurring in Q3 are counted for 2021, 2022, 2023, etc.). How can I remedy this? My end goal is to look at N5:N1500 and total any dates occurring in the next quater. Thanks in advance!