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
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!