How do I exclude values from a COUNTIFS expression?
Hello All,
I am hoping someone can help me figure out - how do I get my formula to exclude specific status items from its count?
I am pretty new to formulas -
I would like my formula to count the number of statuses by type - and exclude any that are 'Cancelled' or 'Complete'
Here is what I have so far - I tried various things but haven't had any luck.
=COUNTIFS({Remediations Category}, "Other-Fac-Bldg", {Remediations Core OPCO}, "NSP", {Remediations Year}, "2021", {Remediations Status}, <>"Complete", {Remediations Status} <> "Cancelled")
Answers
-
@PKane When you say it doesn't work, are you receiving an error or is the value incorrect?
Darren Mullen, join the Smartsheet Guru Elite
Get my 7 Smartsheet tips here
Author of: Smartsheet Architecture Solutions
-
Hello @Darren Mullen ,
It's returning an #invalidoperation error instead of a result.
Not sure if it's throwing that error because of the result?
-
Hi @PKane
I hope you're well and safe!
Try changing "2021" to just 2021 because Smartsheet will read it as text otherwise.
Did that work/help?
I hope that helps!
Have a fantastic week & Happy Holidays!
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.
-
@Darren Mullen - I think I found it - I was missing a comma after the Remediation Status reference.
-
@PKane Ahh, good catch! Thanks for the follow up!
Darren Mullen, join the Smartsheet Guru Elite
Get my 7 Smartsheet tips here
Author of: Smartsheet Architecture Solutions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!