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 at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
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 at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now -
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
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 429 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!