SUMIF spend total by year
Hey guys,
I have been trying to write a formula which allows me to calculate the amount of spend by year but cannot figure out what i am doing wrong. I tried the following:
=SUMIF(Debit5:Debit339, [Spend date]5:[Spend date]339, >=1 / 1 / 2021, [Spend date]5:[Spend date]339, <=31 / 12 / 2021)
But get the error message incorrect argument.
Kind regards,
Toni
Answers
-
Try:
=SUMIFS(Debit5:Debit339, [Spend date]5:[Spend date]339, IFERROR(YEAR(@cell), 0) = "2021")
-
That seems to have done the trick, thanks a bunch!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.8K Get Help
- 410 Global Discussions
- 219 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 142 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!