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")
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
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.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
THANK YOU!! You have been super helpful!
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!