Count IF for fixed dates
I am trying to do a simple CountIF, where the 'if' is whether an Expiration Date field is between a certain range, for example for if Expiration Date in in = January 2020, I would want to count any expiries between 1/1/2020 and 1/31/2020...it doesn't have to be relative, the expiration dates are 'fixed' in the sheet so they won't change or be updated/don't need to be relative to today etc.
Tried something as simple as =COUNTIF([Expiration Date]:[Expiration Date],>12/31/19) but can't get that to even work, is there a trick to this one?
Answers
-
Hello @brian25736
When counting between a Range, you want to input the Start and End of the Range within the COUNTIFS.
Here is an Example of what the Formula may look like: =COUNTIFS([Expiration Date]:[Expiration Date], >=DATE(2020, 5, 1), [Expiration Date]:[Expiration Date], <=DATE(2020, 10, 1))
Furthermore, here is an Example of this working within my Sheet:
Let me know if you have any questions!
Regards
Sean
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!