#1   Report Post  
Posted to microsoft.public.excel.misc
MV MV is offline
external usenet poster
 
Posts: 6
Default format

I am subtracting two cells which contain time and the result is zero. but
when I am using conditional formatting to hide zero I can not. what can be
the reason?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 440
Default format

Rather than using conditional formatting, go to Tools|Options|View and untick
the "zero values" tick box.
--
Traa Dy Liooar

Jock


"MV" wrote:

I am subtracting two cells which contain time and the result is zero. but
when I am using conditional formatting to hide zero I can not. what can be
the reason?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default format

If you mean the cell still shows 0:00 then I would think that the value is
not a true zero. Try re-formatting the cell as General and see if there is
a small residual value in there.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"MV" wrote in message
...
I am subtracting two cells which contain time and the result is zero. but
when I am using conditional formatting to hide zero I can not. what can be
the reason?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default format

What condition are you using in your conditional formatting?

One possibility (if your cell contents were the result of previous
calculations) is that with the fixed point binary representation there may
be rounding errors so that you have a resulting value close to zero but not
identically zero, so it may be worth checking that.
--
David Biddulph

"MV" wrote in message
...
I am subtracting two cells which contain time and the result is zero. but
when I am using conditional formatting to hide zero I can not. what can be
the reason?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default format

Because of the way computers store decimal numbers (number to base 10) in
binary form (numbers to base 2) it often happens that a calculation that
should yield exactly zero will actually result in a very small number like
0.000000000012. This only happens with real (that is, non-integer numbers)

So it is advisable never to test for exactly zero but rather to test for
'smallness'

=IF(ABS(A1-B1) < 1E-10, .....
=IF(ROUND(A1-B1, 10) =0, ....

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"MV" wrote in message
...
I am subtracting two cells which contain time and the result is zero. but
when I am using conditional formatting to hide zero I can not. what can be
the reason?



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
Lock Cell Format - Allow copy and paste of data without format change Chris12InKC Excel Worksheet Functions 2 May 9th 23 07:42 PM
Convert European Date format to American Format Albert Excel Discussion (Misc queries) 3 August 21st 07 10:02 PM
Decide comment format 'globally'? Restore format with ws_change? tskogstrom Excel Discussion (Misc queries) 0 April 16th 07 09:07 AM
Replace million-billion number format to lakhs-crores format Sumit Excel Discussion (Misc queries) 1 December 9th 05 04:58 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM


All times are GMT +1. The time now is 10:52 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"