Sum values assigned to dropdown options

System
Employee
This discussion was created from comments split from: Assigning numeric values to drop down menu options.
Answers
-
Hello!
This is fantastic! I have a follow-up request. In a case like this, if I have a numeric value assigned to each option of the dropdown menu, when having active the multiple option selection from the dropdown menu, how could I add-up all the values corresponding to all the selected options?
I need to sum-up all the numeric values that correspond to all the options selected. Can someone help he with this?
Thank you very much!
Audry
-
There are 2 ways you can go about this:
- write an if statement for each dropdown option and the formula adds it together, something like
=IF([Drop Down]@row = "Hello",1,0)+IF([Drop Down]@row = "Bye",2,0)+IF([Drop Down]@row = "Thanks",3,0)
- And you can keep adding. - You can keep a separate list of each dropdown option in 1 column and the associated value in a second column. Then your formula would be something like:
=SUMIFS(Value:Value,Item:Item,HAS([Drop Down]@row,@cell))
- write an if statement for each dropdown option and the formula adds it together, something like
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 451 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!