Excel makes a mistake at paste special - number only
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© 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
add a comment |
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© 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
It's not formatting, the values (if you look inside the cells) are exactly as I typed above
– TheMixy
Dec 17 at 11:01
add a comment |
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© 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
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© 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
microsoft-excel copy-paste
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Dec 17 at 12:10
dmb
654212
654212
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
It's not formatting, the values (if you look inside the cells) are exactly as I typed above
– TheMixy
Dec 17 at 11:01