7

Hello all,

I am trying to set a formula up that adds the sum of several Parent lines, but only if they are positive.  Adding all parents under one banner i use the Sum(Children) however, I tried to add only positive parents by using a SumIf(Cell1:Cell5, >0, Cell1:Cell5) but in doing so only managed to add all positive numbers underneath the parent cell as well (which amounts to about a million dollar difference so little bit of an issue).  Does anyone know how I can set up, or even an exact formula that I can modify to make it only add up the positive parent cell amounts?

Comments

Hi Mike,

Can you maybe share some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, [email protected])

Have a fantastic weekend!

Best,

Andrée Starå

Workflow Consultant @ Get Done Consulting

In reply to by Andrée Starå

Andree,

The numbers in green are the numbers I want to add, I have expanded one of the parents so you can see the children underneath.  All rows with Blue on either side are parent rows whereas in the expanded child you can see white and gray to either side.

Mike

In reply to by MikeCorvin

Try something like this.

I've added a checkbox helper column where the cells are checked if it's a parent.

=SUMIFS(Amount:Amount; Amount:Amount; >0; Helper:Helper; 1)

The same version but with the below changes for your and others convenience.

=SUMIFS(Amount:Amount, Amount:Amount, >0, Helper:Helper, 1)

Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

Did it work?

Best,

Andrée

In reply to by MikeCorvin

Sorry, I forgot to add the following.

The Checkbox helper column is a checkbox type column that we're using to check if it's a parent. The box will get checked if it's a parent.

Try something like this.

=IF(COUNT(CHILDREN()) > 0; 1; 0)

The same version but with the below changes for your and others convenience.

=IF(COUNT(CHILDREN()) > 0, 1, 0)

Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

Did it work?

Best,

Andrée