Using Countifs with Date Range and multiple qualifier
I"m trying to create a formula, referencing another sheet, with qualifier of date range, and 'Status' being 'Live' OR 'Ended'.
I have this:
=COUNTIFS({Test Start Date}, <=DATE(2020, 1, 31), {Test Start Date}, >=DATE(2020, 1, 1), {Status}, "Live", {Status}, "Ended")
returning #INVALID REF
Thoughts?
TIA
Best Answer
-
There is a problem with your formula in that you are checking for the Status of Live AND Ended. It should be something like this:
=COUNTIFS({Test Start Date}, <=DATE(2020, 1, 31), {Test Start Date}, >=DATE(2020, 1, 1), {Status}, OR(@cell = "Live", @cell = "Ended"))
However, the #INVALID REF sounds like a problem with your reference. Double check your ranges and that the sheet reference names match exactly.
Answers
-
There is a problem with your formula in that you are checking for the Status of Live AND Ended. It should be something like this:
=COUNTIFS({Test Start Date}, <=DATE(2020, 1, 31), {Test Start Date}, >=DATE(2020, 1, 1), {Status}, OR(@cell = "Live", @cell = "Ended"))
However, the #INVALID REF sounds like a problem with your reference. Double check your ranges and that the sheet reference names match exactly.
-
Thank you Brian W. Much appreciated
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!