How do you exclude a specific status from another sheet in a formula?
Hello!
I'm having trouble finding a way to exclude a status from this formula:
=IF([Total on PTO]@row < 2, "Under Limit", IF([Total on PTO]@row = 2, "At Limit", "Over Limit"))
It's referencing another sheet for PTO requests. The limit is including requests that have been withdrawn, but we don't count those as the actual number of people on PTO.
On the request sheet the formula is referencing, there is a column titled Status and one of the options is Withdrawn. I'm not sure what to put in the formula so it will exclude the withdrawn statuses.
Any help is appreciated!
Answers
-
Hi @Tknouse
The adjustment would need to be made to the formula that's in your [Total on PTO] column. Do you know what this formula is?
It sounds like it might be a COUNTIF formula or COUNTIFS (plural).
If it's COUNTIF, you'll just want to add the S to the end and then add in another cross-sheet range (the Status column in your other sheet) and another criteria (that the status is NOT "Withdrawn").
E.g:
=COUNTIFS({Column 1 range}, "First Criteria", {Status Column}, <> "Withdrawn")
This will exclude the Withdrawn column from the count in your [Total on PTO] cell, so that your current formula will calculate correctly.
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 140 Just for fun
- 57 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!