Show Zeros in some cells even though worksheet set to not show zer


"Excel VBA Help"

 


Play Friv Now - Play Friv Games
Go Back   The Code Cage Forums > Microsoft Topics > Microsoft Excel Forum
Our Info Pages:-
The Code Cage - Microsoft Office help

Notices

Microsoft Excel Forum Members Post questions in this forum if they are related to using Microsoft Excel, this includes Worksheet Functions, Excel VBA Programming, Simple Macro Code & Charting, Excel formula etc.

New Reply
Thread Tools Rate Thread Display Modes
  #1  
Unread 17th August 2009, 22:59
SteveM's Avatar
SteveM
Newsgroup Contributor
 
Posts: n/a
Posts Per Day: 0
My Top Tip Count:
Default Show Zeros in some cells even though worksheet set to not show zer
     Excel: General   


------ Register to get rid of these "In Post" ads! ------

Category: Excel: General   

I have a select number of cells that I would like to show zeros (if
applicable) even though the worksheet is set to not show zeros. How can I do
that with those select cells, either by settings or programming?

The Code Cage Advertisment
Advertisement
  #2  
Unread 17th August 2009, 23:07
Jim Cone's Avatar
Jim Cone
Newsgroup Contributor
 
Posts: n/a
Posts Per Day: 0
My Top Tip Count:
Default Re: Show Zeros in some cells even though worksheet set to not show zer

------ Register to get rid of these "In Post" ads! ------


Enter 0.001 and format the cell with a custom format of 0
--
Jim Cone
Portland, Oregon USA



"SteveM" <SteveM@discussions.microsoft.com>
wrote in message
news:C86A5605-B158-474C-A6DB-BBA29C5D498D@microsoft.com...
I have a select number of cells that I would like to show zeros (if
applicable) even though the worksheet is set to not show zeros.
How can I do that with those select cells, either by settings or programming?

  #3  
Unread 17th August 2009, 23:35
Gord Dibben's Avatar
Gord Dibben
Newsgroup Contributor
 
Posts: n/a
Posts Per Day: 0
My Top Tip Count:
Default Re: Show Zeros in some cells even though worksheet set to not show zer

------ Register to get rid of these "In Post" ads! ------


Generally if a 0 is a result of a formula you just trap for it and hide it.

=IF(A1 + B1=0,"",A1 + B1)

If you want to see the 0 don't trap

=A1 + B1

I never use the "don't display zeros" option.

I like to see them sometimes............sometimes not.


Gord Dibben MS Excel MVP

On Mon, 17 Aug 2009 14:57:01 -0700, SteveM
<SteveM@discussions.microsoft.com> wrote:

>I have a select number of cells that I would like to show zeros (if
>applicable) even though the worksheet is set to not show zeros. How can I do
>that with those select cells, either by settings or programming?



The Code Cage Advertisment
Advertisement
  #4  
Unread 18th August 2009, 14:06
SteveM's Avatar
SteveM
Newsgroup Contributor
 
Posts: n/a
Posts Per Day: 0
My Top Tip Count:
Default RE: Show Zeros in some cells even though worksheet set to not show zer

------ Register to get rid of these "In Post" ads! ------


There are a lot of cells with formulas, some quite large, the majority of
them giving a zero result, which is why I want to hide them, hopefully
without extra "if's". That is why I chose to not display zero results.
However I have some cells on the same sheet I want to show a zero result (if
applicable). Is there any way besides doing an "if" with a text zero, such
as =if(result=0,"0",result) ??

"SteveM" wrote:

> I have a select number of cells that I would like to show zeros (if
> applicable) even though the worksheet is set to not show zeros. How can I do
> that with those select cells, either by settings or programming?


  #5  
Unread 18th August 2009, 14:14
Pete_UK's Avatar
Pete_UK
Newsgroup Contributor
 
Posts: n/a
Posts Per Day: 0
My Top Tip Count:
Default Re: Show Zeros in some cells even though worksheet set to not showzer

------ Register to get rid of these "In Post" ads! ------


You can use conditional formatting on the cells with a zero result -
choose Cell Value Is, then 0 (zero) and choose a white foreground
colour (assuming you have a white background colour). The zero will
not show.

