Stacked bar chart formula using COUNTIFS and HAS functions
I have created a helper sheet to use for building a stacked bar chart. The sheet data should count how many open tasks an individual is assigned to from two different sheets. Because there may be multiple contacts in an Assigned To column, I need to update this formula by adding HAS. I cannot get it to work correctly in this helper sheet.
My formula:
=COUNTIFS({Network General Operations Tasks Assigned To}, HAS($Person@row, {Network General Operations Tasks Status}, <>"Complete"))
The formula is delivering "0" as a result for Brian, when it should be 13 based on the sheet summary formula from the source sheet (Network General Operations Tasks):
Any ideas on what I'm missing here? Appreciate it!
Best Answer
-
Ah yes, one other thing missing - the range for the HAS function.
=COUNTIFS({Network General Operations Tasks Assigned To}, HAS(@cell,$Person@row), {Network General Operations Tasks Status}, <>"Complete")
Answers
-
Hi@Laura L
It looks like the closing parenthesis for your HAS is in the wrong place. Try moving it to the end of the first criteria (in bold here), instead of at the end of the formula.
=COUNTIFS({Network General Operations Tasks Assigned To}, HAS($Person@row), {Network General Operations Tasks Status}, <>"Complete")
Also FYI - your screen shot above shows Brian's full name in the formula. I think you can edit the post.
-
Thanks for your quick reply! I made the change you suggested and now I am getting an Incorrect Argument Set error.
-
Ah yes, one other thing missing - the range for the HAS function.
=COUNTIFS({Network General Operations Tasks Assigned To}, HAS(@cell,$Person@row), {Network General Operations Tasks Status}, <>"Complete")
-
This works beautifully, thank you so much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!