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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!