COUNTIFs for Dates
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.
Comments
-
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.
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Thanks for the help and link to article, the formula worked-
Have a great day!
-
Awesome! So glad this helped.
Cheers,
GenevieveNeed more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!