Function Problems

How to Convert Separate Excel Date and Time Values into a Real Date

Olivia MillerOlivia Miller Nov 10, 2026 868 views

Question details

The user needs to merge a date cell and a time cell into a single, calculable datetime value.

How to Combine Separate Excel Date and Time Values into a Real Date
Product
Excel
Device & OS
not provided
Scenario
Attempting to merge separate date and time columns into a single column for data analysis or accurate timestamping.
Observed behavior
Using the CONCATENATE function returns a text string instead of a real date, which prevents the spreadsheet from applying date and time formatting or allowing chronological calculations.
Before you start

Ensure your separate date and time cells are recognized by the spreadsheet as valid date and time formats rather than plain text.

Solution 1Recommended

Use Simple Addition to Combine Date and Time

Because spreadsheet programs store dates as whole numbers and times as decimal fractions, adding them together naturally creates a valid datetime value.

In Excel, dates are stored as sequential serial numbers starting from January 1, 1900, while times are stored as fractional portions of a 24-hour day. By mathematically adding a date cell and a time cell, you preserve the underlying numerical value required for custom formatting.

1
Apply the Addition Formula

Select a blank cell where you want the combined datetime to appear. Assuming your date is in cell A2 and your time is in cell B2, type the formula =A2+B2 and press Enter.

2
Format the Result Cell

Right-click the result cell and choose 'Format Cells'. Navigate to the 'Custom' category.

3
Enter the Datetime Format Code

In the 'Type' field, input your desired datetime format, such as dd/mm/yyyy hh:mm:ss, and click OK to apply.

Use Simple Addition to Combine Date and Time
Real Date Format Achieved: The result is a true datetime value that can be used in pivot tables, chronological sorting, and further time-based calculations.
Data Processing Made Easy

Easily Combine Dates and Times with WPS Spreadsheet

WPS Spreadsheet fully supports standard date and time formulas, including the mathematical addition of date and time serial numbers. Enjoy a seamless data processing experience with complete format compatibility.

  1. 1. Open Your Data File: Launch WPS Spreadsheet and open the file containing your separated date and time columns.
  2. 2. Combine with a Simple Formula: In an adjacent blank column, enter the formula =A2+B2 to sum the date and time cells together.
  3. 3. Customize the Cell Format: Press Ctrl+1 to open the Format Cells dialog, select the Custom category, and apply a datetime format like dd/mm/yyyy hh:mm:ss.
Fully compatible with Microsoft Excel date and time formatting and formulas.Process complex datetime calculations effortlessly for data analysis.Free and lightweight spreadsheet software with a familiar user interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why does CONCATENATE ruin my date formatting?

The CONCATENATE function is designed to join text strings. When you use it on dates and times, it converts their underlying serial numbers into text, dropping all formatting and preventing you from using it as a real date for calculations.

How do spreadsheet programs store dates and times?

Spreadsheets store dates as sequential whole numbers (integers) starting from January 1, 1900, and times as fractional decimals representing a portion of a 24-hour day. This mathematical approach is why you can simply add a date and a time together.

Can I combine a date and time into a 12-hour AM/PM format?

Yes. After adding the date and time cells using =A2+B2, right-click the cell, select Format Cells, choose Custom, and enter a format code like mm/dd/yyyy hh:mm AM/PM.