CountIfs with Distinct and a date range

A.J.
A.J. ✭✭✭✭✭✭

I am sure it is doable, but I continue to struggle to get CountIFS, AND, and DISTINCT to work together. I need to count distinct dates in a long column and need to determine how many distinct dates there were in particular months.

I'm able to use this to see distinct counts after a certain date:

=COUNTIFS(DISTINCT([CALC_Row Actual Dissemination Date]:[CALC_Row Actual Dissemination Date]), >DATE(2023, 6, 30))

However, I need to also limit the returning value to an end date, in that particular case, <DATE(2023, 8, 1).

How can I get a "between" value to work, here?

If there's a better way, maybe something with the MONTH function, please let me know!

Tags:

Best Answer

  • AravindGP
    AravindGP Community Champion
    Answer ✓

    Hi @A.J.


    You can use this formula

    =COUNTIFS(DISTINCT([CALC_Row Actual Dissemination Date]:[CALC_Row Actual Dissemination Date]), >DATE(2023, 6, 30), DISTINCT([CALC_Row Actual Dissemination Date]:[CALC_Row Actual Dissemination Date]), <DATE(2023,8,1))

    Thanks,

    Aravind GP| Delivery Manager

    Atturra Data & Integration

    M: +61493337445

    E:Aravind.GP@atturra.com

    W: www.atturra.com

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!