Contact

COUNTIFS Function in Apple Numbers: Examples and Syntax

Statistical Beginner Apple Numbers

COUNTIFS in Apple Numbers: count orders by region and size using practical sample data, clear expected results, pitfalls and the official function documentation.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: =COUNTIFS(A2:A6,"East",B2:B6,">5") returns 2 for the original order table below. A record contributes once only when its corresponding values pass every supplied condition.

Availability and version history

  • Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
  • Availability: Currently documented in Apple’s Functions Help 15.4 documentation edition; it is not a final supported-version endpoint.
  • Scope: Shared iWork function help. Availability in individual clients and older releases is not established by this check.
  • Checked: October 14, 2026, against the official COUNTIFS reference. Documentation and independent count checks; no native Numbers test.

Syntax and paired conditions

=COUNTIFS(test-values, condition, test-values…, condition…)

The first collection and condition are required. Additional collection/condition pairs are optional. Apple’s COUNTIFS reference requires one condition immediately after each collection, so the total number of arguments is even.

Conditions can use comparisons, references, concatenation and wildcards; REGEX conditions are also documented. Corresponding positions must satisfy all tests. This is an AND operation across aligned conditions, not an independent count of each range followed by addition.

Practice table: orders by region and units

Create a Numbers table named Orders, with nine columns A:I and nine rows including one header row. Put Region, Units and Row passes in A1:C1. Enter the original records in A2:B6:

Row Region Units Expected C
2 East 7 TRUE
3 West 8 FALSE
4 East 3 FALSE
5 East 12 TRUE
6 West 15 FALSE

In C2 enter =AND(A2="East",B2>5) and fill to C6. This exposes the row-level rule using AND. Enter the following independent totals in D:

Cell Formula Expected result
D2 =COUNTIFS(A2:A6,"East",B2:B6,">5") 2
D3 =COUNTIFS(A2:A6,"West",B2:B6,">10") 1
D4 =COUNTIFS(A2:A6,"East",B2:B6,">=7",B2:B6,"<=12") 2

D4 repeats the numeric range to apply both ends of an interval. The East values 7 and 12 meet the inclusive boundaries; East’s 3 does not. Each matching row is still counted once.

In I2 put East and in I3 the number 5. In D5 enter:

=COUNTIFS(A2:A6,I2,B2:B6,">"&I3)

Expect 2. Change only I3 to 10 and D5 becomes 1, from the East order with 12 units. Restore I3 to 5 before comparing with the original totals. Changing a criterion cell does not edit the hard-coded formulas D2:D4.

A compact two-threshold report

Keep A:D and I intact. Put Region, Above 5 and Above 10 in F1:H1, then East and West in F2:F3.

Enter =COUNTIFS($A$2:$A$6,F2,$B$2:$B$6,">5") in G2 and fill to G3. Enter =COUNTIFS($A$2:$A$6,F2,$B$2:$B$6,">10") in H2 and fill to H3.

Region Expected G Expected H
East 2 1
West 2 1

The dollar signs keep the source rows fixed, while F2 becomes F3 on the next row. These summaries answer four distinct questions without moving or overwriting the original input values.

Advanced: an OR count without double-counting

To count orders that are East or exceed 10 units, put this expression in D7:

=COUNTIF(A2:A6,"East")+COUNTIF(B2:B6,">10")-COUNTIFS(A2:A6,"East",B2:B6,">10")

Expect 4. There are three East orders and two orders above 10, with one order in both sets. Adding 3+2 without subtracting the intersection would count the East order with 12 units twice.

The four matching rows are 2, 4, 5 and 6. West’s 8-unit order is the only exclusion. COUNTIF supplies the individual set sizes; COUNTIFS supplies their overlap.

For a check in D8, enter =COUNTIFS(A2:A6,"East",B2:B6,">10"); expect 1. In D9 enter =COUNTIFS(A2:A6,"East",A2:A6,"West"); expect 0. A single populated Region value in this fixture cannot equal both complete labels at once.

A date interval with a separate status condition

Create a table named JanuaryJobs, with six columns and six rows. Put Scheduled date and Status in A1:B1. Enter these formulas and labels in A2:B6:

Row Formula in A Status in B
2 =DATE(2025,12,31) Ready
3 =DATE(2026,1,1) Ready
4 =DATE(2026,1,31) Hold
5 =DATE(2026,2,1) Ready
6 =DATE(2026,1,15) Ready

In D2 enter =DATE(2026,1,1) and in D3 enter =DATE(2026,2,1). In F2 enter:

=COUNTIFS(A2:A6,">="&D2,A2:A6,"<"&D3)

Expect 3, from rows 3, 4 and 6. In F3 enter:

=COUNTIFS(A2:A6,">="&D2,A2:A6,"<"&D3,B2:B6,"Ready")

Expect 2, from rows 3 and 6. The inclusive lower and exclusive upper boundary excludes February 1 while including January 1. DATE supplies real dates without depending on ambiguous typed date strings. This fixture contains date values without imported time-zone or timestamp conversions.

Alignment, errors and practical limits

Use source collections covering corresponding records in the same order. A five-row region range paired with a shifted five-row units range can produce a plausible answer for the wrong pairings. A mismatched-size range is also unsuitable; the short entry does not establish its exact native error token.

Numeric comparisons should use genuine numbers and date comparisons genuine dates. The examples do not establish every missing-value, case-sensitivity, error-propagation or text-conversion rule. Test those separately when they matter to a real dataset.

For cross-table references, select the source cells so Numbers inserts the correct table qualifier; see Apple’s reference guide. Follow its regional separator guidance when typing multi-argument formulas.

Use SUMIFS when the desired result is the sum of matching amounts. COUNTIFS counts positions; it does not deduplicate IDs or validate whether a record should exist.