Skip to main content

How to combine date and time into one cell in Excel?

doc combine date time into one 1
There are two columns in a worksheet, one is the date, the other is time, as shown as below, is there any way to quickly combine these two columns into one, and keep the time format? Now, I introduce two ways in Excel to combine date column and time column into one and keep the time format.
Combine date and time with formula in Excel
Combine date and time with Kutools for Excel good idea3      play

arrow blue right bubble Combine date and time with formula in Excel

There is a very simple formula that can quickly help you combine date column and time column into one.

Type this formula =TEXT(A2,"m/dd/yy ")&TEXT(B2,"hh:mm:ss") (A2 indicates the first data in date column, B2 stands the first data in time column, you can change them as you need) into a blank cell, and press Enter key, then drag the fill handle to fill the range you want to use this formula. See screenshot:
doc combine date time into one 2

Tip: You also can use this formula =A2+B2 and then format the result cells as date and time formatting.


arrow blue right bubble Combine date and time with Kutools for Excel

With above formula, you may lost the formula result when you edit the worksheet. Now I introduce a Combine Rows, Columns or Cells without Losing Data utility of Kutools for Excel for you to directly combine the data and time cells into one. If you like to try new handy tool, you can download it to have a try.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After free installing Kutools for Excel, please do as below:

1. Select the dates and times you want to combine, and click Kutools > Merge & SplitCombine Rows, Columns or Cells without Losing Data. See screenshot:
doc combine date time into one 3

2. In the popping dialog, specify the setting:

doc combine date time into one 4
(1) Check Combine columns under To combine selected cells according to following options (If your dates and times are place into two rows, you can check Combine rows),

(2) Select a separator to separate the combined data, you can choose Space, Nothing or type the separator you need into the textbox,

(3) Place the result to : Left cell or Right cell,

(4) Specify the options about the combined cells, Keep contents of combined cells, Delete contents of combined cells, Merge the combined cells

3. Click Ok. And then you need to format the cells as date and time format.

Keep contents of combined cells
Delete contents of combined cells
Merge the combined cells
doc combine date time into one 5
doc combine date time into one 6
doc combine date time into one 7

Note:
This operation supports Undo.
The result cells needed to be formatted as mm/dd/yyyy hh:mm:ss formatting in Format Cells dialog.

Tip. If you want to have a free trial of the Combine Cells function, please go to free try Kutools for Excel first, and then go to apply the operation according above steps.

arrow blue right bubble Combine Date and Time into One Cell


Easily Combine multiple sheets/Workbook into one Single sheet or Workbook

To combinne multiples sheets or workbooks into one sheet or workbook may be edious in Excel, but with the Combine function in Kutools for Excel, you can combine merge dozens of sheets/workbooks into one sheet or workbook, also, you can consolidate the sheets into one by several clicks only.  Click for full-featured 30 days free trial!
combine sheets
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (24)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Para todos aquellos que no les funciono, la forma correcta sería esta:
=TEXTO(D9,"dd/m/aaaa")+TEXTO(E9,"hh:mm:ss")
recuerden solo cambiar sus celdas y columnas
This comment was minimized by the moderator on the site
Hi, alejandro, thanks for your message. The formula in the articel works at English version but not work at Spanish version. Thanks again for you to privide a formula for Spanish readers.
This comment was minimized by the moderator on the site
Hi AllWhy do i get #Value if i try and combine Date and Time Thanks
This comment was minimized by the moderator on the site
Hi, maybe your data is in a format the formula not support. In a new sheet, enter the date and time manully and try the formula again.
This comment was minimized by the moderator on the site
hi!
my date it's fine that's normal but the hours it's like this 54054 it's mean 05:40:54, and i need combine whit my date

can you help me please?
This comment was minimized by the moderator on the site
Hi, Gaby, pnly the time string must be in 6-digit such like 054054, my formula=TEXT(F1,"m/dd/yy ")&TEXT(TIME(LEFT(G1,2),MID(G1,3,2),RIGHT(G1,2)),"hh:mm:ss") can help you. See screenshot:
This comment was minimized by the moderator on the site
i WANT DATE OF YESTERDAY AND TIME DIFFERENCE BETWEEN TWO COUNTY TOGETHER..HOW CN I GET THAT?
This comment was minimized by the moderator on the site
The article saved my job because I finished the report I work on in 5minutes but I need assistance of a formula that will return a difference between two cells with combined date and time. Example 18/2/19 08:35 and 21/2/19 08:32.
This comment was minimized by the moderator on the site
how can you combine a column with a date and another column with a code?
This comment was minimized by the moderator on the site
Sorry, Robin, your problem is not clear, could you describe it with more details or upload some screenshots? I do not know what is code?
This comment was minimized by the moderator on the site
Col A= 2-Jan-19 Col B= 3:07 PM and formal is TEXT(B4,"dd/mmm/yyyy")&TEXT(C4,"hh:mm"), and output is 01/02/1915:07... if i need the Space in between Date and Time
This comment was minimized by the moderator on the site
Use like this =TEXT(H2,"m.dd.yy")& " "&TEXT(I2,"hh:mm:ss")
This comment was minimized by the moderator on the site
(Column B) (Column C) (Column D)
(KASHIF GULZAR SHAIKH) (10-05-2018 10:36) (24381530028971)

after Marge Formula =B2&" "&C2&" "&D2
KASHIF GULZAR SHAIKH 43230.4419097222 24381530028971
This comment was minimized by the moderator on the site
B C D
KASHIF GULZAR SHAIKH 10-05-2018 10:36 24381530028971

after merge
KASHIF GULZAR SHAIKH 43230.4419097222 24381530028971
This comment was minimized by the moderator on the site
use this
=TEXT(10-05-2018,"dd:mm:yyyy")&" "&TEXT(10:36,"hh:mm")&" "&TEXT(24381530028971,"00000000000000")
This comment was minimized by the moderator on the site
This is so great, thank you!
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations