SUMIFS to Calculate Values for a Specific Year/Date Range

I am trying to use SUMIFS with multiple criteria, and I am failing horribly. I seem to be having trouble when I try to add the criterion to sum data from a specific year (from a Date field) and/or when I attempt to add data from a date range.
I have searched the community questions, and I haven't been successful in finding a solution. It is possible I haven't arrived at the correct post.
Thanks in advance for your assistance!
Best Answer
-
Paul Newcome ✭✭✭✭✭✭
You forgot the second DATE function.
You can also save yourself from having to edit two separate dates if you want to adjust which year you are summing for by using the method above where you use YEAR(@cell) = 2020 as your criteria.
Answers
-
Jennifer Whitlock ✭✭✭✭✭
Hi Andrew,
Without knowing what other info you need in your formula, you should be able to pull the info relative to a specific year by inserting this into your SUMIFS statement as the range and criteria:
(Date:Date, >DATE(2020, 1, 1) < DATE(2020, 12, 31)
Would you share any existing progress in your formula to see if anyone can be more helpful?
Have a good one!
-
Andrew Brimer ✭✭✭
嗨,珍妮花,
Thank you for your input. I was able to get a bit closer to the solution, but I'm having difficulty now with the cross sheet formula and adding in an IFERROR function when the Date column is not populated or has "TBD" or "Other."
Thanks again for your quick response.
-
Paul Newcome ✭✭✭✭✭✭
@Jennifer AmadorYour criteria section will not work within Smartsheet. You would need to either use an AND statement with @cell references
Date:Date, AND(@cell > DATE(2020, 1, 1), @cell < DATE(2020, 12, 31))
or you would need to repeat the range.
Date:Date, > DATE(2020, 1, 1), Date:Date, < DATE(2020, 12, 31)
@Andrew BrimerTry this for your criteria...
IFERROR(YEAR(@cell), 0) = 2020
-
Andrew Brimer ✭✭✭
@Paul Newcomeand@Jennifer Amador
Here's my current formula which is #UNPARSEABLE:
=SUMIFS({Data Range to Sum}, {Data_Check Column}, =0, {Data_A Exp Date}, AND(@cell>=DATE(2020, 1, 1), @cell<=(2020,12, 31)))
Thank you for your assistance.
-
Paul Newcome ✭✭✭✭✭✭
You forgot the second DATE function.
You can also save yourself from having to edit two separate dates if you want to adjust which year you are summing for by using the method above where you use YEAR(@cell) = 2020 as your criteria.
-
Andrew Brimer ✭✭✭
@Paul NewcomeThank you for catching my error! The formula is now working.
-
Paul Newcome ✭✭✭✭✭✭
Categories
I hope you're well and safe!<\/p>
There's a known issue at the moment.<\/p>
I'll get back to the post if I can find the thread.<\/p>
I hope that helps!<\/p>
Be safe, and have a fantastic weekend!<\/p>
Best,<\/p>
Andrée Starå<\/strong><\/a> | Workflow Consultant \/ CEO @ WORK BOLD<\/strong><\/a><\/p> ✅Did my post(s) help or answer your question or solve your problem? Please support the Community by <\/em>marking it Insightful\/Vote Up, Awesome, or\/and as the accepted answer<\/em><\/strong>. It will make it easier for others to find a solution or help to answer!<\/em><\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":108880,"type":"question","name":"Recover a Row that was accidentally moved then deleted","excerpt":"I was attempting to copy a row from sheet 1 to sheet 2, but I accidentally moved the row then deleted it, but then realized belatedly that the original (now deleted) data in sheet 1 had been moved. Apparently one can not simply use the \"undo action\" arrow after moving something--the option is grayed out as in not…","snippet":"I was attempting to copy a row from sheet 1 to sheet 2, but I accidentally moved the row then deleted it, but then realized belatedly that the original (now deleted) data in sheet…","categoryID":321,"dateInserted":"2023-08-11T22:27:56+00:00","dateUpdated":null,"dateLastComment":"2023-08-12T05:12:42+00:00","insertUserID":165013,"insertUser":{"userID":165013,"name":"GlennJo","title":"Riparian Stewardship Program Manager","url":"https:\/\/community.smartsheet.com\/profile\/GlennJo","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-12T03:46:04+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":165013,"lastUser":{"userID":165013,"name":"GlennJo","title":"Riparian Stewardship Program Manager","url":"https:\/\/community.smartsheet.com\/profile\/GlennJo","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-12T03:46:04+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":29,"score":null,"hot":3383611238,"url":"https:\/\/community.smartsheet.com\/discussion\/108880\/recover-a-row-that-was-accidentally-moved-then-deleted","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108880\/recover-a-row-that-was-accidentally-moved-then-deleted","format":"Rich","lastPost":{"discussionID":108880,"commentID":390348,"name":"Re: Recover a Row that was accidentally moved then deleted","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/390348#Comment_390348","dateInserted":"2023-08-12T05:12:42+00:00","insertUserID":165013,"insertUser":{"userID":165013,"name":"GlennJo","title":"Riparian Stewardship Program Manager","url":"https:\/\/community.smartsheet.com\/profile\/GlennJo","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-12T03:46:04+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-12T03:46:02+00:00","dateAnswered":"2023-08-11T23:45:38+00:00","acceptedAnswers":[{"commentID":390342,"body":"