[help] Using SUMIF formula to calculate the sum of a column if between certain dates
Hey y'all!
Here's what I have so far:
=SUMIF({GRAD Student - Support Request Range Complete Date}, AND(<=DATE(2019, 5, 9), >=DATE(2019, 1, 7)), {GRAD Student - Support Request Time Spent Range})
Complete Date = the date range I'm trying to pull from
After the "And"= The range I want for the dates.
Time Spent = The location of the data I want to be totaled.
When I put this formula in, I get an Invalid Operation error. Any help would be appreciated.
EDIT: Figured it out by myself.
Should've been using the SUMIFS formula.
My final formula is as such:
=SUMIFS({GRAD Student - Support Request Time Spent Range}, {GRAD Student - Support Request Range Complete Date}, >=DATE(2019, 1, 7), {GRAD Student - Support Request Range Complete Date}, <=DATE(2019, 5, 9))
Answers
-
Glad you got it working. You can also use your original formula with the AND statement with only minor adjustment. I like to use AND like this when I am referencing the same range for multiple criteria sets so that it helps keep things a little more organized (for me at least).
The problem is that the AND requires logical statements. "This equals that" or "This is less than or equal to that", etc... So you would need to use @cell references.
=SUMIFS({Range}, AND(@cell <= DATE(......), @cell >= DATE(.....))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!