Count of Selections within a Multi-Select Dropdown
Hey there!
I am looking for assistance in counting the values within a cell that is formatted as a multi-select dropdown for each date associated with the creation of the Smartsheet line. The creation date of the line is being populated from the system-generated column option so I have pulled out the month and date into separate identifying columns and not sure if this is my issue or not. Here is the formula that I have tried:
Please let me know what suggestion you have or if you need additional data to assist.
Thank you!
Answers
-
Hi @Cinda.q ,
Try:
COUNTIF({Issue},AND(HAS({Month Created},@cell=12), HAS({Date Created}, @cell=[Month/ Date]@row)))
Assume that both {Month Created} and {Date Created} are multi-select drop downs. If they aren't, remove the HAS.
Work?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
Mark-
This formula did not work :( I did remove the HAS because the only column notated in the formula with a multi-select drop down is the "Issue" column- which is why I was starting the the COUNTM formula originally.
I tried:
COUNTIF({Issue},AND({Month Created},@cell=12), {Date Created}, @cell=[Month/ Date]@row)) -- this resulted in #INVALID OPERATION
when I tired:
COUNTIF({Issue},AND(HAS({Month Created},@cell=12), HAS({Date Created}, @cell=[Month/ Date]@row))) -- this resulted in 0 value where I know there should be some sort of count output
I also tried:
=COUNTIF({Issue}, AND({Month Created} = 12, {Date Created} = 1) -- this also resulted in #INVALID OPERATION
Any other suggestions?
-
HI @Cinda.q ,
I have a solution but it requires 2 helper columns and would work best as a separate metric sheet. Or, it may give you an idea so you can find a better solution.
Insert a multi-select column [Dec_Values] with the column formula: =JOIN(COLLECT({issue], {month created}, @cell=12, {date created}, @cell= [month/ date]@row), CHAR(10)))
This column places all of the drop down values that met the criteria into a single drop down cell.
On the same sheet great a text/number column [Dec_Cnt] with the formula = COUNTM([dec_values]@row)
This formula counts how many drop down values are in the cell you consolidated to.
Help at all?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
Thanks for the assistance I was hoping to create a formula in a separate metric sheet to calculate this, but I ended up just adding a helper column that contained the COUNTM and then did a SUMIFS off of that column.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!