Used within another function to return an array of unique values in a range.
Sample Usage
COUNT(DISTINCT([First Results]:[Second Results]))
  • 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))))

Still need help?

Use the Formula Handbook template to find more support resources, and view 100+ formulas, including a glossary of every function that you can practice working with in real time, and examples of commonly used and advanced formulas.

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