Counting for this year only (Formula help)

dave.mcpherson56751 ✭✭✭✭✭
edited 12/09/19 in Formulas and Functions

Hi All,

I have a sheet that has been populated via forms for the past 12 months. What i would like to do is use a count if formula but only when the date is this year. 

my current formula is =COUNTIFS({Pure Gym Issue Type YTD}, "HR / Lateness or leaving early")

This works really well but counts everything on the sheet, can someone please help me tweak this for just this years entries?

I will appreciate any help at all

Thank you




  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi Dave,

    Try this. (Exchange the [Pure Gym Issue Type YTD]:[Pure Gym Issue Type YTD] to your cross-sheet reference.

    =COUNTIFS([Pure Gym Issue Type YTD]:[Pure Gym Issue Type YTD]; "HR / Lateness or leaving early"; Year:Year; YEAR(TODAY()))    

    The same version but with the below changes for your and others convenience.  

    =COUNTIFS([Pure Gym Issue Type YTD]:[Pure Gym Issue Type YTD], "HR / Lateness or leaving early", Year:Year, YEAR(TODAY()))

    Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

    Did it work?

    Have a fantastic week!


    Andrée Starå

    Workflow Consultant @ Get Done Consulting


    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: | | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!