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 incorrect subtraction


In excel 2003 in some cases where 2 equal amounts are subtracted the result
is not 0 How can this be avoided?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default incorrect subtraction

That happens when you have nos set to display with no decimal points but the
underlying number has decimal part...

You can check the box against "Precision as displayed" under
Tools|Options|Calculation|Workbook Options Group

Do note that this has wider impact and may hurt you elsewhere.
--
Always provide your feedback so that others know whether the solution worked
or problem still persists ...


"klein" wrote:


In excel 2003 in some cases where 2 equal amounts are subtracted the result
is not 0 How can this be avoided?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default incorrect subtraction

In excel 2003 in some cases where 2 equal amounts are subtracted
the result is not 0 How can this be avoided?


Probably you could try using ROUND,
eg something like this:
=ROUND(A1-SUM(B1:C1),0)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default incorrect subtraction

Use rounding or toolsoptionscalculation and precision as displayed


http://www.cpearson.com/excel/rounding.htm

it explains the floating point errors



--


Regards,


Peo Sjoblom

"klein" wrote in message
...

In excel 2003 in some cases where 2 equal amounts are subtracted the
result
is not 0 How can this be avoided?



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
Subtraction Rookie Excel Worksheet Functions 14 February 24th 08 11:42 AM
Subtraction Chart Bunnie Excel Discussion (Misc queries) 8 December 14th 06 02:06 AM
Cell subtraction gudway New Users to Excel 3 May 4th 06 01:31 PM
Subtraction question Richard Excel Discussion (Misc queries) 6 May 22nd 05 12:57 PM
Subtraction Question Richard Excel Discussion (Misc queries) 6 May 22nd 05 01:54 AM


All times are GMT +1. The time now is 10:51 PM.

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"