How do I make this display a "0" value

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In Cell G18 I have the formula =SUM(G9:G17,-36) but the cells G9-G17 are
blank yet G18 displays a -36 value. I know this must be simple but is there a
way to get the G18 cell to display a "0" value if the cells G9-G17 are blank?
 
One way to do it is to use an IF() function:
=IF(SUM(G9:G17)=0,0,SUM(G9:G17,-36))

This instructs Excel to return a zero value if the sum of cells g9 thru
g17 is zero, and performs your original SUM(G9:G17,-36) operation if
the sum is not zero.
 
Hi
=IF(COUNT(G9:G17),SUM(G9:G17,-36),0)

or maybe
=MAX(0,SUM(G9:G17,-36))
 
This solution worked great but I still have a problem in another area. This
formula in G35 generates a number when the cell G32 is
"0"=SUM(G32,-69.4*113/119) which is probably what I'm telling it to do.
(Doing the formula on my calculator yields -65.9008 which is what excell G35
does.) I have tried substituting my other fix(Below) but am having trouble
making it also display "0".
 
Not sure I follow you: you want g35 to return 0 when g32 = 0? If
that's the case another IF() function can do it for you:

=IF(g32=0,0,SUM(G32,-69.4*113/119))

Is that what you need?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sum all sheets if Column L 3
change of cells address 11
getting rid of a #Div/0! error 2
Need a help display 0 value 2
Correcting formula 1
noncontiguous cells 2
Formula copy and paste problem 1
Formula showing zero's 12

Back
Top