Page 1 of 1

[Solved] Add value in col unless empty

Posted: Thu Jul 18, 2019 2:46 am
by swmwshrk
I need a formula that will add the values in cells D9:D11 if the cell contains a value. If the cell is empty Then I need the value in column c same row to be used instead.

Column C contains # of hours scheduled
Column D contains # of hours used.

So if D9:D14 contain a value, and D15:D17 are empty I want a formula that will do this,,....
=sum(D9:D14+C15:C17)

But if I input a value into D15 i want the value to update to....
=sum(D9:D15+C16:C17)

Thanks

Re: Need formula to add value in col d unless empty then use

Posted: Thu Jul 18, 2019 3:19 am
by FJCC
Try

Code: Select all

=SUMPRODUCT(ISBLANK(D9:D17) * C9:C17) +SUM(D9:D17)

Re: Need formula to add value in col d unless empty then use

Posted: Sat Jul 20, 2019 1:07 am
by swmwshrk
That did exactly what I needed. Thank you.