+ Reply to Thread
Results 1 to 7 of 7

concatenating two times into one cell

  1. #1
    Registered User
    Join Date
    05-09-2012
    Location
    Manchester, England
    MS-Off Ver
    O365
    Posts
    23

    concatenating two times into one cell

    Hi

    I am trying to concatenate 2 cells that have start and finish times in, and put both times into one cell seperated by -

    example:
    Column Headings
    A1: Start Time
    B1: Finish Time
    C1: Shift

    Data
    A1: 08:00 ([h]:mm format)
    B1: 16:00 ([h]:mm format)
    C1: 08:00 - 16:00

    I have tried =Concatenate(A1, " - ", B1) it does it but turns the time into decimal.

    Please can someone help

    Thanks

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: concatenating two times into one cell

    Hi try this
    TEXT(A1,"hh:mm") &" - "&TEXT(B1,"HH:mm")
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Registered User
    Join Date
    05-07-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    62

    Re: concatenating two times into one cell

    Hi,

    try this

    =TEXT(A1,"hh:mm")&"-"&TEXT(B1,"hh:mm")

    Shekhar Sharma
    Please click on the * if resolution works for you

  4. #4
    Registered User
    Join Date
    05-07-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    62

    Re: concatenating two times into one cell

    sorry Tom, I was late by 1 minute

  5. #5
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: concatenating two times into one cell

    Do not be sorry there is no need of this
    Have a nice day

  6. #6
    Registered User
    Join Date
    05-09-2012
    Location
    Manchester, England
    MS-Off Ver
    O365
    Posts
    23

    Re: concatenating two times into one cell

    Thanks very much for the quick response, this works great

  7. #7
    Registered User
    Join Date
    05-07-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    62

    Re: concatenating two times into one cell

    Hi,

    Please mark this post as Resolved, if you don't have any other query regarding the same.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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