Summary Sheet Formula - counting live projects
We use a small project control sheet to manage all the small works that come into the business. I want to create a formula in the Summary Sheet to counts only live projects.
The top row header "Archive" is a PARENT for completed projects - I do not want to count these.
For any projects that have not been archived, the Finish column cell in the PARENT would indicate any live projects, i.e. < TODAY. I would like the formula to count these and any new additions to the sheet.
Another column that may be useful in this process is the Project Number.
Best Answer
-
Yes. You can leverage that.
=COUNTIFS(Level:Level, 1, [Task Name]:[Task Name], @cell <> "Archive")
Answers
-
Are you able to provide a screenshot that shows the layout?
-
Do you only want to count the parent rows, or do you want to include the child rows in your count as well?
-
This formula is just for counting how many projects are "live" (and not archived, which would mean they are complete).
-
Right, but I see that the grey rows also have child rows underneath of them. Do you want to count those children or just the grey rows? If just the grey rows, do their children have the [Project Number] column populated? What about the child rows under the Archive parent? Do they have the [Project Number] column populated?
-
Yes the child rows of both active and archive have the project number column populated. The parent shows which project it is, the children shows the states of the project, which vary in formatting. Most have Enquiry through to Close Out, but others have just the task rows for very small jobs. Therefore, I think it is practical just to count the grey rows as this contains the project name, number and calculates the start to end dates from the children it relates to.
-
In That case we are going to want to insert a column that will automatically determine which rows to count and then count this new column. Using a text/number column (that can later be hidden to keep the sheet looking clean) it would look something like this...
=IF(AND(COUNT(ANCESTORS([Task Name]@row)) = 0, [Task Name]@row <> "Archive"), 1)
Then you can either use a COUNT or SUM function on this new column.
-
Ah I already have a column [Level] for formatting the parent/children rows (formula below). Could I use that?
=IF(COUNT(CHILDREN([Task Name]@row)) > 0, COUNT(ANCESTORS()) + 1)
-
Yes. You can leverage that.
=COUNTIFS(Level:Level, 1, [Task Name]:[Task Name], @cell <> "Archive")
-
You are awesome! Thank you so much, formula now capturing accurate count.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!