Remove Seconds from Excel DateTime field value












1














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?










share|improve this question



























    1














    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?










    share|improve this question

























      1












      1








      1







      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?










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 13 '15 at 10:36









      user3340627

      153112




      153112






















          2 Answers
          2






          active

          oldest

          votes


















          0














          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")





          share|improve this answer





























            -1














            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.






            share|improve this answer

















            • 1




              Close.  Try =A1-TIME(0,0,SECOND(A1)).
              – Scott
              Sep 13 '15 at 14:56











            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%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









            0














            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")





            share|improve this answer


























              0














              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")





              share|improve this answer
























                0












                0








                0






                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")





                share|improve this answer












                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")






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jul 27 at 10:20









                ALICE-down-the-ZOMBIE-hole

                92




                92

























                    -1














                    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.






                    share|improve this answer

















                    • 1




                      Close.  Try =A1-TIME(0,0,SECOND(A1)).
                      – Scott
                      Sep 13 '15 at 14:56
















                    -1














                    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.






                    share|improve this answer

















                    • 1




                      Close.  Try =A1-TIME(0,0,SECOND(A1)).
                      – Scott
                      Sep 13 '15 at 14:56














                    -1












                    -1








                    -1






                    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.






                    share|improve this answer












                    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.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    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














                    • 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


















                    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%2f972370%2fremove-seconds-from-excel-datetime-field-value%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

                    Сан-Квентин

                    8-я гвардейская общевойсковая армия

                    Алькесар