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")
Best Answer
-
Hi @twallen,
Just add a
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
Answers
-
Hi @twallen,
Just add a
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.
Can you please help me wrap up the second formula? I added 2023 to specify that year but I receive an #Invalid Data Type
=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
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 219 Industry Talk
- 457 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!