Formula to return count for conditions

Jeana
Jeana ✭✭✭✭✭✭

I am using this formula to count the number of assets for a particular month. Works fine.

=COUNTIFS([Next Step Calc]:[Next Step Calc], "All Complete", [End Date]:[End Date], IFERROR(MONTH(@cell), 0) = 2)

Now I need to have the formula account for a new year. I tried this and I'm getting INCORRECT AREGUEMENT SET.

=COUNTIFS([Next Step Calc]:[Next Step Calc], "All Complete", [End Date]:[End Date], =IFERROR(YEAR(@cell), 0) = 2021, IFERROR(MONTH(@cell), 0) = 2)

What am I doing wrong?

Thanks!

Best Answer

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭
    Answer ✓

    Hi @Jeana 

    Hope you are fine, try the following formula

    =COUNTIFS([Next Step Calc]:[Next Step Calc], "All Complete", [End Date]:[End Date], YEAR(@cell) = 2021, [End Date]:[End Date], MONTH(@cell) = 2)

    PMP Certified

    bassam.khalil2009@gmail.com

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!