COUNTIF Formula

Options

Good afternoon, I am trying to count the # of a specific category on a different sheet by YTD. Here is the formula I am trying to use. =COUNTIF({Category}, "Procedure", {Date},IFERROR(@cell),0)=YEAR(TODAY())). Not sure what I am doing wrong. Your help will be greatly appreciated. Thank you

Best Answer

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭
    Answer ✓
    Options

    A small tweak with a change of Function. COUNTIFS (plural) is required when you have more than one criteria. Personally, I always use the COUNTIFS (plural) function since it can always be used regardless of how many criteria is needed.

    =COUNTIFS({Category}, @cell = "Procedure", {Date}, IFERROR(YEAR(@cell), 0) = YEAR(TODAY()))

    cheers,

    Kelly

Answers

  • Kelly Moore
    Kelly Moore ✭✭✭✭✭✭
    Answer ✓
    Options

    A small tweak with a change of Function. COUNTIFS (plural) is required when you have more than one criteria. Personally, I always use the COUNTIFS (plural) function since it can always be used regardless of how many criteria is needed.

    =COUNTIFS({Category}, @cell = "Procedure", {Date}, IFERROR(YEAR(@cell), 0) = YEAR(TODAY()))

    cheers,

    Kelly

  • Ivan Perez
    Ivan Perez ✭✭✭
    Options

    Thank you very much for your help.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!