Combining Date and Time in Excel: A Complete Formula Guide

📅 Feb 01, 2026 📝 Sarah Miller

Managing split timestamp data in Excel often leads to frustrating analytical bottlenecks. While standard funding sources and financial databases frequently export transaction records with dates and times isolated in separate columns, merging them is essential. Successfully unifying these elements grants analysts immediate chronological clarity for precise reporting.

The solution relies on simple addition-for example, =A2+B2. However, the vital stipulation is that the destination cell must be formatted as "m/d/yyyy hh:mm" to display the combined data correctly.

Below, we will detail this exact mathematical formula, outline the formatting steps, and provide troubleshooting tips for seamless integration.

Combining Date and Time in Excel: A Complete Formula Guide

Excel Formula to Combine Date with Time: A Complete Step-by-Step Guide

When working with datasets in Microsoft Excel, you will frequently encounter scenarios where dates and times are split into separate columns. While having them isolated can sometimes be useful for sorting, combining them into a single, unified timestamp is often necessary for advanced timeline analyses, pivot tables, or exporting to other database systems.

Fortunately, Excel offers several ways to merge these values. Whether you want to preserve the data as a true numeric timestamp or convert it into a formatted text string, this guide will walk you through the most effective formulas and techniques to get the job done.


Understanding How Excel Handles Dates and Times

Before diving into the formulas, it is crucial to understand the fundamental way Excel stores chronological data. Excel does not see "January 1, 2024" or "12:00 PM" the way humans do. Instead, it uses a system of serial numbers:

  • Dates are stored as whole numbers (integers) representing the number of days that have elapsed since January 1, 1900. For example, the date January 1, 2024, is stored internally as the serial number 45292.
  • Times are stored as decimal fractions of a 24-hour day. For example, 12 hours (noon) is represented as 0.5, 6:00 AM is 0.25, and 6:00 PM is 0.75.

Because dates are integers and times are decimals, a complete timestamp (date + time) is simply a floating-point number. For instance, January 1, 2024, at 12:00 PM is represented internally as 45292.5.


Method 1: The Simple Addition Formula (Recommended)

Because of Excel's underlying serial number design, the easiest, cleanest, and most efficient way to combine a date and a time is through simple addition.

The Formula:

=A2 + B2

(Assuming cell A2 contains your date and cell B2 contains your time.)

Step-by-Step Instructions:

  1. Click on the empty cell where you want the combined timestamp to appear (e.g., cell C2).
  2. Type =A2+B2 and press Enter.
  3. If the result looks like a strange decimal number (like 45292.5), don't panic! This is the raw serial representation. You simply need to apply the correct formatting.

How to Format the Result:

  1. Select the cell containing your formula.
  2. Press Ctrl + 1 (Windows) or Cmd + 1 (Mac) to open the Format Cells dialog box.
  3. In the Category list on the left, select Custom.
  4. In the Type input field, type your desired display format. For example:
    • yyyy-mm-dd hh:mm:ss (for 24-hour military style)
    • m/d/yyyy h:mm AM/PM (for standard US style with 12-hour clock)
  5. Click OK. Your cell will now display a perfectly combined date and time.

Method 2: Combining Date and Time as Text

Sometimes you do not want Excel to treat the combined result as a numeric date-time value. If you are preparing data for a CSV export to a platform that requires text strings, you can use the TEXT function to merge them.

If you try to simply concatenate the cells using the ampersand (e.g., =A2 & " " & B2), Excel will output the raw serial numbers, resulting in something unreadable like 45292 0.5. To prevent this, you must explicitly format each part inside the formula.

The Formula:

=TEXT(A2, "yyyy-mm-dd") & " " & TEXT(B2, "hh:mm:ss")

How It Works:

  • TEXT(A2, "yyyy-mm-dd") converts the date in cell A2 into a text string formatted as Year-Month-Day.
  • & " " & inserts a physical space between the date and the time strings.
  • TEXT(B2, "hh:mm:ss") converts the time in cell B2 into a text string formatted as Hours:Minutes:Seconds.

Note: Because the output of this formula is text, you cannot perform mathematical operations on it (like adding days or calculating time differences) without converting it back into a serial number first.


Method 3: Combining Individual Components (Date, Month, Year, Hour, Minute)

In more complex data processing scenarios, you might not have clean date and time cells to begin with. Instead, your spreadsheet might have separate columns for Year, Month, Day, Hour, and Minute. In this situation, you can combine the DATE and TIME functions.

The Formula:

=DATE(A2, B2, C2) + TIME(D2, E2, F2)

Parameters:

Function Arguments Description
DATE (Year, Month, Day) Constructs a valid serial date from raw integers.
TIME (Hour, Minute, Second) Constructs a valid serial time from raw integers.

By adding these two functions together, Excel calculates the clean serial decimal point representation on the fly. As with Method 1, you will need to apply custom formatting to make sure it displays correctly.


Troubleshooting Common Errors

While merging dates and times in Excel is straightforward, you may run into a few common roadblocks. Here is how to troubleshoot them:

1. The Value is Displaying as `#VALUE!`

This error typically occurs if one of your cells contains a "date" or "time" that Excel recognizes as text rather than a true number. To check this:

  • Select the source cells and look at Excel's status bar, or change the formatting to "General". If the values do not turn into numbers, Excel treats them as text.
  • You can resolve this by wrapping the reference in the DATEVALUE or TIMEVALUE functions, or by using the Text-to-Columns wizard to convert the columns back to dates/times.

2. The Time Part Displays as `00:00:00`

If you add your date and time cells and the time component disappears or shows only midnights, the problem is almost always cell formatting. The raw math is likely correct, but your cell style is set to "Short Date" (which hides times). Re-apply custom formatting containing hh:mm parameters to solve this.

3. Fixing Unintended "Date-Time" Packages

Sometimes, your source "Date" column actually already contains a time component hidden from view (e.g., 45292.35 instead of just 45292). If you add this to a separate time column, you will double-count the hours. To safely extract only the date portion before adding your time, use the INT function:
=INT(A2) + B2
This strips away any hidden fractional hours from the date column before combining it with the correct time column.


Summary Comparison of Methods

To help you decide which approach is best for your specific spreadsheet, consult this quick reference table:

Method Form of Output Best Used For... Math-Friendly?
Addition (`+`) Numeric Serial General use, charts, and chronological analysis. Yes (Very easy to calculate differences)
`TEXT` Concatenation Text String Exporting data, mail merges, or strict report layouts. No (Requires conversion)
`DATE` + `TIME` Functions Numeric Serial Rebuilding timestamps from split raw data elements. Yes

Conclusion

Combining dates and times in Excel doesn't require convoluted nesting tricks or complex macros. Thanks to Excel's serial storage method, a simple addition formula (=A2+B2) is usually your fastest, most flexible path forward. Whichever method you choose, always make sure to pair your formula with the correct custom formatting so your data is both functional and easy to read.

Disclaimer:
The documents and templates provided on this page are for informational and illustrative purposes only. They do not constitute professional, legal, or financial advice, and should not be relied upon as such. Because individual circumstances and regulatory requirements vary, these materials may not be suitable for your specific needs. We recommend consulting with a qualified professional before adapting or using any of these examples for official or commercial purposes.