Count if with due date in next #days
Hello from the North,
I am having some trouble. I am trying to count if status is 'released'; and next review date is within 30 days. The formula I am using is bringing back info (49 counts); however, when I go to the sheet and filter with the same criteria, I get '1' count only (which appears to be accurate). Why the discrepancy?
Here is the formula; range 1 is 'status'; range 2 is 'review date'
=COUNTIFS({SWP LIST_2020 Range 1}, "Released", {SWP LIST_2020 Range 2}, >=TODAY(30))
Cheers,
AL
Best Answer
-
Thank you very much. That works.
I appreciate the quick response.
Have a good day.
Answers
-
It is because your formula is counting for dates that are more than 30 days in the future; not for dates within the next 30 days. Try this instead...
=COUNTIFS({SWP LIST_2020 Range 1}, "Released", {SWP LIST_2020 Range 2}, AND(@cell <= TODAY(30), @cell >= TODAY()))
This says less than 30 days in the future and greater than or equal to today.
-
Thank you very much. That works.
I appreciate the quick response.
Have a good day.
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!