Sumifs + Contains Formula

Hello!
I’m trying to sum the total hours from another sheet based on a specific name and a time activity code. Since there are multiple activity codes I need to consider, I’m using "contains" in my formula, but I’m having trouble getting it to work correctly.
Here’s the formula I’ve been trying:
=SUMIFS({Timesheet Summary- Mar 2025 N/B}, {Timesheet Summary- Mar 2025 Name}, Name@row), CONTAINS("FLA", {Timesheet Summary- Mar 2025 AC})
Would you be able to take a look and help me figure out what’s going wrong? I appreciate any guidance you can provide!
Thanks
Best Answers
-
Your syntax is a bit off. Try this format instead:
=SUMIFS({Range To Sum}, {Name}, Name@row, {Leave Type}, CONTAINS("FLA", @cell))
-
The "@cell" needs to be in the CONTAINS function how I have it in my previous example.
Answers
-
Your syntax is a bit off. Try this format instead:
=SUMIFS({Range To Sum}, {Name}, Name@row, {Leave Type}, CONTAINS("FLA", @cell))
-
Hi Paul! Thanks. I think something is still missing because it's comes back to no value.
=SUMIFS({Range To Sum}, {Name}, Name@row, {Leave Type}, CONTAINS("PTO", {Leave Type})
-
The "@cell" needs to be in the CONTAINS function how I have it in my previous example.
-
It worked! thank you!!
-
I am trying something similar but with just one condition. I am trying to calculate the number of assigned hours with an in-progress status - there are 2 options in the source sheet. I can't get it to cooperate and get an error every time
=SUMIF({Copy of Short-Term Resourcing Mock Allocated Hours}, {Copy of Short-Term Resourcing Mock Status}, CONTAINS("In-Progress", @cell))
-
@hdierkers Try switching to a SUMIFS function. The syntax for SUMIF vs SUMIFS is different, and you are using the SUMIFS syntax.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 68K Get Help
- 474 Global Discussions
- 209 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 85 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!