# formula not to return 0

#### ndendrinos

##### Well-known Member
How can I change this : =SUM(B17*E17)

And this : =SUM((G17)*(-\$G\$36))-(-G17)

not to show zero if referenced cells are blank (empty) using a similar formula : =IF(ISBLANK(A3),"",A3)

### Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try like this

=IF(OR(B17="",E17=""),"",B17*E17)

Thank you VoG
While waiting for help I discovered that if I do this:
Tools/Option/View & I uncheck "zero values" then the problem is solved.

Is there a down side doing it this way ?

Well it does not work so I'll use the formula offered here instead

Last edited:
The downside would be if you wanted to see if a particular cell contained 0.

This is not an issue here but might as well learn something today so I will try to apply your suggestion to this :
=SUM((G17)*(-\$G\$36))-(-G17)

Please do not further help for now.
Give me a week to try to figure it out ... then if you feel like please help.
Thank you again

I know...I know so it took less time than I thought ...

=IF(OR(G17="",\$G\$36=""),"",((G17)*(-\$G\$36))-(-G17))

Replies
3
Views
315
Replies
3
Views
203
Replies
3
Views
717
Replies
2
Views
265
Replies
2
Views
325

1,211,985
Messages
6,105,220
Members
447,957
Latest member
Basildon

### 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.

### Which adblocker are you using?

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

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