Formula to Sum a section within certain Dates
I have started a formula to sum the totals between dates and add them to another sheet.
=SUMIF({SJC18 January Tracker Range 1}, IF(AND(Date@row >= DATE(2022, 1, 1), Date@row <= DATE(2022, 1, 31))
The formula is not working. I need to Sum the total of the column between Jan 1, 2022 to Jan 31, 2022 only and add it to another sheet.
Any ideas??
Best Answers

Hey @Cathi R
There are a few syntax opportunities with the formula above.
The SUMIF function works when there is only one criteria. The formula above has two criteria. The SUMIFS (plural) function works for any number of criteria  including when there is only one criteria. For this reason, my personal preference is to only use the SUMIFs function.
The syntax of SUMIFS is (range to be summed, range1, criteria1, range2, criteria2, etc). It appears the second range (the date range) is missing. I am assuming that the Totals you are tracking is something other than dates? If you don't have a specific date column listed, you can use the system generated Created column.
Assuming the Totals value being tracked is in Range 1 (as a good practice, rename cross sheet references to reflect the column being used this will help you and others troubleshoot formulas), your formula could look something like this. You will need to create the Date range yourself, you cannot simply copy paste this formula
=SUMIFS({SJC18 January Tracker Range 1}, {SJC18 January Tracker Date}, AND(@cell >= DATE(2022, 1, 1), @cell <= DATE(2022, 1, 31)))
As an alternative, you could use the Month and Year function to simplify month to month editing.
=SUMIFS({SJC18 January Tracker Range 1}, {SJC18 January Tracker Date}, AND(@cell >= YEAR(@cell)=2022, MONTH(@cell)=1))
Does this work for you?
Kelly

Kelly, Thank you so much. This was very helpful!
Answers

Hey @Cathi R
There are a few syntax opportunities with the formula above.
The SUMIF function works when there is only one criteria. The formula above has two criteria. The SUMIFS (plural) function works for any number of criteria  including when there is only one criteria. For this reason, my personal preference is to only use the SUMIFs function.
The syntax of SUMIFS is (range to be summed, range1, criteria1, range2, criteria2, etc). It appears the second range (the date range) is missing. I am assuming that the Totals you are tracking is something other than dates? If you don't have a specific date column listed, you can use the system generated Created column.
Assuming the Totals value being tracked is in Range 1 (as a good practice, rename cross sheet references to reflect the column being used this will help you and others troubleshoot formulas), your formula could look something like this. You will need to create the Date range yourself, you cannot simply copy paste this formula
=SUMIFS({SJC18 January Tracker Range 1}, {SJC18 January Tracker Date}, AND(@cell >= DATE(2022, 1, 1), @cell <= DATE(2022, 1, 31)))
As an alternative, you could use the Month and Year function to simplify month to month editing.
=SUMIFS({SJC18 January Tracker Range 1}, {SJC18 January Tracker Date}, AND(@cell >= YEAR(@cell)=2022, MONTH(@cell)=1))
Does this work for you?
Kelly

Kelly, Thank you so much. This was very helpful!
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!