countif

Hi,


I would like to count the number of ">3 hours saved" using the countif function. However, it is not working.

I am writing the formula as follows: =countif(range, ">3 hours saved")

the same issue with "<1 hour saved". Apparently adding the < or > signs is affecting the formula.

Any suggestions please? I should mention I tried adding { } or [ ] around "[>3 hours saved]" still did not work.

Thank you in advance

Tags:

Best Answer

  • Mike TV
    Mike TV ✭✭✭✭✭✭
    Answer ✓

    Try doing it with a helper column. Such as this:

    1st formula in the [3 hours saved] column:

    =IF(CONTAINS(">3 hours saved", [Primary Column]@row), "Yes", "No")

    2nd formula in the [3 Hours Saved Count] column:

    =COUNTIF([3 hours saved]:[3 hours saved], "Yes")

    You can hide the helper column if needed.

Answers

  • Mike TV
    Mike TV ✭✭✭✭✭✭
    Answer ✓

    Try doing it with a helper column. Such as this:

    1st formula in the [3 hours saved] column:

    =IF(CONTAINS(">3 hours saved", [Primary Column]@row), "Yes", "No")

    2nd formula in the [3 Hours Saved Count] column:

    =COUNTIF([3 hours saved]:[3 hours saved], "Yes")

    You can hide the helper column if needed.

  • Thank you for your help and idea Matt

    I just replaced the signs with less and more than this time.

    Have a good day

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!