DISTINCT Function

Used within another function to return an array of unique values in a range.
Sample usage
COUNT(DISTINCT([First Results]:[Second Results]))

Syntax

DISTINCT(range)
  • range
    The group of cells to evaluate.
Usage notes
  • 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))))
Examples

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.

Ask the Community

Was this article helpful?
YesNo