Syntax
DISTINCT(range)
-
range
—The group of cells to evaluate.
All values must be of the same data type in order for the function to calculate.
For example, 1, 2, a, 2 will produce a value of 1 if counted. 1, 2, 2, 3 will produce a value of 3 because only 1, 2, 3 are distinct.
DISTINCT can only reference one data type at a time.
For example, if the referenced range includes text values and numeric values, you'll see an INVALID DATA TYPE error.
- To ensure that DISTINCT only references one data type, consider using COLLECT:
=COUNT(DISTINCT(COLLECT({Range 1}, {Range 1}, ISNUMBER(@cell))))
Still need help?
Use the Formula Handbook template to find more support resources, view 100+ formulas, review a glossary of every function that you can practice working with in real time, and find examples of commonly used and advanced formulas.
You can find examples of how other Smartsheet customers use this function or ask about your specific use case in the Smartsheet online Community.