A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Zero and Null Sum Function



 
 
Thread Tools Display Modes
  #1  
Old May 12th, 2010, 09:05 PM posted to microsoft.public.excel.worksheet.functions
Frustrated by Averages[_2_]
external usenet poster
 
Posts: 7
Default Zero and Null Sum Function

I have the following formula in place:
=IF(SUM(I14:N14)1,SUM(I14:N14),"")

The problem I have is when zeros are legitimately entered in the reference
fields the sum formula leaves the cell blank instead of summing the cells
across to display a zero.

In essence how do I get the field to be blank when the reference cells are
blank and display a zero when the reference fields are filled with zeros?

I am sure it is simple, but my brain is locked up!
Thanks for your help in advance.

  #2  
Old May 12th, 2010, 09:27 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Zero and Null Sum Function

Perhaps you intended to say not
=IF(SUM(I14:N14)1,SUM(I14:N14),"")
but
=IF(COUNT(I14:N14)1,SUM(I14:N14),"")
or
=IF(COUNT(I14:N14)=0,"",SUM(I14:N14)) ?
--
David Biddulph


"Frustrated by Averages"
wrote in message ...
I have the following formula in place:
=IF(SUM(I14:N14)1,SUM(I14:N14),"")

The problem I have is when zeros are legitimately entered in the reference
fields the sum formula leaves the cell blank instead of summing the cells
across to display a zero.

In essence how do I get the field to be blank when the reference cells are
blank and display a zero when the reference fields are filled with zeros?

I am sure it is simple, but my brain is locked up!
Thanks for your help in advance.


  #3  
Old May 12th, 2010, 09:33 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Zero and Null Sum Function

Try this...

=IF(COUNT(I14:N14),SUM(I14:N14),"")

--
Biff
Microsoft Excel MVP


"Frustrated by Averages"
wrote in message ...
I have the following formula in place:
=IF(SUM(I14:N14)1,SUM(I14:N14),"")

The problem I have is when zeros are legitimately entered in the reference
fields the sum formula leaves the cell blank instead of summing the cells
across to display a zero.

In essence how do I get the field to be blank when the reference cells are
blank and display a zero when the reference fields are filled with zeros?

I am sure it is simple, but my brain is locked up!
Thanks for your help in advance.



  #4  
Old May 12th, 2010, 11:19 PM posted to microsoft.public.excel.worksheet.functions
Frustrated by Averages[_2_]
external usenet poster
 
Posts: 7
Default Zero and Null Sum Function

That worked. Thanks for your help!

"David Biddulph" wrote:

Perhaps you intended to say not
=IF(SUM(I14:N14)1,SUM(I14:N14),"")
but
=IF(COUNT(I14:N14)1,SUM(I14:N14),"")
or
=IF(COUNT(I14:N14)=0,"",SUM(I14:N14)) ?
--
David Biddulph


"Frustrated by Averages"
wrote in message ...
I have the following formula in place:
=IF(SUM(I14:N14)1,SUM(I14:N14),"")

The problem I have is when zeros are legitimately entered in the reference
fields the sum formula leaves the cell blank instead of summing the cells
across to display a zero.

In essence how do I get the field to be blank when the reference cells are
blank and display a zero when the reference fields are filled with zeros?

I am sure it is simple, but my brain is locked up!
Thanks for your help in advance.


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.