How to count elements in a comma separated list?
I am trying to write a formula to count the number of elements contained in a comma separated list in a single cell. I am new to Smartsheet and have tried using several functions with no luck. I know I am missing something but have not been able to figure it out.
Best Answer

Insert a multiselect dropdown column. Then we can insert a formula to substitute the comma with a line break. Once that is in place, you can use a COUNTM function to count how many options are "selected" in the multiselect column.
Formula for multiselect column:
=SUBSTITUTE([Text Column]@row, ",", CHAR(10))
Formula to get count:
=COUNTM([MultiSelect Column]@row)
Answers

Insert a multiselect dropdown column. Then we can insert a formula to substitute the comma with a line break. Once that is in place, you can use a COUNTM function to count how many options are "selected" in the multiselect column.
Formula for multiselect column:
=SUBSTITUTE([Text Column]@row, ",", CHAR(10))
Formula to get count:
=COUNTM([MultiSelect Column]@row)

Thanks, Paul! That works!

Happy to help. 👍️
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 10.5K Get Help
 62 Global Discussions
 46 Industry Talk
 386 Announcements
 3.5K Ideas & Feature Requests
 54 Brandfolder
 124 Just for fun
 50 Community Job Board
 466 Show & Tell
 40 Member Spotlight
 44 Power Your Process
 28 Sponsor X
 234 Events
 7.3K Forum Archives
Check out the Formula Handbook template!