COUNTIF formula counting specific criteria under a PARENT row
Hi All,
I have a shipping tracker I created for six different stages we're doing for a project. I need to create a graphical representation of the different statuses for each stage and type. The formula would read: Count of "delivered" for "POM to IHA" under "WW01, as one example. A separate formula would be Count of "In Transit" for "IHA to PA" under WW02. I've attached a picture of my table to show you what I'm referring to.
Thanks!
Brad
Answers
-
@Bradhickswa Look at using COUNTIF or COUNTIFS with CHILDREN() or DESCENDANTS() as the range in COUNTIF / COUNTIFS.
Darren Mullen, join the Smartsheet Guru Elite
Get my 7 Smartsheet tips here
Author of: Smartsheet Architecture Solutions
-
Hi @Darren Mullen,
Thank you for your response! Could you help me with how I would set up the formula? I tried doing it a number of ways with no positive result. The latest method was : =COUNTIFS({AB Shipping Status}, "In Transit", DESCENDANTS({WW02 Cross-Site} {AB Build Stage}), "POM to IHA")
-
@Bradhickswa In this formula: COUNTIFS({AB Shipping Status}, "In Transit", DESCENDANTS({WW02 Cross-Site} {AB Build Stage}), "POM to IHA"). I see some immediate issues.
- You are referencing ranges with curly braces indicating they are off sheet references?
- You can't have 2 references in the Descendants function, and they should not be off-sheet references, you'll need to use an on sheet column in brackets []
Darren Mullen, join the Smartsheet Guru Elite
Get my 7 Smartsheet tips here
Author of: Smartsheet Architecture Solutions
-
@Bradhickswa this video I made a while back shows an example ok using the descendants function.
Darren Mullen, join the Smartsheet Guru Elite
Get my 7 Smartsheet tips here
Author of: Smartsheet Architecture Solutions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!