# 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)))

"medical only"

"pending"

"contested"

"denied"

• ✭✭✭✭✭✭

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)))

• ✭✭✭✭✭✭

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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!