Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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.


.

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
Failed to save table attributes of (null) into (null). Luca Brasi Excel Discussion (Misc queries) 2 February 4th 09 04:30 PM
how to get a function to return a null value that passes the ISBL. Hawk Excel Worksheet Functions 7 March 5th 08 05:59 AM
IF function and null cell value DAllen Excel Worksheet Functions 2 February 19th 07 04:48 PM
How do you change a NULL value to a Zero when using =MID function? Derek Excel Discussion (Misc queries) 6 July 28th 06 12:09 AM
How do I set a result of an "if" function to NULL; not 0 or ""? mbrockhaus Excel Worksheet Functions 5 May 16th 05 06:59 PM


All times are GMT +1. The time now is 01:49 AM.

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

About Us

"It's about Microsoft Excel"