COUNTIF Function in Zoho Sheet: Examples and Syntax
COUNTIF in Zoho Sheet: count unfulfilled orders by status 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: =COUNTIF(A2:A6;"Held") returns 2 for the fulfillment statuses below. Rows 2 and 5 match; the formula counts matching cells rather than adding package quantities.
Availability and version history
- Introduced: The original introduction version and date are not established by the checked sources.
- Availability: Currently documented in Zoho Sheet’s rolling web-service help; no numbered release or retirement endpoint is established.
- Scope: English-language web-service documentation. Mobile and offline-client parity is outside the verified scope.
- Checked: October 14, 2026, against the official COUNTIF reference. Documentation and independent typed-count checks; no native Zoho Sheet test.
Syntax, comparisons and letter case
=COUNTIF(test_range; condition)
Both arguments are required. Zoho’s COUNTIF reference permits a numeric, expression or text condition, and comparison operators such as >, <, >=, <=, = and <>. Text conditions and comparison strings are enclosed in double quotes when typed directly.
The function is explicitly not case-sensitive: uppercase and lowercase versions of the same label are treated alike. It applies one condition; use COUNTIFS when several requirements must be met by the same record. Formulas use Zoho’s semicolon separators.
Original fulfillment worksheet
Create a blank sheet named Fulfillment. Put Status in A1 and enter:
| Row | A: Status |
|---|---|
| 2 | Held |
| 3 | Ready |
| 4 | Shipped |
| 5 | Held |
| 6 | Ready |
Use C for result labels and D for formulas:
| Cell | Formula | Expected result |
|---|---|---|
| D2 | =COUNTIF(A2:A6;"Held") |
2 |
| D3 | =COUNTIF(A2:A6;"Ready") |
2 |
| D4 | =COUNTIF(A2:A6;"Shipped") |
1 |
| D5 | =COUNTIF(A2:A6;"Cancelled") |
0 |
| D6 | =COUNTIF(A2:A6;"held") |
2 |
| D8 | =COUNTIF(A2:A6;"<>Shipped") |
4 |
D8 covers the two Held and two Ready records in this complete text fixture. It is not a statement about how every blank or error cell would compare with Shipped.
A summary that can be filled down
Put Summary label in F1 and Count in G1. Enter Held, Ready, Shipped and Cancelled in F2:F5. In G2 enter =COUNTIF($A$2:$A$6;F2) and fill through G5. Expect 2,2,1,0.
The source range is anchored while the label reference changes. Put =SUM(G2:G5) in G7; expect 5, because this fixture’s four summary labels are mutually exclusive and cover every entered status. A duplicated summary label would count its matching cells again.
For a separate case check, create CaseLabels, put Held, HELD, held, Ready in A2:A5, and enter =COUNTIF(A2:A5;"Held") in C2. Expect 3, following Zoho’s documented case-insensitive rule. This does not establish automatic whitespace trimming: a label with extra characters needs its own check.
Advanced: numeric thresholds and overlapping sets
Create UnitThresholds with Units in A1 and numeric 0,5,5,10,12,20 in A2:A7.
| Cell | Formula | Expected result |
|---|---|---|
| C2 | =COUNTIF(A2:A7;">5") |
3 |
| C3 | =COUNTIF(A2:A7;">=5") |
5 |
| C4 | =COUNTIF(A2:A7;">10") |
2 |
| C5 | =COUNTIF(A2:A7;5) |
2 |
| C6 | =COUNTIF(A2:A7;">=5")-COUNTIF(A2:A7;">12") |
4 |
The two entries equal to 5 explain the difference between strict and inclusive comparisons. C6 counts the closed interval 5–12 by subtracting values above 12 from those at least 5; its four observations are 5,5,10,12.
Put =C2+C4 in E2; expect 5. That is not the number of distinct observations above 5 or above 10: the 12 and 20 appear in both counts. In E3 enter =COUNTIFS(A2:A7;">5";A2:A7;">10"); expect 2 in the overlap. In E4 enter =C2+C4-E3; expect 3, the union count.
The expression illustrates inclusion-exclusion for two explicitly defined sets. Adding counts is safe for disjoint statuses such as Held and Ready, but it double-counts overlapping conditions unless that duplication is intended.
Errors and practical boundaries
Inspect the actual criterion and source values if a result differs. Store quantities as numbers; a visible digit string imported as text does not establish a numeric value. The reference’s comparison and case rules do not fully settle every numeric-text coercion, blank/error input, wildcard escape or text-normalization case.
Zoho’s generic errors table describes possible name, type and reference failures, but does not publish a unique native error for every malformed condition. Keep results outside the counted range and preserve source rows when comparing scenarios.
The five-status and six-number fixtures here are complete manual inputs. They are separate from the embedded vendor worksheet’s Lockers and units examples, whose output-only references should not be pasted into these datasets.
COUNTIFS combines requirements on corresponding records. COUNTA counts occupied cells without a criterion, and COUNT counts numeric content. SUMIFS adds matching amounts instead of counting them.