Hope this helps.

Pete

On Aug 18, 2:03 pm, SteveM <Ste...@discussions.microsoft.com> wrote:
> There are a lot of cells with formulas, some quite large, the majority of
> them giving a zero result, which is why I want to hide them, hopefully
> without extra "if's".  That is why I chose to not display zero results. 
> However I have some cells on the same sheet I want to show a zero result (if
> applicable).  Is there any way besides doing an "if" with a text zero, such
> as =if(result=0,"0",result) ??
>
>
>
> "SteveM" wrote:
> > I have a select number of cells that I would like to show zeros (if
> > applicable) even though the worksheet is set to not show zeros.  How can I do
> > that with those select cells, either by settings or programming?- Hide quoted text -

>
> - Show quoted text -



  #6  
Unread 18th August 2009, 14:30
Gord Dibben's Avatar
Gord Dibben
Newsgroup Contributor
 
Posts: n/a
Posts Per Day: 0
My Top Tip Count:
Default Re: Show Zeros in some cells even though worksheet set to not show zer

------ Register to get rid of these "In Post" ads! ------


None that I know of without using VBA

Display of zeros is a worksheet/window setting.

BTW............don't use quotes around the 0 in your formula.

=IF(result=0,0,result)


Gord


On Tue, 18 Aug 2009 06:03:01 -0700, SteveM
<SteveM@discussions.microsoft.com> wrote:

>There are a lot of cells with formulas, some quite large, the majority of
>them giving a zero result, which is why I want to hide them, hopefully
>without extra "if's". That is why I chose to not display zero results.
>However I have some cells on the same sheet I want to show a zero result (if
>applicable). Is there any way besides doing an "if" with a text zero, such
>as =if(result=0,"0",result) ??
>
>"SteveM" wrote:
>
>> I have a select number of cells that I would like to show zeros (if
>> applicable) even though the worksheet is set to not show zeros. How can I do
>> that with those select cells, either by settings or programming?



The Code Cage Advertisment
Advertisement
  #7  
Unread 18th August 2009, 15:16
Gord Dibben's Avatar
Gord Dibben
Newsgroup Contributor
 
Posts: n/a
Posts Per Day: 0
My Top Tip Count:
Default Re: Show Zeros in some cells even though worksheet set to not show zer

------ Register to get rid of these "In Post" ads! ------


Forgot about that.

Thank Pete


Gord

On Tue, 18 Aug 2009 06:11:29 -0700 (PDT), Pete_UK <pashurst@auditel.net>
wrote:

>You can use conditional formatting on the cells with a zero result -
>choose Cell Value Is, then 0 (zero) and choose a white foreground
>colour (assuming you have a white background colour). The zero will
>not show.
>
>Hope this helps.
>
>Pete
>
>On Aug 18, 2:03 pm, SteveM <Ste...@discussions.microsoft.com> wrote:
>> There are a lot of cells with formulas, some quite large, the majority of
>> them giving a zero result, which is why I want to hide them, hopefully
>> without extra "if's".  That is why I chose to not display zero results.  
>> However I have some cells on the same sheet I want to show a zero result (if
>> applicable).  Is there any way besides doing an "if" with a text zero, such
>> as =if(result=0,"0",result) ??
>>
>>
>>
>> "SteveM" wrote:
>> > I have a select number of cells that I would like to show zeros (if
>> > applicable) even though the worksheet is set to not show zeros.  How can I do
>> > that with those select cells, either by settings or programming?- Hide quoted text -

>>
>> - Show quoted text -



The Code Cage Advertisment
Advertisement
New Reply
The Code Cage at Facebookhe Code Cage at Twitter


Tags
cells, set, worksheet, zer, zeros

Thread Tools
Display Modes 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

Forum Jump

The Code Cage Affilliates



http://www.thecodecage.com/forumz tested by McAfee Security http://www.thecodecage.com/forumz tested by McAfee Security

All times are GMT +1. The time now is 02:36.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Template-Modifications by TMS
No part of this board, functionality or creatives may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
Copyright ©2008 - , Simon lloyd.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application they represent and are used with permission from Microsoft
UA-8135493-1
Cultural Forum | Study at Malaysian University