Best way to look up multiple values in a multi-select cell?
I have a schedule that contains tasks, and each task has one or more cost codes associated with it. These cost codes are in Dropdown (multi select) cells. For each cost code in a cell, I would like to look up the associated value and add the values together if there are more than one. I am not sure the best way to do this.
I'll weight the total duration to come up with an approximation later, for now I am just trying to get the corresponding budget numbers to add.
Thanks!
Answers
-
Hi Michael,
How many codes can be selected on each row?
I hope that helps!
Be safe and have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
I am looking for something very similar that has me scratching my head. To answer Andree for me it could be up to 10!
-
Hi Andreé,
in the example picture there are two distinct cost codes in a cell. There is typically always at least one and there are a few instances where there are seven or eight cost codes in a cell. Thanks for looking into this!
Michael
-
You could use something along the lines of...
=SUMIFS({Other Sheet Budget Column}, {Other Sheet Cost Code Column}, CONTAINS(@cell, [Cost Code]@row))
-
Happy to help!
I saw that Paul answered already!
Let me know if I can help with anything else!
Best,
Andrée
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
I'd suggest one minor tweak to Paul's formula and that would be to use HAS instead of CONTAINS. In looking at your screenshot I see there's one cost code that is "05-". Contains would include its corresponding budget value any time the multi-select cost code column has a code with "05-" in it. HAS on the other hand would look for an exact match. The has formula would look like this:
=SUMIFS({Other Sheet Budget Column}, {Other Sheet Cost Code Column}, HAS([Cost Code]@row, @cell))
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!