Formula for 2024 returning 0

This discussion was created from comments split from: Last Month Formula?.

Answers

  • Samantha S.
    Samantha S. ✭✭✭✭✭

    I'm having the same issue for 2024. I'm calculating the number of audits LM which worked until 1/1/2024 hit and now it shows 0 where it should reflect 805 which is our December result.


  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Try this:


    =COUNTIFS({Conducted Date2}, AND(IFERROR(YEAR(@cell), 0) = YEAR(IFERROR(DATE(YEAR(TODAY()), MONTH(TODAY()) - 1, 1), DATE(YEAR(TODAY()) - 1, 12, 1))), IFERROR(MONTH(@cell), 0) = MONTH(IFERROR(DATE(YEAR(TODAY()), MONTH(TODAY()) - 1, 1), DATE(YEAR(TODAY()) - 1, 12, 1)))))

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!