Trouble with COUNTIFS Formula

kkinman
kkinman โœญโœญโœญโœญ

Hi,

I'm having some issues getting the syntax right for a COUNTIFS formula. I'm trying to count the number of cells that aren't blank in one range and is greater than or equal to 90 days from today in another range. Can someone provide assistance with this?

Best Answer

  • SSFeatures
    SSFeatures โœญโœญโœญโœญโœญโœญ
    Answer โœ“

    Hi @kkinman, try this formula:

    =COUNTIFS(Column:Column, <> "", Date:Date, @cell >= TODAY(-90))
    

    This uses one range "Column:Column" and checks if it is NOT EQUAL TO "" (which is the empty text).

    Then it checks a range of dates and checks if the value is within the most recent 90 days.

    I hope this helps!

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com) (LinkedIn)

    SSFeatures makes Smartsheet way easier to use and it saves you hours of work every week. It adds essential features into Smartsheet to save you time. For example: โ€” Auto Sorting โ€” Sorting with Filters โ€” Report PDF Generation โ€” Copy and Paste Conditional Formats โ€” Copy and Paste Automation Workflows โ€” Column Manager โ€” and so many more.

Answers

  • SSFeatures
    SSFeatures โœญโœญโœญโœญโœญโœญ
    Answer โœ“

    Hi @kkinman, try this formula:

    =COUNTIFS(Column:Column, <> "", Date:Date, @cell >= TODAY(-90))
    

    This uses one range "Column:Column" and checks if it is NOT EQUAL TO "" (which is the empty text).

    Then it checks a range of dates and checks if the value is within the most recent 90 days.

    I hope this helps!

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com) (LinkedIn)

    SSFeatures makes Smartsheet way easier to use and it saves you hours of work every week. It adds essential features into Smartsheet to save you time. For example: โ€” Auto Sorting โ€” Sorting with Filters โ€” Report PDF Generation โ€” Copy and Paste Conditional Formats โ€” Copy and Paste Automation Workflows โ€” Column Manager โ€” and so many more.

  • JR90
    JR90 โœญโœญ

    @kkinman you got to it before I could, but your formula is more simple than mine, here's what I got:

    =COUNTIFS(Date:Date, >=TODAY(), Date:Date, <=TODAY(90), [Column2]:[Column2], NOT(ISBLANK(@cell )))

  • kkinman
    kkinman โœญโœญโœญโœญ

    Thank you, Nathan, that worked great!

  • SSFeatures
    SSFeatures โœญโœญโœญโœญโœญโœญ

    @kkinman You're welcome!

    @JR90 that's a great formula too! Naturally my mind wants to use NOT(ISBLANK()) because it's the logical way to think through the formula. The shortcut "<>" is super nice too though haha.

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com) (LinkedIn)

    SSFeatures makes Smartsheet way easier to use and it saves you hours of work every week. It adds essential features into Smartsheet to save you time. For example: โ€” Auto Sorting โ€” Sorting with Filters โ€” Report PDF Generation โ€” Copy and Paste Conditional Formats โ€” Copy and Paste Automation Workflows โ€” Column Manager โ€” and so many more.

  • JR90
    JR90 โœญโœญ
    edited 06/03/25

    @SSFeatures I did not know about the <> shortcut, very cool, thank you for that!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!