Group:  Microsoft Excel ยป microsoft.public.excel
Thread: Stop Sum blanks

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Stop Sum blanks
renee 21.09.2006 15:10:02
I am using the Sum function. My range has blank cells. I am entering 0 for
No. If I get a Sum of 0 then I have an answer of False. But how do I stop
Excel from displaying 0 when the range of cells is left blank?
Re: Stop Sum blanks
Dave Peterson <petersod[ at ]verizonXSPAM.net> 21.09.2006 15:31:50
Maybe...

This checks for at least one number in A1:A10:
=if(count(a1:a10)=0,"No Values",sum(a1:a10))

This checks for numbers in all of the cells in A1:A10
=if(count(a1:a10)<10,"Some Numbers Missing",Sum(a1:A10))





renee wrote:
[Quoted Text]
>
> I am using the Sum function. My range has blank cells. I am entering 0 for
> No. If I get a Sum of 0 then I have an answer of False. But how do I stop
> Excel from displaying 0 when the range of cells is left blank?

--

Dave Peterson
Re: Stop Sum blanks
renee 21.09.2006 16:15:01
Dave,

I played around with the formulas that you gave me and came up with
=IF(SUM(G1,I1,K1)=0,"",SUM(G1,I1,K1))

When G1,I1,K1 are blank, I get a blank cell instead of 0. This is what I
want. However, when G1,I1,K1 have a value of 1, I also get a blank cell.
What can I do to get the latter part of the formula to SUM.

"Dave Peterson" wrote:

[Quoted Text]
> Maybe...
>
> This checks for at least one number in A1:A10:
> =if(count(a1:a10)=0,"No Values",sum(a1:a10))
>
> This checks for numbers in all of the cells in A1:A10
> =if(count(a1:a10)<10,"Some Numbers Missing",Sum(a1:A10))
>
>
>
>
>
> renee wrote:
> >
> > I am using the Sum function. My range has blank cells. I am entering 0 for
> > No. If I get a Sum of 0 then I have an answer of False. But how do I stop
> > Excel from displaying 0 when the range of cells is left blank?
>
> --
>
> Dave Peterson
>
Re: Stop Sum blanks
renee 21.09.2006 16:20:02
Dave,

I figured it out. The formula is right. I made a mistake with cell
references. Thanks for your help.

"Dave Peterson" wrote:

[Quoted Text]
> Maybe...
>
> This checks for at least one number in A1:A10:
> =if(count(a1:a10)=0,"No Values",sum(a1:a10))
>
> This checks for numbers in all of the cells in A1:A10
> =if(count(a1:a10)<10,"Some Numbers Missing",Sum(a1:A10))
>
>
>
>
>
> renee wrote:
> >
> > I am using the Sum function. My range has blank cells. I am entering 0 for
> > No. If I get a Sum of 0 then I have an answer of False. But how do I stop
> > Excel from displaying 0 when the range of cells is left blank?
>
> --
>
> Dave Peterson
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net