COUNTIFS with 3 ranges
I am creating Dashboard Metrics based on Status information in a sheet. The sheet has a Status Column, Parent Status Column and a helper Column "Parent" that is Zero if it has children records or if it has no children records.
If I use the below formula, my result is 2, which is correct for the "Status" column:
=COUNTIFS({Project List Range 5 Parent}, =0, {Project List Range 3 Status}, "Not Started")
If I use the below formula, my result is 10, which is correct for the "Parent Status" column:
=COUNTIFS({Project List Range 5 Parent}, =0, {Project List Range 6 Parent Status}, "Not Started")
However, if I combine them, my result is 0:
=COUNTIFS({Project List Range 5 Parent}, =0, {Project List Range 6 Parent Status}, "Not Started", {Project List Range 3 Status}, "Not Started")
I am looking for a result of 12, what am I missing?
Best Answer
-
Hi @kcaudill1989,
At best guess you don't have any rows which fit the merged criteria (but difficult to know without seeing some data).
If the 2 separate formulas are working and would give the correct total when added together you could use this rather than needing to combine into a single one.
=COUNTIFS({Project List Range 5 Parent}, =0, {Project List Range 3 Status}, "Not Started") + COUNTIFS({Project List Range 5 Parent}, =0, {Project List Range 6 Parent Status}, "Not Started")
Answers
-
Hi @kcaudill1989,
At best guess you don't have any rows which fit the merged criteria (but difficult to know without seeing some data).
If the 2 separate formulas are working and would give the correct total when added together you could use this rather than needing to combine into a single one.
=COUNTIFS({Project List Range 5 Parent}, =0, {Project List Range 3 Status}, "Not Started") + COUNTIFS({Project List Range 5 Parent}, =0, {Project List Range 6 Parent Status}, "Not Started")
-
That worked perfectly.
Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 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!