+ Reply to Thread
Results 1 to 4 of 4

Problem with Excel even in the latest version

  1. #1
    Registered User
    Join Date
    11-12-2014
    Location
    Derby, UK
    MS-Off Ver
    Office 2007
    Posts
    2

    Problem with Excel even in the latest version

    I was recently caught out with an Excel feature. Has anyone else noticed the same error in the program? I was creating a column filled with numbers. To do this I entered 1 in the top cell and 1.025 in the cell below. I then highlighted the cells and then stretched them down to fill the cells underneath to get 1, 1.025, 1.05, 1.075 ......This was fine but then in about row 85 something changed. The numbers went up by more than 0.025. it was a small difference that you would probably not notice in a general calculation but I was using the column with the "lookup" formula and as it was no longer exact it was making an error in the returned answer. You need to go to about 10 decimal places to see the aberration. Is there a way of pointing this out to Microsoft? I tried the help lines but they only deal with advice and were not even interested in trying this out for themselves.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Problem with Excel even in the latest version

    You will always have similar problems with computer software.

    The number is displayed as a decimal but is stored as a series of ones and zeros.

    even when you typed in 1 and 1.025 and filled down

    Look at row 58,

    when you format the cell to display more decimal places
    the number is 2.42499999999999
    not 2.425

    if you want precise decimals then use a formula,

  3. #3
    Registered User
    Join Date
    11-12-2014
    Location
    Derby, UK
    MS-Off Ver
    Office 2007
    Posts
    2

    Re: Problem with Excel even in the latest version

    Thanks for the quick reply. It also fails if you just keep adding 0.025 to the number above. Unfortunately it displays the rounded number to lull you into a false sense of security. I did correct the error once I found it by multiplying the number by 1000, rounding to zero decimal places, calling it an integer using the "Int" formula and then dividing by 1000. I am somewhat surprised that the binary system cannot represent accurately all numbers.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Problem with Excel even in the latest version

    You could avoid all those calcs by just using 1 of the round() functions. This is a problem that is inherent in the way computers calc decimals, not a fault in excel
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2013, 12:30 PM
  2. How can I convert Excel 95 file to latest version?
    By dealrocker in forum Excel General
    Replies: 1
    Last Post: 07-03-2009, 05:57 AM
  3. Saving Excel as latest version
    By Nirmal Singh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2006, 11:50 AM
  4. Replies: 0
    Last Post: 01-17-2006, 06:25 PM
  5. [SOLVED] [SOLVED] Excel: Latest Version?
    By Rodney in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-07-2005, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1