Sum If Multi Drop Down Contains @Cell
I am struggling to get a formula to work correctly. I have a "Crew" Column which is a multi select contact column. I want the crew to be able to select multiple members and enter a single "Hours" for the day. For example Antonio and Tacho work the same job for 10 hours. Then to have each persons total hours for the project populate in the total hours section. I can get it to work just fine with a single person. As soon as I select multiple it breaks.
It should be showing 20 hours each for person under column 11 under Total Hours
This works with only one selection in dropdown =SUMIF(Crew:Crew, ProductionCrew@row, Hours:Hours)
This doesn't work at all =SUMIF(Crew:Crew, CONTAINS(ProductionCrew@row, Crew:Crew), Hours:Hours)
Any help appreciated
Best Answers
-
I tried replacing the formula as you mentioned. I don't get an error but the number in total hours just stays at zero. What would @cell would I be specifying? Perhaps I used it incorrectly?
-
The formula works... the problem is trying to use CONTAINS against Contact type columns. It just doesn't work with them.
I tried using it against multi-select Contact columns like yours and got the same errors, no matter what I tried. When I created Crew and ProductionCrew columns with simple multi-select list of names, it worked perfectly!
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Try adding the @cell specifier in place of listing the range a second time:
=SUMIF(Crew:Crew, CONTAINS(ProductionCrew@row, @cell), Hours:Hours)
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
I tried replacing the formula as you mentioned. I don't get an error but the number in total hours just stays at zero. What would @cell would I be specifying? Perhaps I used it incorrectly?
-
The formula works... the problem is trying to use CONTAINS against Contact type columns. It just doesn't work with them.
I tried using it against multi-select Contact columns like yours and got the same errors, no matter what I tried. When I created Crew and ProductionCrew columns with simple multi-select list of names, it worked perfectly!
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thank You! It figures I cant use the contacts for it. Works fine with the non contact list.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!