Combine Date field from 2 seperate fields

Posted on 2011-10-10
Last Modified: 2012-06-27
Hello I have 3 columns in Excel where one had Date in the format mm\dd\yy and 2nd column is Hour and third column is MInutes and I want to have a column which will combine all thses three values in the format mm\dd\yy hh:mm kindly help?
Question by:welcome 123
    LVL 59

    Assisted Solution

    by:Saurabh Singh Teotia

    Use this formula assuming you have values in A1 as in date and time in b1..

    =TEXT(a1,"mm/dd/yy") & " " & text(b1,"hh:mm")

    LVL 59

    Expert Comment

    by:Saurabh Singh Teotia

    Alternatively you can also do this...


    and format the same as mm\dd\yy hh:mm by right click format cells-->custom and enter your format there..
    LVL 50

    Accepted Solution

    If date is in A2, hours (as a number) in B2 and minutes (also as a number) in C2 then in D2 try


    format D2 in required format

    regards, barry

    PS Hey Saurabh!
    LVL 50

    Expert Comment

    by:barry houdini
    See example of the above

    LVL 59

    Expert Comment

    by:Saurabh Singh Teotia

    Hi Barry, How ru doing buddy..?
    LVL 9

    Expert Comment

    Assuming your 3 columns are A2(mm/dd/yy), B2(hh)  and C2(mm),
    then formula to concatenate all three is as follows:

    =TEXT(A2,"mm/dd/yyyy" )&" "& RIGHT("00" & B2,2) & ":" & RIGHT("00" & C2,2)

    LVL 92

    Expert Comment

    by:Patrick Matthews
    Welcome back, Saurabh!

    Author Comment

    by:welcome 123
    Well I tried one which really worked well but did not ttu others but I always belive ingiving points to the first come solution, so will try them and then close and give points and the one i Tried and is working is from barryhoudini: =A2+(B2+C2/60)/24


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
    How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
    The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
    This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now