COUNTIFS - using a date
Hi - looking for help with what I think would be an easy formula.
What I want to do is create the number of "Complete" tasks I have that are due BEFORE 3/31/2021.
Can anyone help with my formula and point out an error? I get UNPARSEABLE as a result.
=COUNTIFS(Status2:Status571, "Complete", [Due Date2:DueDate571,<"3/31/2021")
Thanks so much!
Lynda🧐
Best Answers
-
=COUNTIFS(Status2:Status571, "Complete", [Due Date]2:[Due Date]571, AND(ISDATE(@cell), @cell<DATE(2021, 3, 31)))
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
Glad you found a solution. Happy to help. You had a couple syntax errors. I added the ISDATE to avoid getting an error.
Thanks for contributing to the Community.
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
Try this:
=COUNTIFS(Status2:Status571, "Complete", [Due Date]2:[Due Date]571, AND(ISDATE(@cell), @cell>DATE(2021, 3, 31), @cell<DATE(2021, 5, 2)))
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
@Mark Cronk - again, fabulous! Thank you so much! I haven't worked with many AND & ISDATE functions so I appreciate your help!
Happy St. Patty's Day!
Answers
-
=COUNTIFS(Status2:Status571, "Complete", [Due Date]2:[Due Date]571, AND(ISDATE(@cell), @cell<DATE(2021, 3, 31)))
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
OMG! Fabulous!
Yes, it sure answered my question!
Thankd you so much! I'm an avid learner!
Thank you!
-
Glad you found a solution. Happy to help. You had a couple syntax errors. I added the ISDATE to avoid getting an error.
Thanks for contributing to the Community.
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
So now to add to your corrected formula, what I now need is: Tasks with the "Complete" Status that fall between two dates. Working from your wonderful formula I tried this but it comes back unparseable.
=COUNTIFS(Status2:Status571, "Complete", [Due Date]2:[Due Date]571, AND(ISDATE(@cell), @cell>DATE(2021, 3, 31), AND(ISDATE (@cell), @cell<DATE(2021, 2021, 5, 2))))
Is the thinking wrong that I can have two AND functions - one with a < and another
>FUNCTION?
Thanks again!
-
Try this:
=COUNTIFS(Status2:Status571, "Complete", [Due Date]2:[Due Date]571, AND(ISDATE(@cell), @cell>DATE(2021, 3, 31), @cell<DATE(2021, 5, 2)))
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
@Mark Cronk - again, fabulous! Thank you so much! I haven't worked with many AND & ISDATE functions so I appreciate your help!
Happy St. Patty's Day!
-
Happy to help any time.
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 68K Get Help
- 474 Global Discussions
- 209 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 85 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!