Sum of values excluding rows with auto sum function
Hi All,
I am fairly new to using Smartsheet, so I hope I am not asking a silly question. Is there a way to exclude certain lines that have the auto sum function? For example, I want to get a YTD sum of Hours Completed, but when I use the function, it shows that the YTD is 12 hours, but it should be 6.
Currently, the sum of Weeks 1 - 5 is totaled up at the top to get 6 hours. But when I do the YTD total, I am getting 12 hours. These are the only hours inputted so far. I hope that makes sense.
Answers
-
You can use the SUMIFS() function to only sum values based on criteria. Looking at your screenshot, you might be able to use the service option for something like:
=SUMIFS(]Hours Completed]:[Hours Completed], [Service Option]:[Service Option], CONTAINS("Week", @cell))
This formula would only calculate the Hours Completed column if the Service Option text included the string "Week".
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
-
@Jason Tarpinian Thank you for your help! I must be doing something wrong, I keep getting the #unparseable error.
-
Ah, that was my bad, one of my square brackets was backwards. Try this one:
=SUMIFS([Hours Completed]:[Hours Completed], [Service Option]:[Service Option], CONTAINS("Week", @cell))
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!