Forum Discussion
Deleted
May 30, 2018EXCEL
Hi, I want to use this code.. =IF(C2="","",SUM($C$2:C2)) but how do I change it so it is the sum of two columns added instead of one?
- Jun 01, 2018
If so, I suggest to use this formula instead:
=IF(AND(C2="",D2=""),"",SUM($C$2:D2))
Place it in cell E2, and copy it down.
I hope this helps you
Regards
Deleted
Jun 01, 2018I would still like to see the Total at E2 and E4. It would only show the total when i enter column C not column D.
Haytham Amairah
Jun 01, 2018Silver Contributor
If so, I suggest to use this formula instead:
=IF(AND(C2="",D2=""),"",SUM($C$2:D2))
Place it in cell E2, and copy it down.
I hope this helps you
Regards
- DeletedJun 02, 2018
If i would like Column D as a deduction what formula will I be using?
Sorry for so many questions...
- Haytham AmairahJun 02, 2018Silver Contributor
No problem.
Please try this formula to deduct the values in column D.
=IF(AND(C2="",D2=""),"",SUM($C$2:C2)-SUM($D$2:D2))
Regards