# SUMIFS Formula with Three Conditions

✭✭

Hello all! I'm fairly new to SmartSheets and having troubles with a formula for our Sheet Summary.

Here is a screenshot with what I have started. I want to calculate the total number of units if the employee equals "MB" and HSW is one of the Applicable Categories from the drop-down.

I used the formula below but it returned a value of 0. What part of my formula is currently wrong?

To make matters worse, I want to eventually add a third condition if the Date Earned column is in the year of 2023.

=SUMIFS([Total CE Units]:[Total CE Units], Employee:Employee, "MB", [Applicable Categories]:[Applicable Categories], "HSW")

• ✭✭✭✭✭✭

Hi @twallen,

HAS() to your formula and you will be all set - this is needed for the multi-select field.

=SUMIFS([Total CE Units]:[Total CE Units], Employee:Employee, "MB", [Applicable Categories]:[Applicable Categories], HAS(@cell, "HSW"))

Later, to add the year part, use this.

=SUMIFS([Total CE Units]:[Total CE Units], Employee:Employee, "MB", [Applicable Categories]:[Applicable Categories], HAS(@cell, "HSW"), [Date Earned]:[Date Earned], @cell <> "", [Date Earned]:[Date Earned], YEAR(@twallen

Hope this helps,

Dave

• ✭✭✭✭✭✭

Hi @twallen,

HAS() to your formula and you will be all set - this is needed for the multi-select field.

=SUMIFS([Total CE Units]:[Total CE Units], Employee:Employee, "MB", [Applicable Categories]:[Applicable Categories], HAS(@cell, "HSW"))

Later, to add the year part, use this.

=SUMIFS([Total CE Units]:[Total CE Units], Employee:Employee, "MB", [Applicable Categories]:[Applicable Categories], HAS(@cell, "HSW"), [Date Earned]:[Date Earned], @cell <> "", [Date Earned]:[Date Earned], YEAR(@twallen

Hope this helps,

Dave

• ✭✭

Hi @DKazatsky2. This was extermely the helpful! The first formula works just as intended so I marked it as answered.

=SUMIFS([Total CE Units]:[Total CE Units], Employee:Employee, "MB", [Applicable Categories]:[Applicable Categories], HAS(@cell, "HSW"), [Date Earned]:[Date Earned], @cell <> "", [Date Earned]:[Date Earned], YEAR(2023))

• ✭✭✭✭✭✭

Sorry, not sure what happened with the formula last time. Here it is.

=SUMIFS([Total CE Units]:[Total CE Units], Employee:Employee, "MB", [Applicable Categories]:[Applicable Categories], HAS(@cell, "HSW"), [Date Earned]:[Date Earned], @cell <> "", [Date Earned]:[Date Earned], YEAR(@cell) = 2023)

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!