PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Crashes how to find errora in formulas that are calculating wrong

Reply

how to find errora in formulas that are calculating wrong

 
Thread Tools Rate Thread
Old 09-04-2005, 08:25 AM   #1
=?Utf-8?B?YXNoYm8=?=
Guest
 
Posts: n/a
Default how to find errora in formulas that are calculating wrong


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!!
  Reply With Quote
Old 09-04-2005, 02:55 PM   #2
Nick Hodge
Guest
 
Posts: n/a
Default Re: how to find errora in formulas that are calculating wrong

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

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


"ashbo" <ashbo@discussions.microsoft.com> wrote in message
news:272D0DF5-CA39-42F5-A1DA-08D72246C000@microsoft.com...
> 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!!



  Reply With Quote
Reply



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off