I am having trouble using "And", "OR" & "Countif(s)" to build a formula.
Hello,
I am attempting to come up with a sheet summary formula that counts cells if they meet at least one of 3 different statuses in the same column, AND also meet one of 5 different statuses in a separate column.
So using the screenshot I've provided as an example (although it doesn't have 5 different statuses in the same column) I would like a sheet summary formula that says =COUNTIF([Item Number]:[Item Number], "C001" OR "COO2" OR "COO3" OR "COO4" AND Status:Status, "Green" OR "Yellow" OR "Red"
My apologies in advance if I worded this question in a less than optimal manner.
.
Best Answer
-
Try this:
=COUNTIFS([Item Number]:[Item Number], OR(@cell = "C001", @cell = "COO2", @cell = "COO3", @cell = "COO4"), [Status]:[Status], OR(@cell = "Green", @cell = "Yellow", @cell = "Red"))
Answers
-
Try this:
=COUNTIFS([Item Number]:[Item Number], OR(@cell = "C001", @cell = "COO2", @cell = "COO3", @cell = "COO4"), [Status]:[Status], OR(@cell = "Green", @cell = "Yellow", @cell = "Red"))
-
Thank you so much! I was able to use your response to figure out exactly what I needed to do!
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!