Excel COUNTIFS: Count Dates Between 3 and 6 Months from Today
Question details
Count dates that are more than three calendar months and no more than six calendar months after today.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains due dates, and the user wants to exclude those due within the next three months while counting dates through the six-month cutoff.
- Observed behavior
- The desired count includes dates after the three-month cutoff through the six-month cutoff.
Identify the cells containing the due dates and check that they are stored as Excel dates rather than text. The examples below use G9:G23; replace that range with your own.
Use COUNTIFS and EDATE for calendar-month cutoffs
Count dates after the three-month cutoff through the six-month cutoff, even when the cells contain times.
EDATE calculates calendar-month boundaries from today. The formula excludes the entire date three months from today and includes the entire date six months from today.
Open the worksheet in Excel and select an empty cell where you want the count to appear.
In the selected cell, enter =COUNTIFS(G9:G23,">="&EDATE(TODAY(),3)+1,G9:G23,"<"&EDATE(TODAY(),6)+1) and press Enter.
In the formula bar, replace both instances of G9:G23 with the range containing your due dates.

Count Upcoming Due Dates in WPS Spreadsheet
Use COUNTIFS with EDATE in WPS Spreadsheet to count dates after the three-month cutoff through the six-month cutoff.
- 1. Open your spreadsheet: In WPS Office, open the spreadsheet containing your due dates.
- 2. Select an empty cell: In WPS Spreadsheet, click the cell where you want to display the count.
- 3. Enter the formula: Type =COUNTIFS(G9:G23,">="&EDATE(TODAY(),3)+1,G9:G23,"<"&EDATE(TODAY(),6)+1) and press Enter.
- 4. Use your date range: Replace both G9:G23 references in the formula bar with the cells containing your dates.

Frequently Asked Questions
Does the formula include the date exactly three months from today?
No. The lower criterion starts on the day after EDATE(TODAY(),3), so the entire three-month cutoff date is excluded.
Is the date exactly six months from today included?
Yes. The upper criterion is earlier than the day after EDATE(TODAY(),6), so the six-month cutoff date is included, even if a cell contains a time.
Why does the formula return zero when dates are visible?
Check that both range references point to the correct cells and that the dates are stored as date values, not text. Select a date cell and inspect its value in the formula bar or use Excel's Data > Text to Columns to convert text dates.
Will the count change as time passes?
Yes. TODAY() uses the current date, so the cutoffs move when the workbook recalculates. In Excel, check Formulas > Calculation Options and select Automatic if the result is not updating.




