Count tasks due in the next 14 days with multiple status from another sheet
I am trying to reference another sheet and count the number of tasks that meet the following criteria:
Hieraracy@row should be Child
Status@row should be Not Started or In Progress
Finish@row (date) is in he next 14 days (from today)
I was successfully able to do the reverse (completed in the last 14 days) by using this:
=COUNTIFS({121 Task Status}, "Complete", {121 Task Hierarchy}, "Child", {121 Completed}, >=TODAY(-14))
I tried this but no go...
=COUNTIFS(OR({121 Task Status}, "Not Started", {121 Task Status}, "In Progress"), {121 Task Hierarchy}, "Child", {121 Finish Date}, <=TODAY(+14))
This worked but only showed me tasks specific to the singular status:
=COUNTIFS({121 Task Status}, "Not Started", {121 Task Hierarchy}, "Child", {121 Finish Date}, <=TODAY(+14))
I appreciate any help you can provide.
Best Answer
-
Hi @k.platt
This can be solved with a simple trick - counts two statuses separately and add them to get her:
=COUNTIFS({121 Task Status}, "Not Started", {121 Task Hierarchy}, "Child", {121 Finish Date}, <=TODAY(+14)) + COUNTIFS( {121 Task Status}, "In Progress", {121 Task Hierarchy}, "Child", {121 Finish Date}, <=TODAY(+14))
Let me know if this works?
Good Luck!
Tomasz Giba
Answers
-
Hi @k.platt
This can be solved with a simple trick - counts two statuses separately and add them to get her:
=COUNTIFS({121 Task Status}, "Not Started", {121 Task Hierarchy}, "Child", {121 Finish Date}, <=TODAY(+14)) + COUNTIFS( {121 Task Status}, "In Progress", {121 Task Hierarchy}, "Child", {121 Finish Date}, <=TODAY(+14))
Let me know if this works?
Good Luck!
Tomasz Giba
-
@Tomasz Giba - This did work! Thank you so much and I apologize for the late follow-up.
-
You can also use an OR inside of a COUNTIFS like so:
=COUNTIFS({121 Task Status}, OR(@cell = "Not Started", @cell = "In Progress"), ………………………….)
And if you only have 3 statuses such as Not Started, In Progress, or Complete, you can count everything that isn't Complete like so:
=COUNTIFS({121 Task Status}, @cell <> "Complete", ……………………………
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!