Countifs statement with date range
I am trying to write a countifs statement using two references on another sheet to count the number or projects not in "blue" status and with a due date between 1-3 months - right now I have:
=COUNTIFS({RAG}, <>"Blue" AND[{Date}, ">=Today()+31", {Date}, "<Today()+90"])
{RAG] is a reference on status to another sheet and
{Date} is reference to due date from another sheet
I keep getting error message.
Thanks for the help!
Best Answer
-
Hi @ColleenU
A COUNTIFS statement has the "and" built into it, so you just need commas between your ranges and criteria without the AND function. If you did use an AND in other formulas, keep in mind that functions use round parentheses like this: AND(...) versus AND[...]
I see also that you're using the TODAY function, which doesn't need to be in quotes (since it's a function, not text). You can add a number (in these) for the TODAY function to reference a specific number of days from today: TODAY(31)
With all these small updates, let's try your formula again!
=COUNTIFS({RAG}, <> "Blue", {Date}, >= TODAY(31), {Date}, < TODAY(90))
Let me know if this works for you 🙂
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
Hi @ColleenU
A COUNTIFS statement has the "and" built into it, so you just need commas between your ranges and criteria without the AND function. If you did use an AND in other formulas, keep in mind that functions use round parentheses like this: AND(...) versus AND[...]
I see also that you're using the TODAY function, which doesn't need to be in quotes (since it's a function, not text). You can add a number (in these) for the TODAY function to reference a specific number of days from today: TODAY(31)
With all these small updates, let's try your formula again!
=COUNTIFS({RAG}, <> "Blue", {Date}, >= TODAY(31), {Date}, < TODAY(90))
Let me know if this works for you 🙂
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Thank you so much Genevieve - it worked - I realize also I didn't have the word "today" in caps - so with your help, I got it to work!
-
Well-done! 🎉 Glad I could help.
Need 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
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!