Countifs using cross sheet references
Hello,
I am trying to get a count of items with these Criteria
Stream = XXX
Window Start <>""
Survey Status = ""
Assignment Status =
Vendor Assigned
Vendor Scheduling
Late - requested update
This is the current formula I have which is populating a quantity of 0 (Actual count should be 325.
=COUNTIFS({Site Survey Stream}, $STREAM$1, {Window Start}, <>"", {Survey Status}, "", {Assignment Status}, "Vendor Assigned", {Assignment Status}, "Vendor Scheduling", {Assignment Status}, "Late - requested update")
Any help certainly would be very appreciated.
Sharon C.
Best Answers
-
This is the problem:
{Assignment Status}, "Vendor Assigned", {Assignment Status}, "Vendor Scheduling", {Assignment Status}, "Late - requested update"
Having range/criteria/range/criteria, AND is implied which means that triggering a count would mean the cell was equal to all 3 of those things at the same time which isn't possible. Try using an OR statement like so:
=COUNTIFS({Site Survey Stream}, $STREAM$1, {Window Start}, <>"", {Survey Status}, "", {Assignment Status}, OR(@cell = "Vendor Assigned", @cell = "Vendor Scheduling", @cell = "Late - requested update"))
-
you beat me to it nice answer
-
Make sure your formula is mimicking your filter. Your current formula currently states the the {Survey Review Date} must be greater than or equal to 6 Sept. AND 12 Sept. at the same time. I imagine one of those is probably supposed to be a less than.
Answers
-
This is the problem:
{Assignment Status}, "Vendor Assigned", {Assignment Status}, "Vendor Scheduling", {Assignment Status}, "Late - requested update"
Having range/criteria/range/criteria, AND is implied which means that triggering a count would mean the cell was equal to all 3 of those things at the same time which isn't possible. Try using an OR statement like so:
=COUNTIFS({Site Survey Stream}, $STREAM$1, {Window Start}, <>"", {Survey Status}, "", {Assignment Status}, OR(@cell = "Vendor Assigned", @cell = "Vendor Scheduling", @cell = "Late - requested update"))
-
you beat me to it nice answer
-
One more Question:
Once again Mr. Newcome, you are Johnny on the Spot. Thank you so much. I have another issue:
Have the following formula:
=COUNTIFS({Site Survey Stream}, $STREAM$14, {Survey Status}, "Green", {Survey Reviewed Date}, >=(DATE(2020, 9, 6)), {Survey Reviewed Date}, >=(DATE(2020, 9, 12)))
Coming up with a sum of 0, but when I apply the filter on the source sheet it is showing a quantity of 7, what am I doing wrong?
Thank you
-
Oh and the total was correct without drilling down to the date range.
-
Make sure your formula is mimicking your filter. Your current formula currently states the the {Survey Review Date} must be greater than or equal to 6 Sept. AND 12 Sept. at the same time. I imagine one of those is probably supposed to be a less than.
-
Thank you so much. I was looking at that formula way too long and couldn't see the obvious. Fresh eyes make all the difference
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 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!