Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Geo
 
Posts: n/a
Default How do I make this display a "0" value

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?
--
Geo
  #2   Report Post  
Dave O
 
Posts: n/a
Default

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.

  #3   Report Post  
Geo
 
Posts: n/a
Default

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

"Dave O" wrote:

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.


  #4   Report Post  
Dave O
 
Posts: n/a
Default

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?


Geo wrote:
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".

"Dave O" wrote:

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.



  #5   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
=IF(COUNT(G9:G17),SUM(G9:G17,-36),0)

or maybe
=MAX(0,SUM(G9:G17,-36))

--
Regards
Frank Kabel
Frankfurt, Germany
"Geo" schrieb im Newsbeitrag
...
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?
--
Geo





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make a 3-dimensional plot in Excel? John W. Mordosky Charts and Charting in Excel 6 April 3rd 23 06:58 PM
make a cell empty based on condition mpierre Charts and Charting in Excel 2 December 29th 04 01:01 PM
How to make a formula display results only if value is greater tha superfooz74 Excel Discussion (Misc queries) 5 December 28th 04 12:40 PM
How to make this plot? springwinterfall Charts and Charting in Excel 2 December 22nd 04 07:35 PM
Conditional display of a .jpeg file? sbhogle Excel Discussion (Misc queries) 2 November 30th 04 05:57 AM


All times are GMT +1. The time now is 09:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"