COUNTIFs for Dates

edited 12/09/19 in Formulas and Functions
10/31/19 Edited 12/09/19

I'd like to create a formula which only counts the Rows in which a date in a particular column is in the last 30 days (among other criteria)

=COUNTIFS({Referral Source}, "Elm", {Database Status}, "Green", {Database Date of Referral}, <TODAY(-30))

The section in Italics is the area I am trying to sort out.

Thanks in advance for any help.


  • You've almost got it! Saying "less than" 30 days ago is actually saying "before" 30 days ago, so it won't return the correct result as it will be looking for 30+ days ago. (Back in time < is less, forward in time > is more. You can read about formula operations in our Help Center).

    If you're looking for a date range, you'll want to specify the start and end of that range. For example, after or equal to 30 days ago, but earlier or equal to today. Try this:

    {Database Date of Referral}, >=TODAY(-30), {Database Date of Referral}, <=TODAY()

    You can see my example in the screen capture below.


    Screen Shot 2019-11-04 at 3.52.47 PM.png

  • Thanks for the help and link to article, the formula worked-

    Have a great day!

  • Awesome! So glad this helped.



Sign In or Register to comment.