Note: The other languages of the website are Google-translated. Back to English
English

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

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

#### 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:

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

#### 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.

 with more than 300 handy functions, makes your jobs more easier. Free Downloadfree full-featured in 30 days

After 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:

2. In the popping dialog, specify the setting:

(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

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.

#### 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!

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

### The Best Office Productivity Tools

#### Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

• Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
• Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
• Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
• Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
• Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
• Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
• Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
• Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
• More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

#### 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!
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Combine the date and time with a plus sign + in a third column. Custom formatting can look after preserving the time format.
This comment was minimized by the moderator on the site
Why make it so complicated? Why not simply say "=A2+B2" and format that column to display date and time? As long as you have only put the date in column A, it will assume the time is 00:00, and the addition will therefore be the exact date and time of the two columns.
This comment was minimized by the moderator on the site
Wow.....thanks Graham. Can't believe how much of a headache this caused me to do all because I didn't start with the simplest solution first. Sometimes less is more.
This comment was minimized by the moderator on the site
Wow, that makes such a difference, and with such simplicity.
This comment was minimized by the moderator on the site
[quote]Why make it so complicated? Why not simply say "=A2+B2" and format that column to display date and time? As long as you have only put the date in column A, it will assume the time is 00:00, and the addition will therefore be the exact date and time of the two columns.By Graham Dragon[/quote] Appreciate your answer. In fact, in solution 1, there is a tip to remind everyone can use the formula =A2+B2 to solve the job, too. Thank you for your reading again.
This comment was minimized by the moderator on the site
This was absolutely correct. I was in a state of panic and in one click, everything was sorted. I copied the formular and it worked like a charm. Thank you very much :D
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Thank you, you saved my day !
This comment was minimized by the moderator on the site
This is so great, thank you!
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
(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
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
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
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
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
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

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
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
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.
There are no comments posted here yet