Multiple IFs combined with Countm formula

Greetings,

I'm currently attempting to write a formula to provide variable outputs based on a Countm function(column in my smartsheet that has multiple dropdown options).

What I'm looking to do is have a single formula that will take the result of a Countm on my "corporate objectives" and output a percentage. In the example below, I have 6 different objectives of which I've roughly defined logic for.

Basically, if the countm finds a single entry in corporate objectives the output is one, if there are two entries the output is .5 and so on all the way to six.

Note: Ideally if there are zero entries found from the countm the output is 0

Essentially it boils down to the following statements(which I'd like to combine):

=IF(COUNTM([Corporate Objectives]:[Corporate Objectives]=1, "1", 0)

=IF(COUNTM([Corporate Objectives]:[Corporate Objectives]=2, ".5", 0)

=IF(COUNTM([Corporate Objectives]:[Corporate Objectives]=3, ".33", 0)

=IF(COUNTM([Corporate Objectives]:[Corporate Objectives]=4, ".25", 0)

=IF(COUNTM([Corporate Objectives]:[Corporate Objectives]=5, ".2", 0)

=IF(COUNTM([Corporate Objectives]:[Corporate Objectives]=6, ".17", 0)

Is anyone aware of how I could combine this logic into a single formula?

Let me know what other info I could provide or questions I could answer.

Thanks

Tags:

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!