Countifs with Multiple instances (not a drop down)
Happy Friday everyone,
I currently have a working formula in a rollup sheet that counts one instance. The new request is to have it count multiple instances between a specific date where a box is not checked. I can get it to count the one selection but when I attempt to replicate within the formula to count multiple, it returns an error.
Here is my current formula:
=COUNTIFS({On the Job Injury Log Range 4}, "eligible", {On the Job Injury Log Range 12}, 0, {On the Job Injury Log Range 1}, AND(@cell >= DATE(2021, 1, 1), @cell <= DATE(2021, 12, 31)))
I need to add:
"medical only"
"pending"
"contested"
"denied"
Best Answer
-
It would be similar to your date criteria except using an OR instead of an AND.
=COUNTIFS({On the Job Injury Log Range 4}, OR(@cell = "eligible", @cell = "medical only", @cell = "pending", @cell = "contested", @cell = "denied"), {On the Job Injury Log Range 12}, 0, {On the Job Injury Log Range 1}, AND(@cell >= DATE(2021, 1, 1), @cell <= DATE(2021, 12, 31)))
Answers
-
It would be similar to your date criteria except using an OR instead of an AND.
=COUNTIFS({On the Job Injury Log Range 4}, OR(@cell = "eligible", @cell = "medical only", @cell = "pending", @cell = "contested", @cell = "denied"), {On the Job Injury Log Range 12}, 0, {On the Job Injury Log Range 1}, AND(@cell >= DATE(2021, 1, 1), @cell <= DATE(2021, 12, 31)))
-
Thanks, Paul, I always feel like I am so close!
I appreciate your help for sure- have a great weekend.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!