Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Excel Errors / April 2005

Tip: Looking for answers? Try searching our database.

how to find errora in formulas that are calculating wrong

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ashbo - 09 Apr 2005 08:25 GMT
when formulas are set to add a column of currency, the result is more than
what it should be.  when there is zero dollars in a cell, some are listed as
$      and others are listed as $  0.00 and others are $0.00.  the ones that
are $  0.00 and $0.00 are the ones that are causing the error because when i
take them out, the column adds correctly.  i've tried to change by going into
style and modifying but nothing seems to work.  please help!!
Nick Hodge - 09 Apr 2005 14:55 GMT
It will be nothing to do with the format but will be the underlying data.
Formats 'mask' the data to display it as required so for example 0.0049
formatted to two decimals will show 0.00.

I suspect you are using currency and formulas are causing excel to divide
and multiple amounts resulting in numbers up to Excel's precision of 15
digits, by formatting them all to 0.00 you are 'truncating' the underlying
data.

Try using the ROUND function in your calculations to ensure all results are
'trimmed' to the correct number of decimals

Signature

HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.uk.ANDTHIS

> when formulas are set to add a column of currency, the result is more than
> what it should be.  when there is zero dollars in a cell, some are listed
[quoted text clipped - 6 lines]
> into
> style and modifying but nothing seems to work.  please help!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.