COUNTIFS with OR
I am trying to solve for a formula to countifs all conditions, except for one that I want to count if either/or:
=COUNTIFS({HR Projects - Project Stage}, Metrics16, {HR Projects - PMO Must-Do}, 1, {Range 4}, 0, (OR{HR Projects - PMO Range 7}, "Inclusion & Diversity", "Employee Experience")
Thank you!
Best Answer
-
Hi Lisa
Try this
=COUNTIFS({HR Projects - Project Stage}, Metrics16, {HR Projects - PMO Must-Do}, 1, {Range 4}, 0, {HR Projects - PMO Range 7}, OR(@cell="Inclusion & Diversity", @cell="Employee Experience"))
Also, to make your formulas even more robust, consider using @row in place of specific row numbers whenever possible. ex: Metrics@row Click here for more info
Answers
-
Hi Lisa
Try this
=COUNTIFS({HR Projects - Project Stage}, Metrics16, {HR Projects - PMO Must-Do}, 1, {Range 4}, 0, {HR Projects - PMO Range 7}, OR(@cell="Inclusion & Diversity", @cell="Employee Experience"))
Also, to make your formulas even more robust, consider using @row in place of specific row numbers whenever possible. ex: Metrics@row Click here for more info
-
That was SO QUICK and WORKED....THANK YOU!!!!
-
That was because you were already 99% of the way there. Glad to help with a small tweak.
Kelly
-
Hello Kelly,
Wonder if you can figure out why my COUNTIFS is not working??
formula is
=COUNTIFS([22 Jan]@row:[22 Dec]@row, "❌", [22 Jan]@row:[22 Dec]@row, "☢️")
If I only count instances of ❌ my 'COUNTIF' formula works, but when I add the other criteria it doesn't work - returns a '0'.
I'm stumped.
-
Hey @PeggyLang
Happy to help. Let's see if an OR will help
=COUNTIFS([22 Jan]@row:[22 Dec]@row, OR(@cell="❌", @cell="☢️"))
Does this work for you?
Kelly
-
YUP! Works perfectly! I tried the 'OR', however had the syntax WAY off for it to work.
Thank you! Have a greate weekend.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 141 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!