Count Years for Dashboard Graph

Tribeiro
Tribeiro ✭✭✭
edited 12/09/19 in Smartsheet Basics

How can I count how many projects were completed in 2018 and 2019?

I am trying to create a graph for all projects completed in 2018 and 2019

this is what I got so far. I am pulling data from another smartsheet.

=COUNTIF({Completed Range 3}, "Completed" + {Completed Range 2} = DATE(2019))

 

Thank you

 

Comments

  • Nic Larsen
    Nic Larsen ✭✭✭✭✭✭

    My original post was missing a piece / try this one instead: 

    =COUNTIFS({Completed Range 3}, ="Completed", {Completed Range 2}, IFERROR(YEAR(@cell), 0) = 2018) + COUNTIFS({Completed Range 3}, ="Completed", {Completed Range 2}, IFERROR(YEAR(@cell), 0) = 2019)

    I know there's a way to shorten with an OR statement but it was causing me grief this afternoon. 

  • Nic Larsen
    Nic Larsen ✭✭✭✭✭✭

    A bit shorter version:

    =COUNTIFS({Completed Range 3}, ="Completed", {Completed Range 2}, OR(IFERROR(YEAR(@cell), 0) = 2018, IFERROR(YEAR(@cell), 0) = 2019))