summ if blank

Altamija

New Member
Joined
Nov 17, 2015
Messages
9
Hello,
Can someone please help me figure out a formula to calculate the sum of data in cells B5 + D5? If D5 is empty, use C5 to sum it with B5.

Thank you!
 
Hello! Is this what you wanted?
Book1
BCDE
5527
Sheet2
Cell Formulas
RangeFormula
E5E5=IF(D5<>"",B5+D5,B5+C5)
 
Upvote 0
I appreciate your help, but it seems it didn't work. Please see the image below: Column M still calculates just C5+B5.
 

Attachments

  • 2025-02-24_15-26-00.jpg
    2025-02-24_15-26-00.jpg
    40.2 KB · Views: 5
Upvote 0
In your fifth line in any situation, it will return zero. But in the ninth, with an empty cell D9, should be returned 70347
 
Upvote 0
Correct; I had an incorrect formation in column D, but the formula now works as intended. Thank you so much for the help.
 
Upvote 0
Solution

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