Function Problems

Excel COUNTIFS: Count Dates Between 3 and 6 Months from Today

Bushra ParveenBushra Parveen Nov 25, 2026 870 views

Question details

Count dates that are more than three calendar months and no more than six calendar months after today.

Count Dates Between 3 and 6 Months from Today in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select a result cell

Open the worksheet in Excel and select an empty cell where you want the count to appear.

2
Enter the formula

In the selected cell, enter =COUNTIFS(G9:G23,">="&EDATE(TODAY(),3)+1,G9:G23,"<"&EDATE(TODAY(),6)+1) and press Enter.

3
Adjust the date range

In the formula bar, replace both instances of G9:G23 with the range containing your due dates.

Use COUNTIFS and EDATE for calendar-month cutoffs
Calendar months versus days: Fixed intervals such as 90 or 120 days do not reliably represent three or six calendar months. EDATE uses calendar months and adjusts for shorter months.
WPS Spreadsheet

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. 1. Open your spreadsheet: In WPS Office, open the spreadsheet containing your due dates.
  2. 2. Select an empty cell: In WPS Spreadsheet, click the cell where you want to display the count.
  3. 3. Enter the formula: Type =COUNTIFS(G9:G23,">="&EDATE(TODAY(),3)+1,G9:G23,"<"&EDATE(TODAY(),6)+1) and press Enter.
  4. 4. Use your date range: Replace both G9:G23 references in the formula bar with the cells containing your dates.
Count calendar-based due dates with COUNTIFS and EDATEOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface for formulas and date rangesWork with a free, lightweight office suite
microsoft office alternative - wps office

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.