+ Reply to Thread
Results 1 to 5 of 5

Special date formatting merge with hours

  1. #1
    Registered User
    Join Date
    03-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    9

    Special date formatting merge with hours

    Hello,

    I would need support for the following:
    I have one column with a date 26.09.2014 and one with a time: 09:15
    I would need to merge both cells to be displayed as per this format: 26/09/2014 09:15
    I use this formula: =CONCATENATE(A1;" ";B2) and get this result: 41908 09:15

    I've tried to change the date format in first cell but nothing works and I always get the ref. number of the date instead.
    Is somebody would have a solution?

    Thanks in advance

    Franck

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Special date formatting merge with hours

    Simply =A1+B2 and format the cell with date and time.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Special date formatting merge with hours

    At a second look, the fact that when you concatenate, it comes out 41908 09:15 indicates that your time is stored as text, not time (check by =ISNUMBER(B2) should be TRUE)
    That may need to be fixed first. How are all your times presented?
    Last edited by ChemistB; 06-13-2014 at 09:27 AM.

  4. #4
    Registered User
    Join Date
    03-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Special date formatting merge with hours

    Thanks a lot for your answer,
    That was simple actually.
    To reply to your question; my date is formatted as a date. However my time (hh:mm) is formatted as a text. do you know how I could change "9:15 text formatted" to "9:15 time formatted"?

    thanks

    Franck

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Special date formatting merge with hours

    If Excel recognizes it as a time and there are no extra spaces or anything to throw it off, the simple act of adding it to the date will convert the result to a number. (If not, you'll get an error).

    If you need the cells with time to be numerical for other operations, try doing a Text to Column (on Data tab in 2007 and up).

+ 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. Help with conditional formatting a cell if its date is older than 2 hours.
    By xesvuli420 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 01-02-2014, 06:40 AM
  2. [SOLVED] Need your help with conditional formatting! Date, special value and 3 results.
    By alexjust in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-27-2013, 06:06 PM
  3. Date Merge // formatting // repeat values
    By nicci113 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-16-2013, 10:18 AM
  4. [SOLVED] Using Conditional Formatting to Highlight Cells When Date/Time is 12 & 18 Hours Later
    By redogue in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-31-2012, 10:53 AM
  5. Merge mixed data - retain date/time formatting
    By symaxf in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-07-2011, 03:08 PM

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