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.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!