Adding values contingent on a multiselect dropdown

Hello!


There's something I've been struggling to implement for quite a while now, that I think must be doable, but I haven't quite sorted. I have one column that is a multi-select dropdown, in which none, one, multiple, or all of the options may be ticked off. In another column, I want a value to be returned based on that first column. Using just a multi-variable IF function, it's easy to do IF one is selected, then 500, IF another, then 1000, etc. with a dropdown, but that doesn't account for the possibility of multiple selections. Basically, I'm looking for the above, but also if one and another are BOTH selected, give me 1500. I'll add a screen shot to help illustrate:

chrome_2022-05-19_16-02-24.png


In the "Selections column, I want to be able to select any or all of Option 1, 2, and/or 3.

In the "Cost" column, I want to enter a formula (that I think should be possible), so that if Option 1 is selected in the Selections column, the Cost column returns the value "100"

If Option 2 is selected, the Cost column shows the value "150"

If Option 3 is selected, the Cost column shows the value "200"

If Option 1 and Option 2 are both selected--like in the picture--the Cost column shows the value "250"

If all three Options are selected, the Cost column shows the value "450"

And so on.


I've tried experimenting with various permutations of IF, IFAND, IFS, SumIF, Contains, etc. but I can't find something that I think fits exactly right, so I'm hoping someone can point me in the right direction! This doesn't feel like too complicated a task, I just can't quite get there!


Thank you!

Best Answer

  • Dan W
    Dan W ✭✭✭✭✭
    edited 05/20/22 Answer ✓

    So I had a similar problem, here is the solution I came up with.

    I had a separate resource sheet that had the values of each Resource that could be selected in the drop down. Then I referenced that sheet with this

    =SUMIFS({Reference Value }, {Reference Name}, HAS([Dropdown menu]@row, @cell))

    That allowed me to give each resource a different value and name.

    Here is an example on one page.

    Multi select value.jpg


Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!