PC Review


Reply
Thread Tools Rate Thread

computation error

 
 
=?Utf-8?B?UmFqbmVlc2ggQXJvcmE=?=
Guest
Posts: n/a
 
      22nd Aug 2007
enter following numbers in worksheet (in same sequence)
14189.05
-13605.77
-544.23
-39.05
sum of above
The answer(sum) should be exactly zero. But the answer computed and
displayed is -1.1795E-12
Now change the sequence of numbers and sum them. Answer will be exactly zero.
Any ideas, whats the reason.
Any solution to overcome this - I want to reach an answer of exactly zero
(without changing the sequence).
There are many other combinations of sums in which there is a similar problem.
Please help.
 
Reply With Quote
 
 
 
 
Peo Sjoblom
Guest
Posts: n/a
 
      22nd Aug 2007
http://www.cpearson.com/excel/rounding.htm


http://www.mcgimpsey.com/excel/pennyoff.html


--
Regards,

Peo Sjoblom



"Rajneesh Arora" <(E-Mail Removed)> wrote in message
news:A15FB171-A655-44F0-A5FF-(E-Mail Removed)...
> enter following numbers in worksheet (in same sequence)
> 14189.05
> -13605.77
> -544.23
> -39.05
> sum of above
> The answer(sum) should be exactly zero. But the answer computed and
> displayed is -1.1795E-12
> Now change the sequence of numbers and sum them. Answer will be exactly
> zero.
> Any ideas, whats the reason.
> Any solution to overcome this - I want to reach an answer of exactly zero
> (without changing the sequence).
> There are many other combinations of sums in which there is a similar
> problem.
> Please help.



 
Reply With Quote
 
=?Utf-8?B?RmFyaGFk?=
Guest
Posts: n/a
 
      22nd Aug 2007
Hi,

seems it would be possible just by rounding like:

=ROUND(SUM(your range),0)

Thanks,
--
Farhad Hodjat


"Rajneesh Arora" wrote:

> enter following numbers in worksheet (in same sequence)
> 14189.05
> -13605.77
> -544.23
> -39.05
> sum of above
> The answer(sum) should be exactly zero. But the answer computed and
> displayed is -1.1795E-12
> Now change the sequence of numbers and sum them. Answer will be exactly zero.
> Any ideas, whats the reason.
> Any solution to overcome this - I want to reach an answer of exactly zero
> (without changing the sequence).
> There are many other combinations of sums in which there is a similar problem.
> Please help.

 
Reply With Quote
 
=?Utf-8?B?UHJhbmF2IFZhaWR5YQ==?=
Guest
Posts: n/a
 
      22nd Aug 2007
change the format of all the cells including result to Number with 2
decimals. It will be zero then. I suppose currently the cells are of general
format.

The sum was 0 on my PC after I changed the formatting.
Hope this helps.
--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"Rajneesh Arora" wrote:

> enter following numbers in worksheet (in same sequence)
> 14189.05
> -13605.77
> -544.23
> -39.05
> sum of above
> The answer(sum) should be exactly zero. But the answer computed and
> displayed is -1.1795E-12
> Now change the sequence of numbers and sum them. Answer will be exactly zero.
> Any ideas, whats the reason.
> Any solution to overcome this - I want to reach an answer of exactly zero
> (without changing the sequence).
> There are many other combinations of sums in which there is a similar problem.
> Please help.

 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      22nd Aug 2007
No it wasn't, formatting only changes the display so if you format
1.00000002 to 2 decimals it will display as 1.00 but it will still be
1.00000002


You can select precision as displayed under tools>options>calculations but
that can affect other parts of the spreadsheet



--
Regards,

Peo Sjoblom



"Pranav Vaidya" <(E-Mail Removed)> wrote in message
news:202DD1B9-BEAF-49F1-BC7C-(E-Mail Removed)...
> change the format of all the cells including result to Number with 2
> decimals. It will be zero then. I suppose currently the cells are of
> general
> format.
>
> The sum was 0 on my PC after I changed the formatting.
> Hope this helps.
> --
> Pranav Vaidya
> VBA Developer
> PN, MH-India
> If you think my answer is useful, please rate this post as an ANSWER!!
>
>
> "Rajneesh Arora" wrote:
>
>> enter following numbers in worksheet (in same sequence)
>> 14189.05
>> -13605.77
>> -544.23
>> -39.05
>> sum of above
>> The answer(sum) should be exactly zero. But the answer computed and
>> displayed is -1.1795E-12
>> Now change the sequence of numbers and sum them. Answer will be exactly
>> zero.
>> Any ideas, whats the reason.
>> Any solution to overcome this - I want to reach an answer of exactly zero
>> (without changing the sequence).
>> There are many other combinations of sums in which there is a similar
>> problem.
>> 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Age computation owen.cxy Microsoft Excel Programming 1 23rd Jun 2009 07:26 AM
Excel error in R-squared computation in exponential regression =?Utf-8?B?QmpvZXJu?= Microsoft Excel Misc 7 28th Oct 2007 02:17 AM
Tax Computation anyaley via AccessMonster.com Microsoft Access Queries 1 14th May 2007 02:17 PM
MOD function computation error =?Utf-8?B?TWFyaWFuIE1lZ2FtaSBW?= Microsoft Excel Worksheet Functions 7 24th Aug 2005 09:48 PM
MOD function computation error =?Utf-8?B?TWFyaWFuIE1lZ2FtaSBW?= Microsoft Excel Crashes 1 19th Aug 2005 10:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:36 PM.