Excel Formulas to Split Date and Time into Separate Columns

📅 Sep 08, 2026 📝 Sarah Miller

Managing combined date-time stamps in system exports often disrupts data analysis, leading to manual formatting headaches. This issue frequently arises when consolidating disbursement data retrieved from standard funding sources like federal portals. Fortunately, leveraging tailored Excel formulas grants you the power to automate this separation, instantly streamlining your reporting. However, this efficiency is contingent on the stipulation that your raw data must be stored as true date-time serial numbers. For instance, tracking USDA grant timestamps like "10/24/2023 14:30" becomes seamless. Below, we will explore how to apply the INT and MOD functions to divide your data cleanly.

Excel Formulas to Split Date and Time into Separate Columns

In data analysis, we often encounter datasets where dates and times are combined into a single timestamp cell-for example, "2023-11-04 14:30:00". While this is a standard format for databases, it can make sorting, filtering, and analyzing data in Microsoft Excel quite challenging. You might want to analyze sales by the hour of the day, or group events by date, regardless of the time they occurred.

Fortunately, Excel provides several highly effective ways to split date and time into separate columns. In this comprehensive guide, we will explore dynamic formulas, built-in features like Text to Columns, Flash Fill, and advanced tools like Power Query. We will also look at how Excel stores dates and times under the hood, which is the key to mastering these techniques.

Understanding How Excel Handles Dates and Times

To understand why Excel formulas work the way they do, we first need to understand how Excel stores date and time values. Excel does not see "January 1, 2023, 12:00 PM" as text. Instead, it stores dates and times as serial numbers.

  • Dates are Integers: Excel starts counting days from January 1, 1900. January 1, 1900, is represented by the number 1. January 2, 1900, is 2, and so on. For instance, November 4, 2023, is stored as the integer 45234.
  • Times are Decimals: Time is represented as a fractional part of a 24-hour day. Since a day has 24 hours, 12 hours (noon) is represented as 0.5. Six o'clock in the morning (6:00 AM) is 0.25, and 6:00 PM is 0.75.

When you see a timestamp like 45234.60417, Excel reads this as November 4, 2023, at 2:30 PM. Armed with this knowledge, we can easily use mathematical formulas to separate the integer (date) from the decimal (time).

Method 1: Split Date and Time Using Formulas (The Best Dynamic Way)

Using formulas is the preferred method if your data is dynamic and changes frequently. If the source timestamp changes, the split date and time columns will update automatically.

1. Extracting the Date Using the INT Formula

Since the date is represented by the integer part of the serial number, we can use the INT function to strip away the decimal (time) portion.

Assuming your combined timestamp is in cell A2, enter the following formula in your Date column (e.g., cell B2):

=INT(A2)

Note on Formatting: When you first press Enter, Excel might display a raw serial number (like 45234) or keep the time formatting. To display it as a readable date:

  1. Select the cell with your formula.
  2. Go to the Home tab on the Excel Ribbon.
  3. In the Number group, click the format dropdown and select Short Date or Long Date.

2. Extracting the Time Using Subtraction or the MOD Formula

Once you have extracted the integer (date), you can find the remaining decimal (time) using one of two simple math formulas.

Option A: Simple Subtraction

Since the timestamp is Date + Time, subtracting the isolated date (integer) from the original timestamp will leave you with just the time (decimal).

=A2 - INT(A2)

Or, if you have already calculated the date in cell B2:

=A2 - B2

Option B: The MOD Function

The MOD function returns the remainder after a number is divided by a divisor. Dividing any decimal number by 1 returns the fractional (decimal) part. Enter this formula in your Time column (e.g., cell C2):

=MOD(A2, 1)

Note on Formatting: As with the date, the result might look like a raw decimal (e.g., 0.60417). To fix this:

  1. Select the cell containing your time formula.
  2. Go to the Home tab.
  3. In the Number dropdown, select Time.

Method 2: Handling Text-Formatted Dates and Times

Sometimes, data imported from external software is stored in Excel as text rather than actual serial numbers. If the formulas above return a #VALUE! error, your date-time values are likely formatted as text. We can use text-splitting functions to solve this.

