CountIf with Date ranges
Trying to write a formula that counts the number of instances based on a date range. I can get the instances to populate in a formula by themselves but I cannot get the date range to work?
This is weird as the formula works in another sheet for another scenario.
=COUNTIFS({CURRENT CHECKOUT SCENARIO Range 1}, [Primary Column]@row, {CURRENT CHECKOUT SCENARIO Range 2}, AND(@cell >= DATE(1965, 1, 30), @cell <= DATE(2021, 4, 30)))
Answers
-
Are you getting an error or an incorrect count?
-
Hi @JScot
Can you clarify what you mean when you say you can't get it to work? Are you receiving an error or an incorrect result? The structure of the formula is correct, so it may be that there's an issue with the ranges or the criteria.
Check to make sure that your "Range 2" is looking at a Date Type of column. If it is, could you post screen captures of each range and the current sheet (but please block out sensitive data).
Thanks!
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!