Building a Sum If Statement
I'm trying to build a SumIfs statement that calculates the number of hours by type (Sick, Vacation, Personal) by employee ID. I'm able to do a simple SimIf for the total, but struggling with how to break it down by sick type.
This is the statement I'm using and its resulting in an incorrect argument:
=SUMIFS({Employe Absence Info 4.1.20 Range 1}, =ID647, AND({Employee Absence Info 4.1.20 Range 1}, ="Sick"), {Employee Absence Info 4.1.20 Range 1})
Any help would be appreciated!
Best Answers
-
For SUMIFS, the range to sum actually comes first and then is followed by your range/criteria sets.
=SUMIFS({Range to sum}, {ID Range}, "ID647", {Type Range}, "Sick")
-
Actually, I was able to fix it, the correct statement is this: =SUMIFS({Employe Absence Info 4.1.20 Range 6}, {Employe Absence Info 4.1.20 Range 1}, =ID647, {Employee Absence Info 4.1.20 Range 1}, ="Sick")
Thank you for your help @Paul Newcome!!
Answers
-
Also tried this: =SUMIF({Employe Absence Info 4.1.20 Range 1}, =ID647, AND({Employee Absence Info 4.1.20 Range 1}), ="Sick", {Employe Absence Info 4.1.20 Range 6})
-
For SUMIFS, the range to sum actually comes first and then is followed by your range/criteria sets.
=SUMIFS({Range to sum}, {ID Range}, "ID647", {Type Range}, "Sick")
-
Thank you, that is tricky! So I've tried that, and now it's returning a zero value, when it should be producing a total. Here's the formula: =SUMIFS({Employe Absence Info 4.1.20 Range 6}, {Employe Absence Info 4.1.20 Range 1}, ID647, {Employee Absence Info 4.1.20 Range 1}, "Sick")
Any suggestions?
-
Actually, I was able to fix it, the correct statement is this: =SUMIFS({Employe Absence Info 4.1.20 Range 6}, {Employe Absence Info 4.1.20 Range 1}, =ID647, {Employee Absence Info 4.1.20 Range 1}, ="Sick")
Thank you for your help @Paul Newcome!!
-
Glad you were able to get it working, and happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!