Combine Date and Time in Excel (3 Easy Ways)

Sumit Bansal
Written by

Sumit Bansal is the founder of TrumpExcel.com and a 13-time Microsoft Excel MVP. He started this site in 2013 to share his passion for Excel through easy tutorials, tips, and training videos, helping you master Excel, boost productivity, and maybe even enjoy spreadsheets!

Last updated

Sometimes you may have dates in one column and time values in another column and you want to combine these to get one single date and time value in a cell.

And if you’re thinking that you can do that by easily combining the two cells by using the concatenate formula or the & sign, you’ll find out that it doesn’t work.

I have tried to use the & sign to combine the cells that contain date and time, and the resulting value is not in the expected format.

In this tutorial, I will show you three ways to quickly combine date and time values in Excel, two with formulas and one with Power Query.

So let’s get started!

Follow along with the example file

Combine Date and Time Excel.xlsx

Download

Combine Date and Time in One Cell with a Simple Addition

Excel stores date and time values as numbers in the back end.

For example, 44197.375 in Excel represents 01-01-2021 09:00 AM.

The integer part of the above number represents a date (which is 01 Jan 2021), and the decimal part of the number represents a time (which is 9 AM).

So, if you have dates in one column and time in another column, the easiest way to combine these and get the date and time in one single cell would be to simply add these two cells.

Below is a list of store pickups with the pickup date and the pickup time in separate columns, and I want the combined date and time in column D.

Store pickups with the pickup date and pickup time in separate columns and an empty Pickup Date & Time column

Below is the formula that will do that:

=B2:B11+C2:C11
=B2:B11+C2:C11 in D2 spilling down to D11; D2 shows the date and time, the cells below show serial numbers

This formula adds each date in column B to the time next to it in column C. Since it’s a dynamic array formula, you enter it once in D2 and the results spill down to D11 automatically.

As I mentioned, dates and times are stored as numbers in Excel. The combined date and time values that you see in column D are also decimal numbers in the back end.

This is why the formatting matters here. When you enter this formula, Excel gives D2 a date and time format on its own, but the cells the result spills into stay in the General format.

So D2 shows 3/2/2026 9:15 (with US date settings), while the cells below it show numbers like 46083.48611.

To fix this, change the cell formatting of the whole column using the Format Cells dialog box (where you can specify the custom code to show the date and time in a specific way).

Here are the steps to do this:

  1. Select the cells that have the result (D2:D11 in our example).
  1. Press Ctrl + 1 (Command + 1 on a Mac) to open the Format Cells dialog box.
Format Cells dialog opened with Ctrl + 1 on the result cells
  1. In the Number tab, click Custom in the Category list.
  1. In the Type field, enter m/d/yyyy h:mm AM/PM.
Custom category in Format Cells with m/d/yyyy h:mm AM/PM in the Type field
  1. Click OK.
Combined date and time values in column D after applying the custom format

Now every cell in column D shows the date as well as the time, such as 3/2/2026 9:15 AM.

If you see ### in some cells, the column isn’t wide enough for the full date and time. Double-click the right edge of the column header to widen it.

Pro Tip: You can use any other date and time code in the Type field. For example, dd-mmm-yyyy hh:mm shows 02-Mar-2026 09:15, and the value in the cell stays exactly the same.

If you are using Excel 2019 or earlier, enter the below formula in cell D2 and then copy it down to all the cells in the column:

=B2+C2

It gives the same result, and when you copy the formula down, the date and time format from D2 gets copied along with it.

Concatenate Date and Time Using the TEXT Function

Another quick way to combine date and time in Excel is by using the TEXT function to join them as text.

If you join a date cell and a time cell directly with the & sign, you get the numbers Excel stores in the back end, something like 46083 0.385416666666667. The TEXT function fixes this by converting each value into text in the format you specify.

Below is the same list of store pickups, and I want the date and time joined together as text in column D.

Store pickups with an empty Date & Time (Text) column

Below is the formula that can do this:

=TEXT(B2:B11,"dd-mmm-yyyy")&" "&TEXT(C2:C11,"hh:mm AM/PM")
TEXT formula in D2 joining the date and time as text, spilling to D11

The TEXT function allows you to take any value as the input and show it in the specified format.

In our example, I have used two TEXT functions. The first one takes the date value and displays it as a date (02-Mar-2026), and the second one takes the time value and displays it as the time (09:15 AM).

If your time values have seconds, use “hh:mm:ss AM/PM” as the time format so the seconds show up too.

And since I want both of these in the same cell, I have used the & sign to join them, with a space as the separator in between the date and time. The results spill down to D11 automatically.

Since we have used the TEXT function to specify the format for the date and the time, it does not matter how the input values are displayed in the cell.

For example, even if I have the numerical values instead of the date and the time, this formula would still give me the right result.

Important: The result of this formula is a text string, not a real date and time value. You can’t use it in date calculations, and sorting puts 04-Mar-2026 04:45 PM ahead of 04-Mar-2026 10:05 AM, so use the addition method when you need a real value.

You can also get the same result with a single TEXT function by adding the date and time first:

=TEXT(B2:B11+C2:C11,"dd-mmm-yyyy hh:mm AM/PM")

It’s shorter, but the two-TEXT version lets you format the date and the time separately.

If you prefer the CONCAT function, the below formula gives the same result. Enter it in cell D2 and copy it down, because CONCAT joins everything you give it into one cell and can’t spill a separate result for each row:

