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 Smartsheet Formula Template to view examples and practice working with functions in real-time.

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