Extracting Date and Time with LEFT and RIGHT

If your text timestamps are uniform (e.g., "YYYY-MM-DD HH:MM:SS" which is exactly 19 characters), you can use the LEFT and RIGHT functions.

To extract the first 10 characters (the date) from cell A2:

=LEFT(A2, 10)

To extract the last 8 characters (the time) from cell A2:

=RIGHT(A2, 8)

Converting Text Strings Back to Real Date/Time Values

The text functions above will output text strings. If you want to use them in chronological sorting or pivot tables, you should convert them back to Excel serial values using DATEVALUE and TIMEVALUE:

=DATEVALUE(LEFT(A2, 10))
=TIMEVALUE(RIGHT(A2, 8))

Remember to format the formula cells as "Short Date" and "Time" respectively.

Method 3: Split Date and Time Instantly with Flash Fill (The Quickest Way)

If you don't want to write formulas and your data is static, Excel's Flash Fill is an incredibly smart tool that detects patterns and fills in data automatically.

  1. Insert two blank columns next to your source timestamp column. Label them "Date" and "Time".
  2. In the first row of your "Date" column, manually type the date as it appears in your timestamp (e.g., "2023-11-04"). Press Enter.
  3. In the second row, start typing the next date. Excel may automatically display light grey suggestions for the rest of the column.
  4. If the suggestions appear, press Enter to accept them. If they don't, select the first cell you typed, go to the Data tab, and click Flash Fill (or press Ctrl + E).
  5. Repeat this exact process for the "Time" column by typing the time (e.g., "14:30:00") in the first row and pressing Ctrl + E.

Method 4: Using Text to Columns (The Classic No-Formula Way)

The Text to Columns wizard is a classic feature in Excel used to split data based on a specific delimiter, such as a space or comma. Since combined timestamps usually have a space separating the date and the time, we can use that space to split them.

Warning: This method will overwrite adjacent columns, so make sure to insert at least one empty column to the right of your data before starting.

  1. Select the column of timestamps you want to split.
  2. Go to the Data tab on the Ribbon.
  3. Click on Text to Columns.
  4. In the wizard, select Delimited and click Next.
  5. Under Delimiters, uncheck everything except Space. (You will see a preview of your split columns below). Click Next.
  6. In the Column Data Format step, select the first column in the preview and mark it as Date (choose your format, like YMD or MDY). Select the second column and set it to General.
  7. Specify the Destination cell if you don't want to overwrite your original data.
  8. Click Finish.

Method 5: Power Query (Best for Large Datasets and Automation)

If you regularly import CSV files or database exports with combined timestamps, using Power Query is the most robust and professional solution. It remembers your steps and automates the split process for future data updates.

  1. Select your table of data.
  2. Go to the Data tab and click From Table/Range. This opens the Power Query Editor.
  3. Right-click on the header of the column containing your combined date and time.
  4. Select Split Column > By Delimiter.
  5. In the dropdown, select Space as your delimiter. Click OK.
  6. Power Query will split your column into two. Double-click the headers to rename them to "Date" and "Time".
  7. Change the data type of the first column to "Date" and the second to "Time" using the small icon next to the column header name.
  8. Go to the Home tab and click Close & Load to return your cleanly split columns to a new sheet in Excel.

Summary: Which Method Should You Use?

Depending on your technical comfort level and workflow, you can choose the tool that fits best:

Method Dynamic? Best For Difficulty
INT / MOD Formulas Yes Ongoing, real-time calculations. Easy
LEFT / RIGHT Formulas Yes Text-formatted dates and times. Medium
Flash Fill No Quick, one-time manual splits. Very Easy
Text to Columns No Static historical databases. Easy
Power Query Yes (via Refresh) Large external datasets, repeatable reports. Advanced

Conclusion

Separating date and time is a foundational skill for anyone working in Excel. By leveraging the internal decimal system of dates and times, you can quickly write formulas like =INT(A2) and =MOD(A2,1) to build clean, dynamic models. For fast, one-off analyses, Flash Fill and Text to Columns will save you valuable time. Whichever method you choose, structuring your dates and times independently will immediately make your sorting, filtering, and pivot table analysis much more powerful.

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.