PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Crashes Excel fill handle problem

Reply

Excel fill handle problem

 
Thread Tools Rate Thread
Old 04-04-2006, 06:56 PM   #1
=?Utf-8?B?Sm9obg==?=
Guest
 
Posts: n/a
Default Excel fill handle problem


Excel 2003 (11.6560.6568) SP2

I entered 5.75 in A1 5.8 in A2 5.85 in A3 then highlighted the
three cells. Then I dragged the fill handle down till the value was up to 32.

I pressed the Ctrl key and the Tilde key and the values that appeared had
become intermittently wrong.

some had 999999999999 values...some were correct...

Can someone explain why this error is happening and is there a fix?

please email me at john_french@adelphia.net
  Reply With Quote
Old 04-04-2006, 07:11 PM   #2
Dave Peterson
Guest
 
Posts: n/a
Default Re: Excel fill handle problem

I think it's just the way binary systems deal with decimal numbers.

I'd put 5.75 in A1 and put =a1+.05 in A2 and drag down.

John wrote:
>
> Excel 2003 (11.6560.6568) SP2
>
> I entered 5.75 in A1 5.8 in A2 5.85 in A3 then highlighted the
> three cells. Then I dragged the fill handle down till the value was up to 32.
>
> I pressed the Ctrl key and the Tilde key and the values that appeared had
> become intermittently wrong.
>
> some had 999999999999 values...some were correct...
>
> Can someone explain why this error is happening and is there a fix?
>
> please email me at john_french@adelphia.net


--

Dave Peterson
  Reply With Quote
Old 04-04-2006, 09:20 PM   #3
=?Utf-8?B?SmVycnkgVy4gTGV3aXM=?=
Guest
 
Posts: n/a
Default Re: Excel fill handle problem

"Dave Peterson" wrote:

> I think it's just the way binary systems deal with decimal numbers.


Specifically, most terminating decimal fractions (including 0.8 and 0.05)
are nonterminating binary fractions, that can only be approximated. The
difference in the binary approximations to 5.75 and 5.80 is
0.04999999999999982236431605997495353221893310546875 which Excel displays as
0.0499999999999998 per its documented display limit of 15 digits. Since the
increment is smaller than the OP intended, it is not surprising that
resulting partial sums are smaller than expected

> I'd put 5.75 in A1 and put =a1+.05 in A2 and drag down.


That would have a similar problem, since 0.05 still must be approximated.
The direct binary approximation to 0.05 is
0.05000000000000000277555756156289135105907917022705078125, which is a closer
approximation, but now some values will be too big instead of too small.

Better approaches would include
=ROUND(A1+0.05,2)
in A1 and copied down, or
=(114+ROW())/20
in A1:A526.

Jerry
  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