Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default my formated column is displaying one cell incorrectly

I have a spreadsheet with 4 columns; the 4th columns is a formula going
across the 3 columns a+b-c = d with d preferably equally zero. When I format
column d almost all of the columns that equal zero display as a dash
(preference). However periodically one or two of the rows will display as
0.00 and I can't seem to get the formatting to change to the dash. I have
tried to reformat all columns all other cells and to no avail. Has anyone
else run into this issue and if so how have u solved it. The only way I can
solve it is to actually put a zero in the cell.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 563
Default my formated column is displaying one cell incorrectly

If the numbers are what mathematician call "real numbers" - have deceimal
point as in 1.23 - then a simple sum like =a1+b1-c1 may give a value that
not quite zero even thought zero is expected. Not just an Excel problem but
a computer problem (round -off error) resulting from how the IEEE convention
( see one of the links below) converts decimal numbers (base 10) to binary
numbers (base 2).
Try =ROUND(A1+B1-C1,12) to round the result to 12 places of decimal and
avoid the n'round off' error problem


Chip's clear explanation
http://www.cpearson.com/excel/rounding.htm

Floating-point arithmetic may give inaccurate results in Excel
http://support.microsoft.com/kb/78113/en-us

(Complete) Tutorial to Understand IEEE Floating-Point Errors
http://support.microsoft.com/kb/42980

What Every Computer Scientist Should Know About Floating Point
http://docs.sun.com/source/806-3568/ncg_goldberg.html

Visual Basic and Arithmetic Precision
http://support.microsoft.com/default...NoWebContent=1

Others:
http://support.microsoft.com/kb/214118

http://docs.sun.com/source/806-3568/ncg_goldberg.html

best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme



"jungbugg40" wrote in message
...
I have a spreadsheet with 4 columns; the 4th columns is a formula going
across the 3 columns a+b-c = d with d preferably equally zero. When I
format
column d almost all of the columns that equal zero display as a dash
(preference). However periodically one or two of the rows will display as
0.00 and I can't seem to get the formatting to change to the dash. I have
tried to reformat all columns all other cells and to no avail. Has anyone
else run into this issue and if so how have u solved it. The only way I
can
solve it is to actually put a zero in the cell.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default my formated column is displaying one cell incorrectly

What you see is not always what you have.

Assuming column D is Accounting format.

If exactly 0 you will see the dash

If not exactly 0 then you will get 0.0 instead of the dash

Your numbers may not add up to exactly 0 due to unshown decimals.

i.e. 1.001 in A1 will display as 1.00 when 2 DP

-1.00 in B1 will show as -1.00 when 2 DP

Add A1 + B1 will not be zero


Gord Dibben MS Excel MVP


On Wed, 6 Jan 2010 10:58:15 -0800, jungbugg40
wrote:

I have a spreadsheet with 4 columns; the 4th columns is a formula going
across the 3 columns a+b-c = d with d preferably equally zero. When I format
column d almost all of the columns that equal zero display as a dash
(preference). However periodically one or two of the rows will display as
0.00 and I can't seem to get the formatting to change to the dash. I have
tried to reformat all columns all other cells and to no avail. Has anyone
else run into this issue and if so how have u solved it. The only way I can
solve it is to actually put a zero in the cell.


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
Can a column be formated to make any entry in that column capitali Lynda Excel Discussion (Misc queries) 1 May 19th 09 05:59 PM
Why does a column add incorrectly when usng autosum? cindy sue Excel Worksheet Functions 1 June 7th 06 01:21 AM
Column sorting incorrectly Melissa Excel Discussion (Misc queries) 18 October 13th 05 08:45 AM
Why are my nested sub-totals are displaying incorrectly? chiefdean13 Excel Discussion (Misc queries) 1 July 20th 05 05:45 AM
How do you copy a cell formula down a column without displaying n. Coddie Excel Worksheet Functions 4 January 18th 05 02:31 PM


All times are GMT +1. The time now is 07:54 AM.

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"