+ Reply to Thread
Results 1 to 4 of 4

Excel decimal bug!

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Angry Excel decimal bug!

    Hello, I'm at work and my boss seems to have run into a unique bug that I have never encountered. While computing price differences between two lists, we have found that excel adds a value in the fifteenth decimal place, but only in certain instances. This is obviously a small amount, but when it's being multiplied by thousands of units per part in a 40,000 part catalog, it starts to create problems with our enterprise software. Attached are screenshots showing the values as well as the formulas (forgot to include the row labels in the pics, just take it on faith that I'm not stupid enough to reference the wrong cells...). Is this some known bug? Is there a fix?
    decimal_error_formulas.jpg decimal_error.jpg

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Excel decimal bug!

    Yes, this is a known error caused by the "floating point arithmetic" that Excel uses. You probably need to use the ROUND function in your calculations, see here
    Audere est facere

  3. #3
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Excel decimal bug!

    Hi

    You need to set precision as displayed through the Excel Options.

    Office Button < Excel Options < Advanced < "When calculating this workbook"-check "Set precision as displayed"
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Excel decimal bug!

    I'd be very reluctant to use Precision as Displayed without thinking through all the possible unintended consequences. Selective rounding is generally a much safer approach.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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