COUNT, Contains, Distinct


I need a formula that will count the total locations in one column that are distinct. However, the column sometimes includes several locations, separated by a comma (the data pulls into this column with a join(collect). I'm guessing I need to use "contains" or "has" but I'm just not sure of the right syntax. Anyone have any brilliant ideas? Also, i only want to count distinct locations.

Best Answer

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    Here is my suggestion...

    Insert a multi-select dropdown with this column formula in it...

    =SUBSTITUTE(Locations@row, ", ", CHAR(10))

    Then in another multi-select dropdown enter

    =JOIN([Location helper]:[Location Helper], CHAR(10))

    You should now have a list of unique locations (multi-select doesn't allow duplicate entries), and you can use a COUNTM on the cell.


Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!