+ Reply to Thread
Results 1 to 8 of 8

Merge date and time columns without loosing time

  1. #1
    Registered User
    Join Date
    07-23-2005
    Posts
    46

    Merge date and time columns without loosing time

    Hi I would like to merge a colum with a date and a column with a time into one to show DD/MM/YYYY HH:MM

    I have tried merge cells and it takes out the time and leaves the date only.

    Thanks

    Rob

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by robhargreaves
    Hi I would like to merge a colum with a date and a column with a time into one to show DD/MM/YYYY HH:MM

    I have tried merge cells and it takes out the time and leaves the date only.

    Thanks

    Rob
    Hi,

    Just add the two, as

    =INT(A1)+MOD(B1,1)

    where A1 is the date and B1 the time, then adjust the cell format of the answer to show date & time.

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    07-23-2005
    Posts
    46
    Thanks thats great, much appreciated

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by robhargreaves
    Thanks thats great, much appreciated
    Hi,

    Thanks for the response.

  5. #5
    Registered User
    Join Date
    05-31-2012
    Location
    e-ville
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Merge date and time columns without loosing time

    Solved my problem 7 years later....

  6. #6
    Registered User
    Join Date
    07-11-2014
    Location
    New Zealand
    MS-Off Ver
    2010
    Posts
    5

    Re: Merge date and time columns without loosing time

    Hi there,

    Thanks for the above formula. I applied it to my data and it works for some cells and not others.

    e.g. one cell will work perfectly - 1/07/2010 11:57, and the cell below will come up as #VALUE!

    Despite this both the date and time columns for the correct working cells and non working cells are in the same format (date 14/03/01; time 13:30:55). Does anyone know how I can solve this problem?

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Merge date and time columns without loosing time

    You should stay in your own thread...

    https://www.excelforum.com/showthread.php?t=1024082

    Some moderators will even "yell" at you for posting your question in someone else's thread!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Merge date and time columns without loosing time

    @Krista1984

    Tony is right.

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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