formula not to return 0

ndendrinos

Well-known Member
Joined
Jan 17, 2003
Messages
1,694
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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try like this

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

ndendrinos

Well-known Member
Joined
Jan 17, 2003
Messages
1,694
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:

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
The downside would be if you wanted to see if a particular cell contained 0.
 

ndendrinos

Well-known Member
Joined
Jan 17, 2003
Messages
1,694
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
 

ndendrinos

Well-known Member
Joined
Jan 17, 2003
Messages
1,694
I know...I know so it took less time than I thought ...

=IF(OR(G17="",$G$36=""),"",((G17)*(-$G$36))-(-G17))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,651
Messages
5,838,586
Members
430,557
Latest member
MK15

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
Top