# Formula column for Parent Rows only

Options
✭✭✭✭

Hello,

I want to use a formula column for parent rows that calculates the % remaining of POs we're tracking. I want the cells in the column for children to be blank and not display a result for % remaining. Is this possible? If so, can you assist me with the formula?

I am using this formula for the parent rows: =(Amount@row - Balance@row) / Amount@row but need to add in the logic to blank out the children row cells.

Thanks

## Best Answer

• ✭✭✭✭✭✭
Answer ✓
Options

Hi @BB2791

I hope you're well and safe!

Try something like this.

=IFERROR(IF(COUNT(CHILDREN([PO Number]@row)) > 0, (Amount@row - Balance@row) / Amount@row), "")

Did that work/help?

I hope that helps!

Be safe, and have a fantastic week!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

## Answers

• ✭✭✭✭✭✭
Answer ✓
Options

Hi @BB2791

I hope you're well and safe!

Try something like this.

=IFERROR(IF(COUNT(CHILDREN([PO Number]@row)) > 0, (Amount@row - Balance@row) / Amount@row), "")

Did that work/help?

I hope that helps!

Be safe, and have a fantastic week!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• ✭✭✭✭
Options

Hi @Andrée Starå yes, that worked! Thank you and have a nice day

• ✭✭✭✭
Options

Hi again @Andrée Starå I realized that I would like to add to the formula you provided a provision that if a parent row doesn't have a child row, it should still calculate the percentage (in which case that will always be 100%). Is that possible?

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!