Multiple formulae per column based on another column value

Hi,
I currently use the level column to automatically assign a level number based on the indent value of status of the parent rows. Child rows remain blank in this column.
In the % Planned column I use two formulae to calculate where my project is meant to be:
Parent rows use =IFERROR(AVGW(CHILDREN(), CHILDREN(Duration@row)), 0)
Child rows use =IF(TODAY() > Finish@row, 1, IF(TODAY() < Start@row, 0, ((NETWORKDAY(Start@row, TODAY()) / (NETWORKDAY(Start@row, Finish@row))))))
The problem that I am facing is that these formulae need to be manually input at the start of a project or when new rows are added to an existing project. This is fine if I am the person editing as I know what needs to be done, but is causing problems when other users edit a project plan.
My question is as follows:
Is there a way that I can use the level column status to automatically assign the parent or child row formula? e.g. If Level@row is blank, apply the child row formula, or if Level@row is not blank, apply the parent row formula?
I've been messing around with it but cannot make it work. Appreciate any help.
Best Answer
-
Hi @John Kelly
This should do the trick
=IF(ISBLANK(Level@row),IF(TODAY() > Finish@row, 1, IF(TODAY() < Start@row, 0, ((NETWORKDAY(Start@row, TODAY()) / (NETWORKDAY(Start@row, Finish@row)))))),IFERROR(AVGW(CHILDREN(), CHILDREN(Duration@row)), 0)
Hope that helps
Thanks
Paul
Answers
-
Hi @John Kelly
This should do the trick
=IF(ISBLANK(Level@row),IF(TODAY() > Finish@row, 1, IF(TODAY() < Start@row, 0, ((NETWORKDAY(Start@row, TODAY()) / (NETWORKDAY(Start@row, Finish@row)))))),IFERROR(AVGW(CHILDREN(), CHILDREN(Duration@row)), 0)
Hope that helps
Thanks
Paul
-
Hi Paul,
Talk about not seeing the wood for the trees!!! That worked perfect, thanks for the help. I was overthinking it altogether.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 452 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!