+ Reply to Thread
Results 1 to 4 of 4

Combining two cells to get a date and time in one cell

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    41

    Combining two cells to get a date and time in one cell

    I'm trying to combine two cells together, each with content.

    A1 has 12/1/2010, B1 has 8:30 PM

    I want '12/1/2010 8:30 PM' in C1

    so i type in C1, =A1&" "&B1

    but I end up with the accounting format, something like 40,000. I want the date and time.

    How do I change this format?
    Attached Files Attached Files
    Last edited by NBVC; 01-26-2011 at 05:26 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Combining two cells but ending up with different result

    Try instead:

    =A1+B1

    and format the cell as Date with Time as per C3
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-20-2011
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Combining two cells to get a date and time in one cell

    ah thank you so much!!!

  4. #4
    Registered User
    Join Date
    07-15-2013
    Location
    KL, IN
    MS-Off Ver
    Excel 2007
    Posts
    1

    Thumbs up Re: Combining two cells to get a date and time in one cell


    Google Spread Sheet
    ---------------
    A1 :- Date in Date Format in Single Cell Ex: 7/15/2013
    B1 :- Time in Time Format in Single Cell Ex: 12:58 PM

    C1 :- (=A1&" "&B1) Date + Time in Single Cell
    Ex: 7/15/2013 12:58


    EXCEL 2007
    ---------------
    A1 :- Date in Date Format in Single Cell Ex: 2 May 2012
    B1 :- Time in Time Format in Single Cell Ex: 10.25AM

    C1 :- (=A1 + B1) Date + Time in Single Cell
    Ex: 02/05/2012 10.25AM

+ 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