Templates, guides & honest tool reviews for small business

Monday, November 30, 2026

COUNTIFS Between Two Dates in Google Sheets: One Formula

Section: Excel & Google Sheets

COUNTIFS with Dates - explanatory illustration for COUNTIFS Between Two Dates in Google Sheets
Illustration: COUNTIFS with Dates

Counting records between two dates is the most common date job in a spreadsheet, and COUNTIFS in Google Sheets does it with one formula. This guide shows the exact syntax for a date range, how to point the dates at cells so the report is reusable, how to count one month or one week, and the reasons a date count comes back as zero.

Why COUNTIFS and not COUNTIF

COUNTIF takes one condition. A date range is two: on or after the start, and on or before the end. Google's COUNTIFS returns the count of a range depending on multiple criteria, which is exactly the shape of the problem.

The syntax is =COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2, ...]). Each range is checked against its own criterion, and every range must have the same number of rows and columns as the first one.

Nine orders, one month - explanatory illustration for COUNTIFS Between Two Dates in Google Sheets
Nine orders, one month (explanatory illustration, not a software screenshot).

Count between two dates

With dates in A2:A100, November 2026 is:

=COUNTIFS(A2:A100,">="&DATE(2026,11,1),A2:A100,"<="&DATE(2026,11,30))

The DATE function builds a real date, and the ampersand glues the comparison operator to it. That pattern matters: writing the operator and DATE as one quoted string counts nothing, because Sheets then compares text, not dates.

A small worked example: nine orders dated 28 Oct, then 2, 5, 11, 18, 24 and 30 Nov, then 1 and 4 Dec. The formula above returns 6, and those six orders are worth 890 in total.

Formula patterns - explanatory illustration for COUNTIFS Between Two Dates in Google Sheets
Formula patterns (explanatory illustration, not a software screenshot).

Point the dates at cells

Hard-coded dates make a formula you rewrite every month. Put the start in B1 and the end in B2, and the same formula becomes =COUNTIFS(A2:A100,">="&B1,A2:A100,"<="&B2).

Change the two cells and every count follows. This is also the pattern that makes a small report possible: a start date, an end date, and a column of counts that all read from them.

Count one month without typing the end date

A month range is easier to express as from the first of this month to before the first of next month:

=COUNTIFS(A2:A100,">="&DATE(2026,11,1),A2:A100,"<"&DATE(2026,12,1))

Using the next month's first day with a less-than sign avoids the question of whether the last day is 30 or 31, and it works for February in a leap year without a second thought. The same trick gives a week: start date, then start date plus 7.

Open-ended ranges

One comparison is enough when you only care about one side. =COUNTIFS(A2:A100,">="&DATE(2026,11,1)) counts everything from 1 November onward, which is 8 of the nine rows above. Drop the operator for a single day: =COUNTIFS(A2:A100,DATE(2026,11,30)).

Adding a second condition - explanatory illustration for COUNTIFS Between Two Dates in Google Sheets
Adding a second condition (explanatory illustration, not a software screenshot).

Add a second condition

This is where COUNTIFS earns its name. To count November orders over 100, add the amount column as a second range and criterion: =COUNTIFS(A2:A100,">="&B1,A2:A100,"<="&B2,C2:C100,">100"). On the example data that returns 3.

The same structure counts between two numbers, with no dates involved: =COUNTIFS(C2:C100,">=100",C2:C100,"<=200") returns 2 for the example amounts. If you need the sum rather than the count, SUMIFS takes the same arguments with a sum range in front.

Common problems - explanatory illustration for COUNTIFS Between Two Dates in Google Sheets
Common problems (explanatory illustration, not a software screenshot).

Common problems

  • The count is zero. The dates are text, not dates. Check the alignment: real dates sit to the right in a cell by default.
  • The formula counts everything. The operator was put inside the quotes as one string, so it never matched.
  • #VALUE! error. One range has a different size from the first. All ranges must match.
  • Records with a time are missed. A timestamp of 30 Nov 14:00 is after 30 Nov 00:00, so use the next day with a less-than sign.
  • The month count is one short. The end date was typed as the last day with a less-than sign, which excludes it.
  • Nothing matches a text criterion. Watch for trailing spaces. TRIM the column or widen the criterion with wildcards.

When the report needs to filter and group rather than count, the QUERY function does the same job in one statement, and a simple COUNTIF is still the right tool for one condition.

Questions and answers

How do I count between two dates in Google Sheets?

Use COUNTIFS with the same date column twice: on or after the start, and on or before the end.

Why does my date criterion return zero?

Usually the dates are stored as text, or the operator was written inside the quoted string.

Can I use cell references for the dates?

Yes. Join the operator to the cell with an ampersand.

How do I count a whole month?

From the first of the month to before the first of the next month.

Does COUNTIFS work with times?

It compares the full date and time value, so a timestamp can fall outside a range that ends at midnight.

Official references

العربية