How do I add additional criteria to formula?
I have a section in my sheet summary that counts the number of requests currently in process. The formula I used counts the item if the Request ID is not blank and the status is not "Completed". I would also like the formula to not include items with the status "Not Applicable". How would I revise the formula?
Current formula: =COUNTIFS(Status:Status, NOT(@cell = "Completed"), [Request ID]:[Request ID], NOT(ISBLANK(@cell)))
Additionally, I would like the Total Requests Received to not count those with the status "Not Applicable". Current formula: =COUNT([Request ID]:[Request ID])
Any guidance is much appreciated,
Sara
Best Answer
-
It sounds like you want the formula to capture items where the Request ID is not blank and the Status is neither "Completed" nor "Not Applicable." Is that right? You want the OR function for this case: https://help.smartsheet.com/function/or.
=COUNTIFS(Status:Status, NOT(OR(@cell = "Completed", @cell = "Not Applicable")), [Request ID]:[Request ID], NOT(ISBLANK(@cell)))
I hope that helps!
Amber Eakin, MSLS, M.Ed.
Adult Education Specialist | Process Improvement Enthusiast
Answers
-
It sounds like you want the formula to capture items where the Request ID is not blank and the Status is neither "Completed" nor "Not Applicable." Is that right? You want the OR function for this case: https://help.smartsheet.com/function/or.
=COUNTIFS(Status:Status, NOT(OR(@cell = "Completed", @cell = "Not Applicable")), [Request ID]:[Request ID], NOT(ISBLANK(@cell)))
I hope that helps!
Amber Eakin, MSLS, M.Ed.
Adult Education Specialist | Process Improvement Enthusiast
-
Awesome! That captured what I wanted. I tried similar formulas, but I must have not had the syntax quite right.
Much appreciated!
-
My pleasure, @Sara Ross ! I'm glad it worked for you.
Amber Eakin, MSLS, M.Ed.
Adult Education Specialist | Process Improvement Enthusiast
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!