# SumIFS with YTD and Month

Hello, I am trying to summarize the total of cures by branch, by year and month below is the formula I am trying to use.

SUMIFS({Cure Amount}, {Date}, IFERROR(YEAR(@cell), 0) = 2021, IFERROR(MONTH(@cell), 0) = 1, {Branch}, "Triad (800)")

Thank you

• The formula is missing a range. Each term has to be paired with a range, even if the range is same as previous range.

=SUMIFS({Cure Amount}, {Date}, IFERROR(YEAR(@cell), 0) = 2021, {Date}, IFERROR(MONTH(@cell), 0) = 1, {Branch}, "Triad (800)")

cheers,

Kelly

• Alternatively

SUMIFS({Cure Amount}, {Date}, AND(IFERROR(YEAR(@cell), 0) = 2021, IFERROR(MONTH(@cell), 0) = 1), {Branch}, "Triad (800)")

• The formula is missing a range. Each term has to be paired with a range, even if the range is same as previous range.

=SUMIFS({Cure Amount}, {Date}, IFERROR(YEAR(@cell), 0) = 2021, {Date}, IFERROR(MONTH(@cell), 0) = 1, {Branch}, "Triad (800)")

cheers,

Kelly

• Alternatively

SUMIFS({Cure Amount}, {Date}, AND(IFERROR(YEAR(@cell), 0) = 2021, IFERROR(MONTH(@cell), 0) = 1), {Branch}, "Triad (800)")

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!