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
-
-
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
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Help Article Resources
Categories
Check out the Formula Handbook template!