Excel makes a mistake at paste special - number only












0














Excel (Office 365) is making a strange error when pasting numbers only:



cell A1 value = 1727979.28
cell A2 value = 1678319.54
cell A3 formula = (A2 - A1) -> result = -49659.74



if I select&copy A3 and paste special (values only) to A4 the value in A4 = -49659.7399999999 ?!?



Is this expected bahaviour or some setting I can change?










share|improve this question






















  • It's not formatting, the values (if you look inside the cells) are exactly as I typed above
    – TheMixy
    Dec 17 at 11:01
















0














Excel (Office 365) is making a strange error when pasting numbers only:



cell A1 value = 1727979.28
cell A2 value = 1678319.54
cell A3 formula = (A2 - A1) -> result = -49659.74



if I select&copy A3 and paste special (values only) to A4 the value in A4 = -49659.7399999999 ?!?



Is this expected bahaviour or some setting I can change?










share|improve this question






















  • It's not formatting, the values (if you look inside the cells) are exactly as I typed above
    – TheMixy
    Dec 17 at 11:01














0












0








0







Excel (Office 365) is making a strange error when pasting numbers only:



cell A1 value = 1727979.28
cell A2 value = 1678319.54
cell A3 formula = (A2 - A1) -> result = -49659.74



if I select&copy A3 and paste special (values only) to A4 the value in A4 = -49659.7399999999 ?!?



Is this expected bahaviour or some setting I can change?










share|improve this question













Excel (Office 365) is making a strange error when pasting numbers only:



cell A1 value = 1727979.28
cell A2 value = 1678319.54
cell A3 formula = (A2 - A1) -> result = -49659.74



if I select&copy A3 and paste special (values only) to A4 the value in A4 = -49659.7399999999 ?!?



Is this expected bahaviour or some setting I can change?







microsoft-excel copy-paste






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 17 at 10:26









TheMixy

32




32












  • It's not formatting, the values (if you look inside the cells) are exactly as I typed above
    – TheMixy
    Dec 17 at 11:01


















  • It's not formatting, the values (if you look inside the cells) are exactly as I typed above
    – TheMixy
    Dec 17 at 11:01
















It's not formatting, the values (if you look inside the cells) are exactly as I typed above
– TheMixy
Dec 17 at 11:01




It's not formatting, the values (if you look inside the cells) are exactly as I typed above
– TheMixy
Dec 17 at 11:01










1 Answer
1






active

oldest

votes


















3














That's not a mistake. It's all about how Excel stores such numbers, in this case in point float number variables, which can be seen as Scientific Notation and a division of numbers. This division is an aproximation of the real number, in you case 49659.74 so it's going to get stored as a compact division that can generate a "string" of numbers like that and then it's going to place the decimal point, that's where the scientific notation comes around.



For a machine -49659.74 and -49659.7399999999, are pretty much the same. And for most cases it's good enough. If you need to use only two decimals, sorround your formula with =round(YOUR_FORMULA;2) this way your number will get rounded to two decimal.



It's addressed by Microsoft Here How Excel handles decimal number.



Cheers






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385190%2fexcel-makes-a-mistake-at-paste-special-number-only%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    That's not a mistake. It's all about how Excel stores such numbers, in this case in point float number variables, which can be seen as Scientific Notation and a division of numbers. This division is an aproximation of the real number, in you case 49659.74 so it's going to get stored as a compact division that can generate a "string" of numbers like that and then it's going to place the decimal point, that's where the scientific notation comes around.



    For a machine -49659.74 and -49659.7399999999, are pretty much the same. And for most cases it's good enough. If you need to use only two decimals, sorround your formula with =round(YOUR_FORMULA;2) this way your number will get rounded to two decimal.



    It's addressed by Microsoft Here How Excel handles decimal number.



    Cheers






    share|improve this answer


























      3














      That's not a mistake. It's all about how Excel stores such numbers, in this case in point float number variables, which can be seen as Scientific Notation and a division of numbers. This division is an aproximation of the real number, in you case 49659.74 so it's going to get stored as a compact division that can generate a "string" of numbers like that and then it's going to place the decimal point, that's where the scientific notation comes around.



      For a machine -49659.74 and -49659.7399999999, are pretty much the same. And for most cases it's good enough. If you need to use only two decimals, sorround your formula with =round(YOUR_FORMULA;2) this way your number will get rounded to two decimal.



      It's addressed by Microsoft Here How Excel handles decimal number.



      Cheers






      share|improve this answer
























        3












        3








        3






        That's not a mistake. It's all about how Excel stores such numbers, in this case in point float number variables, which can be seen as Scientific Notation and a division of numbers. This division is an aproximation of the real number, in you case 49659.74 so it's going to get stored as a compact division that can generate a "string" of numbers like that and then it's going to place the decimal point, that's where the scientific notation comes around.



        For a machine -49659.74 and -49659.7399999999, are pretty much the same. And for most cases it's good enough. If you need to use only two decimals, sorround your formula with =round(YOUR_FORMULA;2) this way your number will get rounded to two decimal.



        It's addressed by Microsoft Here How Excel handles decimal number.



        Cheers






        share|improve this answer












        That's not a mistake. It's all about how Excel stores such numbers, in this case in point float number variables, which can be seen as Scientific Notation and a division of numbers. This division is an aproximation of the real number, in you case 49659.74 so it's going to get stored as a compact division that can generate a "string" of numbers like that and then it's going to place the decimal point, that's where the scientific notation comes around.



        For a machine -49659.74 and -49659.7399999999, are pretty much the same. And for most cases it's good enough. If you need to use only two decimals, sorround your formula with =round(YOUR_FORMULA;2) this way your number will get rounded to two decimal.



        It's addressed by Microsoft Here How Excel handles decimal number.



        Cheers







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 17 at 12:10









        dmb

        654212




        654212






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385190%2fexcel-makes-a-mistake-at-paste-special-number-only%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Probability when a professor distributes a quiz and homework assignment to a class of n students.

            Aardman Animations

            Are they similar matrix