[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
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!