+ Reply to Thread
Results 1 to 5 of 5

Rounding When Autofill/Dragging

  1. #1
    Registered User
    Join Date
    09-04-2014
    Location
    Alberta, Canada
    MS-Off Ver
    2010
    Posts
    2

    Rounding When Autofill/Dragging

    Hey Everyone,

    Ran into a weird issue this morning that I can't figure out. I can find an easy way to bypass the issue using ROUND, but I'm curious if anyone knows what the problem is.

    I'm working with a data set that starts at 826.79 and increases by increments of 0.01, so 826.79, 826.80, 826.81...
    I started with the first few values and then dragged down to fill the rest of the data, but after the first 100 entries the values start to round. Example, in my data set once I reach 827.79 the next value should be 827.80, however it shows up in the formula bar as 827.799999988. This causes issues with using VLOOKUP.

    Has anyone seen this before?

    Thanks,

    Rich

    Sample Book.xlsx

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Rounding When Autofill/Dragging

    Why not increment the values with a formula?
    So in B2 enter =B1+0.01 and copy down.

    BSB

  3. #3
    Registered User
    Join Date
    09-04-2014
    Location
    Alberta, Canada
    MS-Off Ver
    2010
    Posts
    2

    Re: Rounding When Autofill/Dragging

    Thanks BSB. As I said, I can easily get around the issue, it's more of a knowledge question I'm looking to have answered. I can't seem to find an explanation on any of the forums.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Rounding When Autofill/Dragging

    Perhaps a "floating point" issue?
    Research that a little and see if anything turns up.

    BSB

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

    Re: Rounding When Autofill/Dragging

    Binary floating point can't store most decimal values exactly. The error will increase the further down you drag.

    @BSB: Your formula will result in the same error. You could use =ROUND(B1 + 0.01, 2)
    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)

Similar Threads

  1. Autofill problem with Dragging the formula down
    By mollyray2 in forum Excel General
    Replies: 3
    Last Post: 06-14-2017, 07:14 AM
  2. Autofill without dragging
    By exceldash in forum Excel General
    Replies: 2
    Last Post: 04-09-2015, 08:48 AM
  3. Autofill sheet name when dragging formula
    By SAVIOBLUEFOX in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-16-2013, 03:42 PM
  4. Autofill file name into formula when dragging formula down.
    By andy6983382 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2010, 02:20 PM
  5. autofill dragging result rather than formula, why?
    By DebraAnn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2006, 04:55 PM
  6. [SOLVED] AutoFIll -by dragging the bottom-right corner of the cell
    By Venkatesh V in forum Excel General
    Replies: 5
    Last Post: 02-23-2005, 01:06 PM
  7. Autofill formula to next cell without dragging
    By Purdue02 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2005, 06:18 PM

Tags for this Thread

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