Contact

COUNTIFS Function in Zoho Sheet: Examples and Syntax

Mathematical Beginner Zoho Sheet

COUNTIFS in Zoho Sheet: count active sales above a target 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;"Active";B2:B6;">500") returns 2 for the sales table below. Both the status and numeric threshold must pass on the same row.

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 COUNTIFS reference. Documentation and independent typed-count checks; no native Zoho Sheet test.

Syntax and paired conditions

=COUNTIFS(test_range; condition; [test_range1]; [condition1]; ...)

The first range/condition pair is required. Additional pairs are optional; each extra range still needs its corresponding condition. Omit the brackets from an entered formula.

The Zoho COUNTIFS reference requires additional ranges to have the same size as the first. It also explicitly says text matching is not case-sensitive. A numeric value, expression or text condition may be used; its examples include both greater-than and bounded-interval comparisons.

Same size alone does not establish correct alignment. Each compared position must describe the same record. Formulas here use the semicolon separators shown in Zoho’s help.

Original sales worksheet

Create SalesRules with Status and Value in A1:B1, then enter:

Row A: Status B: Value
2 Active 700
3 Paused 900
4 Active 300
5 Active 850
6 Closed 1200

Keep all B entries numeric. Use D for result labels and E for these formulas:

Cell Formula Expected result
E2 =COUNTIFS(A2:A6;"Active";B2:B6;">500") 2
E3 =COUNTIFS(A2:A6;"Active";B2:B6;">800") 1
E4 =COUNTIFS(A2:A6;"active";B2:B6;">500") 2
E5 =COUNTIFS(B2:B6;">500") 4
E6 =COUNTIFS(A2:A6;"Active";B2:B6;">=300";B2:B6;"<=700") 2

E2 counts the Active 700 and 850 rows. The Paused 900 and Closed 1200 rows are excluded despite their larger values. E6 uses the same value range twice to require both bounds; Active 300 and 700 qualify.

Put Row passes in C1. In C2 enter =AND(A2="Active";B2>500) and fill through C6. Expect TRUE,FALSE,FALSE,TRUE,FALSE. The AND function exposes the two tests on each row for the exact-cased original fixture; it does not replace COUNTIFS’s separately documented case-matching rules in every input scenario.

A fill-down summary with fixed source ranges

Put Status in G1 and Above 500 in H1. Enter Active, Paused and Closed in G2:G4. In H2 enter:

=COUNTIFS($A$2:$A$6;G2;$B$2:$B$6;">500")

Fill through H4. Expected results are 2,1,1. Their total is four, matching E5 because these three labels form a disjoint, complete status partition for this dataset.

For an editable full condition string, enter the plain text >500 in J2, without quote characters. Put =COUNTIFS(A2:A6;"Active";B2:B6;J2) in J3; expect 2. Change J2 to >800; J3 becomes 1. Restore >500 after checking. The criterion cell stores the comparison text, not a Boolean expression evaluated on its own.

Advanced: OR needs a different combination

In L2 enter =COUNTIF(A2:A6;"Active"); expect 3. In L3 enter =COUNTIF(B2:B6;">800"); expect 3. In L4 enter =COUNTIFS(A2:A6;"Active";B2:B6;">800"); expect 1, the overlap.

In L5 enter =L2+L3-L4; expect 5, the count of records that are Active or above 800. Simply adding L2 and L3 gives six and double-counts the Active 850 row. COUNTIFS itself returns the intersection, not this union.

All five rows qualify for this particular OR rule: the three Active records plus the Paused 900 and Closed 1200 records. The result being the full row count is a property of the fixture, not a special COUNTIFS default.

Case handling and alignment controls

On a separate CaseSales sheet, put Active, ACTIVE, active, Paused in A2:A5 and numeric 600,700,400,900 in B2:B5. Enter =COUNTIFS(A2:A5;"Active";B2:B5;">500") in D2. Expect 2: the two matching labels above 500 qualify regardless of letter case; the lowercase active amount 400 still fails the numeric rule.

Keep this separate sheet’s rows aligned. Sorting statuses and values independently can preserve equal-sized ranges while joining the wrong attributes. Never interpret a plausible count as proof that the row correspondence is correct.

Errors, omissions and practical limits

Every optional range must have a condition, and every range must have the required matching size. Zoho states that sizing rule but its short entry does not identify a specific native error token for each possible mismatch.

The documentation does not fully settle every blank/error input, numeric-text conversion, wildcard escape or whitespace-normalization case. Use complete numeric values and explicit labels for these controls, and examine imported records before generalizing the result. The generic possible-errors list is not a substitute for a function-specific boundary test.

COUNTIF applies one condition. SUMIFS returns a total amount for matching records, and COUNTA measures occupancy. Those outputs can be useful together, but a matching-record count alone does not prove the records are unique or correct.