Google Sheets
COUNTUNIQUE function in Google Sheets
Counts the number of unique values in a list of specified values and ranges.
=COUNTUNIQUE(value1, [value2, ...])COUNTUNIQUE syntax and parameters
Two arguments, one required.
- value1anyRequired
The first value or range to consider for uniqueness.
- value2anyRepeating
[ OPTIONAL ] - Additional values or ranges to consider for uniqueness.
COUNTUNIQUE examples
Formulas you'll actually reuse.
Distinct customers in the orders sheet:
=COUNTUNIQUE(A2:A200)Result
38Distinct customers within one region:
=COUNTUNIQUE(FILTER(A2:A, B2:B = "West"))Result
12
COUNTUNIQUE in Excel
No direct equivalent — here's the way around.
Try COUNTUNIQUE in the playground
Edit the example — nothing to install.
Preloaded with the COUNTUNIQUE formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Google Sheets gets this done.
- ABSReturns the absolute value of a number.MathExcel
- ACOSReturns the inverse cosine of a value, in radians.MathExcel
- ACOSHReturns the inverse hyperbolic cosine of a number.MathExcel
- ACOTReturns the inverse cotangent of a value, in radians. .MathExcel
- ACOTHReturns the inverse hyperbolic cotangent of a value, in radians. Must not be between -1 and 1, inclusive..MathExcel
- ASINReturns the inverse sine of a value, in radians.MathExcel