Children Parent % not calculating
Hello,
I'm trying to build a sheet that calculates a percentage off of a Status column, but the column is not returning a percentage and the =AVG(Children) section. This is my mess of a formula
=IF(IsParent@row = 0, IF(OR([Rally Status]@row = "Submitted", [Rally Status]@row = "Acknowledged", [Rally Status]@row = "Not Started/Backlogged", [Rally Status]@row = "0", [Rally Status]@row = "Defined/Ready"), ".15", (IF([Rally Status]@row = "In Development", ".25", (IF(OR([Rally Status]@row = "QA Testing", [Rally Status]@row = "UAT Testing", [Rally Status]@row = "Customer Testing"), ".5", (IF([Rally Status]@row = "Prod Ready", ".8", (IF([Rally Status]@row = "Completed", "1", (IF([Rally Status]@row = "Canceled", "0", (IF([Rally Status]@row = "On Hold", "0", "0"))))))))))))), =AVG((CHILDREN())))
Here is a screenshot of the Sheet.
Any help or a better solution is much appreciated.
Best Answer
-
A couple of things to note here. First of all, if you're looking to return a percent, you'll want to use decimals as you've done, however take away the "quotes" around the numbers. Quotes will turn numbers into text and so your % formatting won't be applied:
=IF(IsParent@row = 0, IF(OR([Rally Status]@row = "Submitted", [Rally Status]@row = "Acknowledged", [Rally Status]@row = "Not Started/Backlogged", [Rally Status]@row = "0", [Rally Status]@row = "Defined/Ready"), 0.15, < like this
You'll notice that in your Child cells the numbers appear on the left of the cell. This indicates that they're seen as Text (because of the "quotes"), which also means they cannot be Averaged.
See: Frequently asked questions about using formulas
Secondly, with the =AVG(CHILDREN at the end of the formula, make sure you remove the = sign. You will only want that at the very start of the entire formula, or as a logic statement (like this = that).
Try This:
=IF(IsParent@row = 0, (IF(OR([Rally Status]@row = "Submitted", [Rally Status]@row = "Acknowledged", [Rally Status]@row = "Not Started/Backlogged", [Rally Status]@row = "0", [Rally Status]@row = "Defined/Ready"), 0.15, IF([Rally Status]@row = "In Development", 0.25, IF(OR([Rally Status]@row = "QA Testing", [Rally Status]@row = "UAT Testing", [Rally Status]@row = "Customer Testing"), 0.5, IF([Rally Status]@row = "Prod Ready", 0.8, IF([Rally Status]@row = "Completed", 1, IF([Rally Status]@row = "Canceled", 0, IF([Rally Status]@row = "On Hold", 0, 0)))))))), AVG(CHILDREN()))
Cheers,
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Answers
-
It is worth mentioning I do have the percentage button clicked for the column.
-
A couple of things to note here. First of all, if you're looking to return a percent, you'll want to use decimals as you've done, however take away the "quotes" around the numbers. Quotes will turn numbers into text and so your % formatting won't be applied:
=IF(IsParent@row = 0, IF(OR([Rally Status]@row = "Submitted", [Rally Status]@row = "Acknowledged", [Rally Status]@row = "Not Started/Backlogged", [Rally Status]@row = "0", [Rally Status]@row = "Defined/Ready"), 0.15, < like this
You'll notice that in your Child cells the numbers appear on the left of the cell. This indicates that they're seen as Text (because of the "quotes"), which also means they cannot be Averaged.
See: Frequently asked questions about using formulas
Secondly, with the =AVG(CHILDREN at the end of the formula, make sure you remove the = sign. You will only want that at the very start of the entire formula, or as a logic statement (like this = that).
Try This:
=IF(IsParent@row = 0, (IF(OR([Rally Status]@row = "Submitted", [Rally Status]@row = "Acknowledged", [Rally Status]@row = "Not Started/Backlogged", [Rally Status]@row = "0", [Rally Status]@row = "Defined/Ready"), 0.15, IF([Rally Status]@row = "In Development", 0.25, IF(OR([Rally Status]@row = "QA Testing", [Rally Status]@row = "UAT Testing", [Rally Status]@row = "Customer Testing"), 0.5, IF([Rally Status]@row = "Prod Ready", 0.8, IF([Rally Status]@row = "Completed", 1, IF([Rally Status]@row = "Canceled", 0, IF([Rally Status]@row = "On Hold", 0, 0)))))))), AVG(CHILDREN()))
Cheers,
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
-
That worked perfectly! I didn't know about " " making things text and that'll actually help with some other formulas I'm building too! Thank you for the assistance!
-
I had the same issue, once I knew the dependencies and predecessors were all set up, I made sure to put start and end dates in, that made the difference and the % percentage calc finally worked syncing child and parent %.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!