COUNTIF Date in the next 30 days without counting blanks
I am using the following formula: =COUNTIF([Contract Expiration Date]:[Contract Expiration Date], to count how many are due in the next 30 days. The formula is returning 34 results but if I filter on the same criteria of date in the next 30 days, I only get 5. Is my formula counting blanks? If so, how do I correct to not count blanks?
Answers
-
my formula got cut off above -
=COUNTIF([Contract Expiration Date]:[Contract Expiration Date], >TODAY(+30))
-
It is not counting blanks.
=COUNTIF([Contract Expiration Date]:[Contract Expiration Date], <TODAY(30))
The formula is almost correct. What you are asking the formula to do in your example is to count the number of days that are greater than 30 days from now.
By changing the operator to less than < you are asking the calculation to give you expiration dates less than 30 days from today.
Hope that helps.
Purnima
Purnima Gore
Cierr Limited
Your Time is Important, you want to Stay on Track, We can help you use the Right Tools
-
Thanks @Purnima Gore - when I flip it, it gives me 12, which is still more than the filter. So here is what I have in my Sheet Summary: =COUNTIF([Contract Expiration Date]:[Contract Expiration Date], <TODAY(+30))
And here is my filter
My sheet summary shows 12 but my filter shows 5
-
Can you give me access to the sheet?
I was able to have a list of 43 contracts with 5 of them within 30 days and the rest over that showing a different number.
This is with the normal filter
This is with the formula - still
Still only counting 5.
Thanks
PG
Purnima Gore
Cierr Limited
Your Time is Important, you want to Stay on Track, We can help you use the Right Tools
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!