Countifs if one range OR another meets criteria
Hi,
I am trying to create a countifs formula that counts cells if one range meets criterion OR another range meets a different criterion. I have attached a screen shot of an example. In this example, I want to count the projects with a color of "Red," and either a category of "Difficult" OR a status of "complete" I should get a count of three since projects Alpha, Charlie and Echo have what I'm looking for. Right now, I am only able to create a formula that counts the projects if all three ranges meet all three criteria. Here is my starting point:
=COUNTIFS(Color1:Color6, "Red", [Project Category]1:[Project Category]6, "Difficult", Status1:Status6, "complete")
This formula is excluding project charlie because the category is "Easy" and it's excluding project Echo because the status is "pending."
Answers
-
Try this:
=COUNTIFS(Color1:Color6,"Red",OR([Project Category]1:[Project Category]6="Difficult",Status1:Status6="complete")
COUNTIFS works as an "AND" function, so you need to integrate the "OR" condition within it :)
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!