Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Fill/Extend Series adding decimal points to some numbers

Hi,
I set up a worksheet for a Lookup Function that contains numbers increasing
by 0.1 from 100.0 to 50.0. I used the drag and fill to set up the numbers.
I noticed some incorrect entries in the results from the look up and found
that on certain numbers it added many decimal spots to the number for example
66.5 look like 66.5000000000001 when I click into the cell. I can not locate
a pattern for why this is occurring (i.e. does not occur in the 4-8 or 10-15
but does in the 9 and 16 series). Formatting is set to numerical with 1
decimal point.

Any help?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Fill/Extend Series adding decimal points to some numbers

This is a limitation of any computer that uses binary representation
of decimal numbers - some fractions cannot be represented with
complete accuracy. A binary fraction is made up of digits to represent
1/2, 1/4, 1/8, 1/16 etc, but some simple decimal fractions (like 1/10
or 0.1) cannot be represented completely in binary as they are
recurring numbers (rather like 1/3 or 2/3 in decimal).

Another thing to consider is that Excel can only represent up to 15
digits of precision, so a recurring fraction will be truncated to this
precision and when it is added repeatedly then errors will accumulate.

I'm sure Joe will come along soon to give a more in-depth explanation.

Hope this helps.

Pete

On Apr 26, 4:44*pm, awalker wrote:
Hi,
I set up a worksheet for a Lookup Function that contains numbers increasing
by 0.1 from 100.0 to 50.0. I used the drag and fill to set up the numbers.. * *
I noticed some incorrect entries in the results from the look up and found
that on certain numbers it added many decimal spots to the number for example
66.5 look like 66.5000000000001 when I click into the cell. *I can not locate
a pattern for why this is occurring (i.e. does not occur in the 4-8 or 10-15
but does in the 9 and 16 series). *Formatting is set to numerical with 1
decimal point. *

Any help?


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
sorting numbers with decimal points Trish Excel Worksheet Functions 1 January 2nd 08 05:09 PM
Adding a decimal to numbers rennersc Excel Discussion (Misc queries) 3 August 10th 06 07:49 PM
all the cells in excell put 2 decimal points in all numbers no ma. carroll616 Excel Discussion (Misc queries) 4 December 1st 05 04:01 AM
Excel should not automatically extend series or fill values whisperlm Excel Discussion (Misc queries) 0 July 13th 05 07:06 PM
Removing/adding decimal points Lou Excel Discussion (Misc queries) 2 March 2nd 05 08:56 PM


All times are GMT +1. The time now is 09:53 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"