CountIFS formula including OR
Hello, I am trying to create a complex formula using ranges and inside the COUNTIFS i need to include OR functions, but when i do the below it comes up with error:
=COUNTIFS(OR({Current Jobs Completed Hour}, <7, {Current Jobs Completed Hour}, >18), OR({Current Jobs Created Hour}, <7, {Current Jobs Created Hour}, >18), {Current Jobs New Job or Other?}, <>"Direct Entry", {Current Jobs Current Month}, 1, {Current Jobs New Job or Other?}, <>"KIOSK", {Current Jobs Time}, <60)
Can anyone help with what i am doing wrong, or if there is no way you can include the OR inside a COUNTIFS?
Thanks!!!!!
Comments
-
Hello,
You're likely receiving the error because the OR functions are within the range section of the COUNTIFS syntax. Being that the column references for both values are the same, you can correct this by placing the OR values within the criteria. For example,
=COUNTIFS({Current Jobs Completed Hour}, OR(@cell < 7, @cell > 18)
Altering this for the other COUNTIFS criteria should resolve the error.
Have a wonderful day,
Eric - Smartsheet Technical Support
-
Basically... You don't include the range within the OR function when used in a COUNTIF(S) or SUMIF(S). You specify the range, then use the OR function with @cell references in the criteria.
The AND function can also be used the same way.
-
Thank you so much that works
-
Thank you - that helps and now it works
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!