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
Check out the Formula Handbook template!