Project Status Formula Help

I have a formula I need help with for the top level of my project checklist hierarchy.
- Overall Project Status - this is looking only at the highest level rows which are indicated by the helper column Hierarchy=0.
- The objective of the formula is as follows:
- If the Project Override field (in the Sheet Summary) is filled out = Display that value
- If the Project Override field is blank - then look at all parent rows where the following is true:
- "Default Filter" column is checked AND
- "Summary" column is not checked AND
- "Hierarchy" column = 0 THEN
- Look at "Status" column
- If all the rows say "Completed" > Project Status: Complete
- If all rows say "Not Started" > Project Status: Planning
- If any row says "In Progress" > Project Status: Active
- The objective of the formula is as follows:
This is the current formula we have that does not appear to be working:
Formula =IF([Project Status Override]# <> "", [Project Status Override]#, IF(AND(COUNTIFS([Tasks Needed]:[Tasks Needed], 0, Summary:Summary, 0, Hierarchy:Hierarchy, >0, Status:Status, OR(@cell="Completed", @cell="Cancelled")) = COUNTIFS([Tasks Needed]:[Tasks Needed], 0, Summary:Summary, 0, Hierarchy:Hierarchy, >0)), "Complete", IF(AND(COUNTIFS([Tasks Needed]:[Tasks Needed], 0, Summary:Summary, 0, Hierarchy:Hierarchy, >0, Status:Status, "Not Started") = COUNTIFS([Tasks Needed]:[Tasks Needed], 0, Summary:Summary, 0, Hierarchy:Hierarchy, >0)), "Planning", "Active")))
Best Answers
-
Right. Ok. So I would put all the extra stuff on another sheet (or just let users know where how to find it in the Control Center sheet).
Then I would move the two piece for the filter into sheet summary fields. This will allow you to completely get rid of the entire top section from that sheet. This will also allow for much simpler formulas and negate a lot of the risk of circular references.
-
Not directly. You would have it linked into another sheet (most likely the one that has the rest of the data). Then you can write a basic formula with a cross sheet reference in the Summary field that pulls in just that one cell.
=INDEX({Reference to single cell}, 1)
Answers
-
Give this a try:
=IF([Project Override]# <> "", [Project Override]#, IF(COUNT(DISTINCT(COLLECT(Status:Status, [Default Filter]:[Default Filter], @cell = 1, Summary:Summary, @cell <> 1, Hierarchy:Hierarchy, @cell = 0))) = 1, INDEX(COLLECT(Status:Status, [Default Filter]:[Default Filter], @cell = 1, Summary:Summary, @cell <> 1, Hierarchy:Hierarchy, @cell = 0), 1), "In Progress"))
Double check field / column names are correct. I noticed there are some differences between your description and the actual formula.
-
You're right- "Project Override" is actually "Project Status Override" but when I tried that it gave me a Circular Reference. I double-checked all of the other column names.
-
-
Please see screenshots below where I have marked off each of the columns that is used in the formula. thank you!
Status Column & Project Status Override
Default Filter
Summary & Hierarchy
-
What are the formulas you have in each of those referenced columns?
-
In the Default Filter column:
=IF([Summary Metric / Nav]@row = 1, 1, IF([Summary Blank]@row = 1, 1, IF([Sub-Type Needed]@row = 1, 1, IF([Tasks Needed]@row = 1, 1, 0))))
In the Hierarchy column:
=COUNT(ANCESTORS())
-
What about formulas in cells being referenced by the [Default Filter] column?
What is the reason for this section? Is it possible to move it to a separate sheet?
-
Our solution was built by Smartsheet but some things have changed and the formulas are not working anymore - the default filter column is a helper column - when a new project is submitted via an intake form, this checklist is created and depending on what items have been picked in Project Type / Subtype (profile data) the applicable rows will be checked and appear when the Default filter is applied (which it always is by default). I don't think we could move this to a separate sheet because it determines the parameters of the filter.
The formulas in the columns it references are as follows:
Summary / Metric Nav - No formula, checkbox column
Summary Blank - =IF([Summary Metric / Nav]@row = 1, 0, IF(AND(ISBLANK(Notes@row), Summary@row = 1), 0, IF(AND(Notes@row <> "", Summary@row = 1), 1)))
- I believe this one is saying that if any of the profile data fields are blank (because they were not filled in the intake sheet) then they shouldn't be displayed at the top of the checklist.
Sub-Type Needed: =IF(CONTAINS([Sub-Type Template]@row, [Project Sub-Type]@row), 1, 0)
Tasks Needed: =IF(COUNTIF([Sub-Type Needed]:[Sub-Type Needed], 1) > 0, 0, IF(CONTAINS(Template@row, [Project Type]@row), 1, 0))
-
It honestly seems as if it was built to be way more complex than it really needed to be. This whole top section is determining filter parameters?
-
It is definitely too complex for me :). The filter parameters determine which checklist rows show up - so if I submit a project it is Project Type: marketing and Marketing Subtype: Social Media,, then the rows that match Marketing / Social Media in the checklist are going to display when the Default filter is applied. I'm including some screenshots below in case that helps illuminate anything:
-
So it is just the project type and subtype that drive the filter. What about the rest of that top section? The part I assume is being checked as "Summary"?
-
The Summary info is being pulled in via cell link from a Profile Data sheet that is created in control center when a new project is provisioned. Only the Summary items that contain content are displayed on the checklist (the purpose of the Summary Blank helper column) and I assume the Summary checkbox column itself is to keep those items out of the various formulas and reports that are based on the status of the checklist items. Does that help at all?
-
Do those things need to actually be in that particular sheet?
-
I suppose it could be in another sheet generated in the same project folder - but we would still have to bring in at least the Project Type and Subtype cell links from the profile data because that's what drives the formula for which tasks display.
-
Right. Ok. So I would put all the extra stuff on another sheet (or just let users know where how to find it in the Control Center sheet).
Then I would move the two piece for the filter into sheet summary fields. This will allow you to completely get rid of the entire top section from that sheet. This will also allow for much simpler formulas and negate a lot of the risk of circular references.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!