+ Reply to Thread
Results 1 to 5 of 5

excel copy and special paste (values) changes the real value

  1. #1
    Registered User
    Join Date
    10-03-2017
    Location
    israel
    MS-Off Ver
    2013
    Posts
    3

    excel copy and special paste (values) changes the real value

    i made cell A1 equal 1.123, cell B1 equal 1.22 and cell C1 is a formula: =A1-B1.
    it shows the value 0.001.
    then i copied cell C1 and made a special paste (values) in D1.
    i expected that the value of D1 would be 0.001 just like C1. but it is different. excel made it 0.00099999999999989.
    why did it happen? what can i do to fix it?


    Capture1.PNG
    Capture2.PNG

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: excel copy and special paste (values) changes the real value

    This is known as a floating point "error". Others can explain it better than I can. Basically, it has to do with loss of precision while using large or small numbers.

    Here is more info on floating point precision:
    https://blogs.office.com/en-us/2008/...wrong-answers/

  3. #3
    Registered User
    Join Date
    10-03-2017
    Location
    israel
    MS-Off Ver
    2013
    Posts
    3

    Re: excel copy and special paste (values) changes the real value

    1. i think that the link you sent me is invalid
    2. this error happens even if i use 1 digit after the point, for example 1.2 and 1.1

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: excel copy and special paste (values) changes the real value

    The link works for me. Either way, just search for "floating point error excel" and you can read a lot more about it than I will be able to explain.

    It usually doesn't make a difference in your calculations but if it does, you can use =ROUND(A1-B1,4) in place of =A1-B1

  5. #5
    Registered User
    Join Date
    10-03-2017
    Location
    israel
    MS-Off Ver
    2013
    Posts
    3

    Re: excel copy and special paste (values) changes the real value

    i need a good solution to this problem.
    i want to copy a lot of data just like i see it.
    and if i manualy type 1.1 and 1.2. when substracting, there is no reason in the world for it to be 0.0999999999999999
    it should be 0.1. its like excel just invent numbers for me...

+ 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: 3
    Last Post: 01-09-2016, 04:39 PM
  2. copy formula and paste for new data added and autofill.....and paste special values
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-13-2014, 07:40 AM
  3. [SOLVED] copy paste updated values in real time
    By excelpea in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-03-2012, 11:53 PM
  4. Excel Button to copy selection and then paste special values over it
    By transportplanner in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-14-2011, 07:00 AM
  5. copy and paste special values
    By inky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2008, 04:34 AM
  6. Copy Paste Special Values
    By Lotus123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-21-2008, 02:11 PM
  7. Replies: 1
    Last Post: 10-12-2005, 06:05 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