+ Reply to Thread
Results 1 to 3 of 3

concatenate date and time

  1. #1
    Registered User
    Join Date
    10-06-2014
    Location
    Paris, France
    MS-Off Ver
    2010 windows
    Posts
    2

    concatenate date and time

    Hello,

    I am trying to concatenate 2 cells, one (A1) with a date in format dd/MM/yyyy and the other (A2) with an hour from 0 to 23 representing an hour of the day.

    Therefore I use this formula:
    =concatenate(text(A1;"dd/MM/yyyy");" ";A2;":00")

    and I get for example
    01/01/2013 6:00

    sadly, Excel does not recognise it as a date and i really need to have that hour written 06:00 to do what i want to do afterwards. if i double clic on the cell and then elsewhere Excel modifies it and put it in the good format. so i get 01/01/2013 06:00, which is what I want.
    However, i don't want to double clic and 16000 cells.
    Can someone tell me if it is possible to do it automatically ? or maybe give me a method to write the date directly in the good format.

    Thanks,
    Jérôme

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: concatenate date and time

    Hi, and welcome to the forum

    Since you're dealing with numbers then there's no need to concatenate them. Just use

    =A1+A2/24

    and format as necessary
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-06-2014
    Location
    Paris, France
    MS-Off Ver
    2010 windows
    Posts
    2

    Re: concatenate date and time

    Works perfectly,
    Thanks so much
    Jérôme

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Concatenate Date+Time+Am or PM then sum hours
    By bjsmithinc in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-16-2013, 09:17 PM
  2. concatenate a field with date and time
    By Foxcan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-05-2009, 03:30 PM
  3. merge date/time value , concatenate ?
    By okl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-03-2008, 07:15 AM
  4. Concatenate Date and Time
    By Jim15 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2008, 10:14 AM
  5. Date and Time Concatenate Help
    By Mr Gow in forum Excel General
    Replies: 3
    Last Post: 01-22-2007, 10:44 PM

Tags for this Thread

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