Remove Seconds from Excel DateTime field value
I need to remove the seconds date part from my Excel DateTime field that looks as follows:
7/8/2014 4:17:59 PM
I tried to format the cell to : mm/dd/yyyy hh:mm
This displayed the cell in the correct format, but it hasn't altered the actual value for the cell. When I compare a field with the value mentioned above with another field that has the same value but missing the second, Excel shows them as different values.
Example:
Cell 1: 7/8/2014 4:17 PM
(True value: 7/8/2014 4:17:59 PM
)
Cell 2: 7/8/2014 4:17 PM
Are Not Duplicates according to excel.
How can I remove the seconds part from that datetime completely?
microsoft-excel format
add a comment |
I need to remove the seconds date part from my Excel DateTime field that looks as follows:
7/8/2014 4:17:59 PM
I tried to format the cell to : mm/dd/yyyy hh:mm
This displayed the cell in the correct format, but it hasn't altered the actual value for the cell. When I compare a field with the value mentioned above with another field that has the same value but missing the second, Excel shows them as different values.
Example:
Cell 1: 7/8/2014 4:17 PM
(True value: 7/8/2014 4:17:59 PM
)
Cell 2: 7/8/2014 4:17 PM
Are Not Duplicates according to excel.
How can I remove the seconds part from that datetime completely?
microsoft-excel format
add a comment |
I need to remove the seconds date part from my Excel DateTime field that looks as follows:
7/8/2014 4:17:59 PM
I tried to format the cell to : mm/dd/yyyy hh:mm
This displayed the cell in the correct format, but it hasn't altered the actual value for the cell. When I compare a field with the value mentioned above with another field that has the same value but missing the second, Excel shows them as different values.
Example:
Cell 1: 7/8/2014 4:17 PM
(True value: 7/8/2014 4:17:59 PM
)
Cell 2: 7/8/2014 4:17 PM
Are Not Duplicates according to excel.
How can I remove the seconds part from that datetime completely?
microsoft-excel format
I need to remove the seconds date part from my Excel DateTime field that looks as follows:
7/8/2014 4:17:59 PM
I tried to format the cell to : mm/dd/yyyy hh:mm
This displayed the cell in the correct format, but it hasn't altered the actual value for the cell. When I compare a field with the value mentioned above with another field that has the same value but missing the second, Excel shows them as different values.
Example:
Cell 1: 7/8/2014 4:17 PM
(True value: 7/8/2014 4:17:59 PM
)
Cell 2: 7/8/2014 4:17 PM
Are Not Duplicates according to excel.
How can I remove the seconds part from that datetime completely?
microsoft-excel format
microsoft-excel format
asked Sep 13 '15 at 10:36
user3340627
153112
153112
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
This might be late but I just had the same issue and solved it with the following formula:
=TEXT(A2,"MM/DD/YYYY HH:MM")
Where A2 is the cell containing the timestamp with seconds
Alternatively this should also work with AM/PM
=TEXT(A2,"MM/DD/YYYY H:MM AM/PM")
add a comment |
This may help: (assuming your date is in A1)
=A1-SECOND(A1)
This will, in another cell, put the same value, with seconds set to 0.
1
Close. Try=A1-TIME(0,0,SECOND(A1))
.
– Scott
Sep 13 '15 at 14:56
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%2f972370%2fremove-seconds-from-excel-datetime-field-value%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
This might be late but I just had the same issue and solved it with the following formula:
=TEXT(A2,"MM/DD/YYYY HH:MM")
Where A2 is the cell containing the timestamp with seconds
Alternatively this should also work with AM/PM
=TEXT(A2,"MM/DD/YYYY H:MM AM/PM")
add a comment |
This might be late but I just had the same issue and solved it with the following formula:
=TEXT(A2,"MM/DD/YYYY HH:MM")
Where A2 is the cell containing the timestamp with seconds
Alternatively this should also work with AM/PM
=TEXT(A2,"MM/DD/YYYY H:MM AM/PM")
add a comment |
This might be late but I just had the same issue and solved it with the following formula:
=TEXT(A2,"MM/DD/YYYY HH:MM")
Where A2 is the cell containing the timestamp with seconds
Alternatively this should also work with AM/PM
=TEXT(A2,"MM/DD/YYYY H:MM AM/PM")
This might be late but I just had the same issue and solved it with the following formula:
=TEXT(A2,"MM/DD/YYYY HH:MM")
Where A2 is the cell containing the timestamp with seconds
Alternatively this should also work with AM/PM
=TEXT(A2,"MM/DD/YYYY H:MM AM/PM")
answered Jul 27 at 10:20
ALICE-down-the-ZOMBIE-hole
92
92
add a comment |
add a comment |
This may help: (assuming your date is in A1)
=A1-SECOND(A1)
This will, in another cell, put the same value, with seconds set to 0.
1
Close. Try=A1-TIME(0,0,SECOND(A1))
.
– Scott
Sep 13 '15 at 14:56
add a comment |
This may help: (assuming your date is in A1)
=A1-SECOND(A1)
This will, in another cell, put the same value, with seconds set to 0.
1
Close. Try=A1-TIME(0,0,SECOND(A1))
.
– Scott
Sep 13 '15 at 14:56
add a comment |
This may help: (assuming your date is in A1)
=A1-SECOND(A1)
This will, in another cell, put the same value, with seconds set to 0.
This may help: (assuming your date is in A1)
=A1-SECOND(A1)
This will, in another cell, put the same value, with seconds set to 0.
answered Sep 13 '15 at 11:04
user1532080
48625
48625
1
Close. Try=A1-TIME(0,0,SECOND(A1))
.
– Scott
Sep 13 '15 at 14:56
add a comment |
1
Close. Try=A1-TIME(0,0,SECOND(A1))
.
– Scott
Sep 13 '15 at 14:56
1
1
Close. Try
=A1-TIME(0,0,SECOND(A1))
.– Scott
Sep 13 '15 at 14:56
Close. Try
=A1-TIME(0,0,SECOND(A1))
.– Scott
Sep 13 '15 at 14:56
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%2f972370%2fremove-seconds-from-excel-datetime-field-value%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