Either checkbox column to contribute to % complete
I am looking for a formula that will reference two checkbox columns to calculate a % complete if either is checked. I'd also like this formula to calculate an average % complete based on the % complete of the child tasks. This was working correctly when I was using only one checkbox column, but I am struggling to incorporate the second column into the formula.
Here was the correct function that only looked to the Done column.
=IF(COUNT(CHILDREN(Done@row)) > 0, (COUNTIF(CHILDREN(Done@row), 1) / COUNT(CHILDREN(Done@row))), IF(Done@row, 1, 0))
Here's what I'd like to do:
If the row is a parent row, calculate the average % complete of it's children. If the row is a child row, calculate 100% complete if Done is checked or N/A is checked.
Here is the formula I am currently using, I know the OR function is incorrect in some way.
=IF(COUNT(CHILDREN([Task Name]@row)) > 0, OR((COUNTIF(CHILDREN(Done@row), 1) / COUNT(CHILDREN(Done@row))), (COUNTIF(CHILDREN([N/A]@row), 1) / COUNT(CHILDREN([N/A]@row))))), IF(OR(Done@row = 1, [N/A]@row = 1), 1, 0)
Any advice on how to get this functional?
Best Answer
-
Try this:
=IF(COUNT(CHILDREN()) = 0, IF(OR(Done@row = 1, [N/A]@row = 1), 1, 0), AVG(CHILDREN()))
Answers
-
Try this:
=IF(COUNT(CHILDREN()) = 0, IF(OR(Done@row = 1, [N/A]@row = 1), 1, 0), AVG(CHILDREN()))
-
Thank you @Paul Newcome! That worked!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.4K Get Help
- 447 Global Discussions
- 144 Industry Talk
- 479 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 490 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!