Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default How to hide "0" in a cell?

Dear all,

I have a formula "=sum(a1:a4)" at cell a5, normally it will display a "0"
when cells a1 to a4 are all blank. How can I hide this "0"?

Thanks


Turk


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How to hide "0" in a cell?

Trap it with and IF, eg use instead in A5:
=IF(SUM(A1:A4)=0,"",SUM(A1:A4))

Alternatively, perhaps better,
we can easily suppress the display of zeros in the sheet via clicking:
Tools Options View tab Uncheck "Zero values" OK
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Turk" wrote:
Dear all,

I have a formula "=sum(a1:a4)" at cell a5, normally it will display a "0"
when cells a1 to a4 are all blank. How can I hide this "0"?

Thanks


Turk



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How to hide "0" in a cell?

You could format it

0;-0;;

You could use Conditional Formatting to set the font to white for a zero
value

or you could suppress zeros, ToolsOptionsView and uncheck Zero values

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Max" wrote in message
...
Trap it with and IF, eg use instead in A5:
=IF(SUM(A1:A4)=0,"",SUM(A1:A4))

Alternatively, perhaps better,
we can easily suppress the display of zeros in the sheet via clicking:
Tools Options View tab Uncheck "Zero values" OK
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Turk" wrote:
Dear all,

I have a formula "=sum(a1:a4)" at cell a5, normally it will display a

"0"
when cells a1 to a4 are all blank. How can I hide this "0"?

Thanks


Turk





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default How to hide "0" in a cell?

Try something like
=if(countblank(A1:A4)=4,"",sum(A1:A4))
this will let you have a sum of zero if a zero is actually in one of the
cells.

"Turk" wrote:

Dear all,

I have a formula "=sum(a1:a4)" at cell a5, normally it will display a "0"
when cells a1 to a4 are all blank. How can I hide this "0"?

Thanks


Turk



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default How to hide "0" in a cell?

Download ASAP utilities from the ASAP web site... It is a free addin
"Turk" wrote in message
...
Dear all,

I have a formula "=sum(a1:a4)" at cell a5, normally it will display a "0"
when cells a1 to a4 are all blank. How can I hide this "0"?

Thanks


Turk






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default How to hide "0" in a cell?

I got it, thank you all~~

Turk


"MIchel Khennafi" ¼¶¼g©ó¶l¥ó·s»D
...
Download ASAP utilities from the ASAP web site... It is a free addin
"Turk" wrote in message
...
Dear all,

I have a formula "=sum(a1:a4)" at cell a5, normally it will display a

"0"
when cells a1 to a4 are all blank. How can I hide this "0"?

Thanks


Turk






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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


All times are GMT +1. The time now is 12:53 PM.

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"