PC Review


Reply
Thread Tools Rate Thread

a formula that leaves cell "empty"?

 
 
sarahmross
Guest
Posts: n/a
 
      11th Nov 2005

Is there such a formula that will leave a cell empty? Example: I use
the formula SUM(...) to add up orders...but, if there are no orders in
that category, then the cell will have the value of "0.0". Is there
any way to leave the cell blank (with the formula still in there) when
there are no orders? I really need help on this, it's driving me
mad!!! Any help would be sweet.

Thanks! -Sarah



--
sarahmross
------------------------------------------------------------------------
sarahmross's Profile: http://www.excelforum.com/member.php...o&userid=28725
View this thread: http://www.excelforum.com/showthread...hreadid=484179

 
Reply With Quote
 
 
 
 
Anne Troy
Guest
Posts: n/a
 
      11th Nov 2005
=if(isblank(a1),"",sum(a1:a5)) or perhaps =if(sum(a1:a5)=0,"",sum(a1:a5)

************
Anne Troy
VBA Project Manager
www.OfficeArticles.com

"sarahmross" <(E-Mail Removed)> wrote
in message news:(E-Mail Removed)...
>
> Is there such a formula that will leave a cell empty? Example: I use
> the formula SUM(...) to add up orders...but, if there are no orders in
> that category, then the cell will have the value of "0.0". Is there
> any way to leave the cell blank (with the formula still in there) when
> there are no orders? I really need help on this, it's driving me
> mad!!! Any help would be sweet.
>
> Thanks! -Sarah
>
>
>
> --
> sarahmross
> ------------------------------------------------------------------------
> sarahmross's Profile:
> http://www.excelforum.com/member.php...o&userid=28725
> View this thread: http://www.excelforum.com/showthread...hreadid=484179
>



 
Reply With Quote
 
 
 
 
Ken Puls
Guest
Posts: n/a
 
      11th Nov 2005
Hi there,

Try nesting your Sum formula within an If Formula

=If(Sum(A1:A10)=0,"",Sum(A1:A10))

--
Ken Puls
www.officearticles.com


"sarahmross" <(E-Mail Removed)> wrote
in message news:(E-Mail Removed)...
>
> Is there such a formula that will leave a cell empty? Example: I use
> the formula SUM(...) to add up orders...but, if there are no orders in
> that category, then the cell will have the value of "0.0". Is there
> any way to leave the cell blank (with the formula still in there) when
> there are no orders? I really need help on this, it's driving me
> mad!!! Any help would be sweet.
>
> Thanks! -Sarah
>
>
>
> --
> sarahmross
> ------------------------------------------------------------------------
> sarahmross's Profile:
> http://www.excelforum.com/member.php...o&userid=28725
> View this thread: http://www.excelforum.com/showthread...hreadid=484179
>



 
Reply With Quote
 
=?Utf-8?B?SmFzb24gQ2xlbWVudA==?=
Guest
Posts: n/a
 
      11th Nov 2005
You can also specify a custom format in your number format, using your
example I'm assuming your showin 1 decimal place:

Click Format->Cells
On the Number tab click Custom.
In the box at the top of the list type -> 0.0;-0.0;;@
This will make the cell blank when the value is 0.


"sarahmross" wrote:

>
> Is there such a formula that will leave a cell empty? Example: I use
> the formula SUM(...) to add up orders...but, if there are no orders in
> that category, then the cell will have the value of "0.0". Is there
> any way to leave the cell blank (with the formula still in there) when
> there are no orders? I really need help on this, it's driving me
> mad!!! Any help would be sweet.
>
> Thanks! -Sarah
>
>
>
> --
> sarahmross
> ------------------------------------------------------------------------
> sarahmross's Profile: http://www.excelforum.com/member.php...o&userid=28725
> View this thread: http://www.excelforum.com/showthread...hreadid=484179
>
>

 
Reply With Quote
 
sarahmross
Guest
Posts: n/a
 
      11th Nov 2005

Anne,

Thank you so much!! The second formula worked for me,
the =IF(SUM(C1:C5)=0,"",SUM(C1:C5)). It did what was needed, entered
nothing in the cell, and still kept the sum formula....

Hats off to you, thank you once again!

Sarah


--
sarahmross
------------------------------------------------------------------------
sarahmross's Profile: http://www.excelforum.com/member.php...o&userid=28725
View this thread: http://www.excelforum.com/showthread...hreadid=484179

 
Reply With Quote
 
sarahmross
Guest
Posts: n/a
 
      11th Nov 2005

Jason and Ken....

Thanks for the extra tips...this is really appreciated guys, thanks S
much....

Sara

--
sarahmros
-----------------------------------------------------------------------
sarahmross's Profile: http://www.excelforum.com/member.php...fo&userid=2872
View this thread: http://www.excelforum.com/showthread.php?threadid=48417

 
Reply With Quote
 
Anne Troy
Guest
Posts: n/a
 
      11th Nov 2005
You're welcome, Sarah!
************
Anne Troy
VBA Project Manager
www.OfficeArticles.com

"sarahmross" <(E-Mail Removed)> wrote
in message news:(E-Mail Removed)...
>
> Anne,
>
> Thank you so much!! The second formula worked for me,
> the =IF(SUM(C1:C5)=0,"",SUM(C1:C5)). It did what was needed, entered
> nothing in the cell, and still kept the sum formula....
>
> Hats off to you, thank you once again!
>
> Sarah
>
>
> --
> sarahmross
> ------------------------------------------------------------------------
> sarahmross's Profile:
> http://www.excelforum.com/member.php...o&userid=28725
> View this thread: http://www.excelforum.com/showthread...hreadid=484179
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to create an IF statement that leaves a cell blank if.... KK Microsoft Excel Worksheet Functions 6 14th Jul 2009 04:02 PM
Entering a function leaves the cell in text mode... Kompu Kid Microsoft Excel Misc 1 23rd Sep 2008 02:18 AM
view of cell contents changes to #### when cursor leaves cell, ev. =?Utf-8?B?T1RhZGpwcm9m?= Microsoft Excel New Users 1 31st Jul 2007 06:48 PM
Norton Speed Disk leaves disk more fragmented? Rajesh Kirpalani Windows XP Help 1 9th Feb 2004 01:24 AM
Uninstalling program leaves program listed under linked events Matt L. Windows XP Help 2 5th Nov 2003 01:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:52 PM.