Do not calculate formula if there are blank cells

himderfella

New Member
Joined
Feb 7, 2020
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
My absence has been a while. Currently I am attempting to calculate a value using Deposit amount & Expense amount columns with result in column E. Formula =SUM(E20-D21+C21) & it works in part. When I copy the formula down column E it shows the correct result which is the last value in column E (Account Balance).
But I need it to show blank (the worksheet has been changed to not show zeros) if values in both columns C & D are blank & without carrying forward the last value in column E.
My efforts using ISBLANK & IFBLANK have drawn a blank.
Any assistance is much appreciated.
Merry Christmas & A Happy & healthy New Year.
Cheers
Chris
 

Attachments

  • Picture0004.png
    Picture0004.png
    29.6 KB · Views: 24

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Do you mean something like
Excel Formula:
=IF(AND(C22="",D22=""),"",SUM(E20-D21+C21))
or
Excel Formula:
=IF(AND(C22="",D22=""),"",E20-D21+C21)

P.S.
If you can, please use the boards XL2BB to post screenshots rather than images as we can't copy them into Excel and most won't retype your data
 
Upvote 0
Solution
Thanks Mark858 your second formula worked a treat. Thanks very much. Cheers Chris
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top