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
 Smartsheet Customer Resources
 62.3K Get Help
 364 Global Discussions
 199 Industry Talk
 427 Announcements
 4.4K Ideas & Feature Requests
 136 Brandfolder
 127 Just for fun
 128 Community Job Board
 444 Show & Tell
 28 Member Spotlight
 1 SmartStories
 283 Events
 35 Webinars
 7.3K Forum Archives
Check out the Formula Handbook template!