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
- 65.3K Get Help
- 446 Global Discussions
- 144 Industry Talk
- 477 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!