=CONCAT(TEXT(B2,"dd-mmm-yyyy")," ",TEXT(C2,"hh:mm AM/PM"))

The below formula does the same thing with the & sign and works in every version of Excel, including Excel 2019 or earlier. Enter it in cell D2 and then copy it down:

=TEXT(B2,"dd-mmm-yyyy")&" "&TEXT(C2,"hh:mm AM/PM")

Another big benefit of using the TEXT function is that you can combine other text strings with the result of this formula.

To give you an example, let’s say I don’t want just the date and the time. I want the result in the following format: Date: 02 Mar 2026, Time: 09:15 AM.

To do this, you can use the below formula:

="Date: "&TEXT(B2:B11,"dd mmm yyyy")&", Time: "&TEXT(C2:C11,"hh:mm AM/PM")
TEXT formula with Date: and Time: labels in D2, spilling to D11

Since the result of the TEXT function is a text string, we can easily combine it with the other text strings using the ampersand operator (&) or the CONCAT function.

Merge Date and Time Columns Using Power Query

If you get this kind of data regularly (say, a weekly export from another system), Power Query can combine the date and time columns for you. You set up the steps once and refresh whenever the data changes.

Below is the same list of store pickups in an Excel Table named Pickups, and I want a combined date and time column in a new table next to it.

Store pickups in an Excel Table named Pickups

Power Query works from an Excel Table. If your data is a plain range, Excel offers to convert it into a table when you click From Table/Range.

Here are the steps:

  1. Select any cell in the Pickups table.
  1. Click the Data tab.
  1. In the Get & Transform Data group, click From Table/Range.
From Table/Range in the Get & Transform Data group on the Data tab

This opens the Power Query editor. Power Query reads the pickup dates as Date/Time values and the pickup times as decimal numbers.

Combine Date and Time joins a Date column with a Time column, so you need to change both columns to the right data type first.

  1. Click the data type icon at the left of the Pickup Date column header and select Date.
Data type menu on the Pickup Date column with Date highlighted
  1. In the Change Column Type dialog box, click Replace current.
  1. Click the data type icon at the left of the Pickup Time column header and select Time.
  1. In the Change Column Type dialog box, click Replace current.
Pickup Date set to Date and Pickup Time set to Time in the Power Query Editor
  1. Click the Pickup Date column header.
  1. Hold the Ctrl key and click the Pickup Time column header.
Pickup Date and Pickup Time columns both selected in the Power Query Editor
  1. Click the Add Column tab.
  1. In the From Date & Time group, click Date.
  1. Select Combine Date and Time.
Add Column tab, Date drop-down with Combine Date and Time highlighted

Power Query adds a new column named Merged at the end, with each row’s date and time combined into a single value.

  1. Double-click the Merged column header, type Pickup Date & Time, and press Enter.
Merged column renamed to Pickup Date & Time in the Power Query Editor
  1. Click the Home tab.
  1. Click the Close & Load drop-down arrow and select Close & Load To.
  1. In the Import Data dialog box, select Existing worksheet.
  1. In the box below it, enter =$E$1.
Import Data dialog with Existing worksheet and =$E$1 entered
  1. Click OK.
Power Query result table in E1:H11 next to the source table, with the combined Pickup Date & Time column

This places the result table next to the source table, starting in cell E1, so both tables are visible. If you click Close & Load instead, Excel puts the result on a new worksheet.

The best part about this method is that the result stays connected to the Pickups table. When you add new pickups or change existing ones, right-click any cell in the result table and choose Refresh, and Power Query runs the same steps again.

So these are three simple ways you can use to combine date and time in Excel.

I hope you found this tutorial useful.

Other Excel tutorials you may also like:

Sumit Bansal

Sumit Bansal

13x Microsoft Excel MVP

Hey! I'm Sumit Bansal, founder of trumpexcel.com and a Microsoft Excel MVP. I started this site in 2013 because I genuinely love Microsoft Excel (yes, really!) and wanted to share that passion through easy Excel tutorials, tips, and Excel training videos. My goal is straightforward: help you master Excel skills so you can work smarter, boost productivity, and maybe even enjoy spreadsheets along the way!

2 thoughts on “Combine Date and Time in Excel (3 Easy Ways)”

  1. None of that worked. I mean, it SHOULD have worked, but I was trying to to figure out the amount of time worked during a day, and if I tried to subtract 06/18/2024 07:30 from 06-17-2024 19:30 it would give me 12:00 (12 hours). BUT if I changed my start time to 16:30 it would give me 12:01 ; and if I changed to to the same day, saying that I worked from 7:30 AM to 7:30 PM, it would give me 0 hours. I finally found a formula that hit the nail on the head, but I don’t understand it, it seems a bit backwards: Date = A1, Start Time B1, End Time = C1, =IF(B1>TIMEVALUE(“8:00”),C1+1,C1)-B1 (I don’t know why I am adding a day to the OLDER time in this formula, but it works PERFECTLY! Though when I transposed it, I went with my gut feeling and used subtraction for that day, and found it working in reverse (giving me more hours for less time, and less hours for more time–that’s when I realized that I had it backwards, because even now it looks incorrect–but it does work!)

    Reply

Leave a Comment

Get the FREE 51 Excel Tips Ebook

Enter your details and the free PDF is on its way to your inbox.

Hmm, that didn't go through. Please check your email and try again.

No spam. You'll also get my weekly Excel newsletter. Unsubscribe anytime.

Check your inbox!

The ebook is on its way to your email. It usually lands within a couple of minutes.