When Counting by week how do I only include the current year?

My formula for counting by week is:

=COUNTIFS({BBS Data Range 1}, IFERROR(WEEKNUMBER(@cell), 0) = WEEKNUMBER(TODAY()), {Staff}, ="John Smith")

This works pretty well but it is counting events that occured in previous years. I only want to include THIS YEAR in the count.

Thanks in Advance

Best Answer

  • Drew Wort
    Drew Wort ✭✭
    Answer ✓

    =COUNTIFS({BBS Data Range 1}, IFERROR(WEEKNUMBER(@cell), 0) = WEEKNUMBER(TODAY()), {BBS Data Range 1}, YEAR(@cell) = YEAR(TODAY()), {Staff}, =Staff@Row)

    This ended up working, couldnt have arrived at this without your help.

    Thanks!

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!