Using COUNTIFS when two different ranges
I need a count of items with program = "VRN - Website" but do not count the ones with status = DONE OR NEW
=COUNTIFS({Programs}, "VRN - Website", NOT [{Status}, "Done" OR "New"])
What am I doing incorrect?
Best Answer
-
Try this. You want to indicate that the second range, {Status}, cannot be "Done" AND cannot be "New".
=COUNTIFS({Programs}, "VRN - Website", {Status}, AND(@cell <> "Done", @cell <> "New"))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Try this. You want to indicate that the second range, {Status}, cannot be "Done" AND cannot be "New".
=COUNTIFS({Programs}, "VRN - Website", {Status}, AND(@cell <> "Done", @cell <> "New"))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Quick Update:
So I can get it to work this way: =COUNTIFS({Programs}, "VRN - Website", {Status}, "Done")
However, when I add NOT it breaks, plus I can't get it to use the AND either.
-
So, if I use =COUNTIFS({Programs}, "VRN - Website", {Status}, "<>Done") it does not count the records with Status = Done, however, I can't find a way for it to not to include "New" status.
-
@Jeff Reisman THANK YOU! That worked.
-
This WILL work, provided your {Programs} and {Status} ranges reference the whole columns in your remote sheet.
=COUNTIFS({Programs}, "VRN - Website", {Status}, AND(@cell <> "Done", @cell <> "New"))
Here it is working in my test sheet, albeit with column ranges from the same sheet:
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.1K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 443 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 450 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 290 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!