Stuck on Multi-criteria countif function
Hello,
I am trying to find active pilots at risk by using countif to find the following in a range:
Planning
Pilot Execution
Pilot Summary
Approval to Launch
That have a status of red or yellow
Is there anyone great at these who can help?
This is what I have so far:
=COUNTIFS(Sheet - Pilot and Readiness Pipeline - Pilot1, CONTAINS("1 - Planning",@cell), ({Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow"))
Note that the second part works: ({Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow"))
I can't figure out how to combine the two criteria.
Thanks a million!
Answers
-
I hope you're well and safe!
Can you share some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help.
I hope that helps!
Be safe, and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Give this a try (looks like you either forgot to create that first cross sheet reference or forgot to include the curly brackets on either side):
=COUNTIFS({Sheet - Pilot and Readiness Pipeline - Pilot1}, CONTAINS("1 - Planning",@cell), {Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow")
-
Thank you! Yes, you were right about the curly brackets! : ) Now I can see all rows in a Planning stage that are red or yellow. Is it possible to add additional stages? So, something like this?
=COUNTIFS(Sheet - Pilot and Readiness Pipeline - Pilot1, CONTAINS("1 - Planning",@cell) CONTAINS("3 - Pilot Execution,@call), ({Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow"))
It doesn't like me trying to add another stage to evaluate against - I have 3 to include
1 - Planning
3 - Pilot Execution
4 - Pilot Summary
-
Wait, I think I got it - I just do this:
=COUNTIFS({Sheet - Pilot and Readiness Pipeline - Pilot1}, CONTAINS("1 - Planning", @cell), {Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow")) + COUNTIFS({Sheet - Pilot and Readiness Pipeline - Pilot1}, CONTAINS("3 - Pilot Execution", @cell), {Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow")) + COUNTIFS({Sheet - Pilot and Readiness Pipeline - Pilot1}, CONTAINS("4 - Pilot Summary", @cell), {Pilot and Launch Pipeline Status}, OR(@cell = "red", @cell = "yellow"))
-
You COULD do that, or you can save yourself some typing and just use another OR the same way you did with the two colors.
-
THANK YOU!! You have been super helpful!
-
Happy to help. 👍️
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!