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
- Smartsheet Customer Resources
- 62.2K Get Help
- 360 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!