A date-time is stored as one number — the whole part is the date and the decimal is the time, so 44541.52 means day 44541 at 12:28 PM. Separating them means splitting the integer from the fraction.
For the date, use =INT(A1) and format the result cell as Date. For the time, subtract that integer back off: =A1-INT(A1), formatted as Time. Those two formulas are the whole job. =ROUNDDOWN(A1,0) and =TRUNC(A1) give the same date result if you prefer them, and =MOD(A1,1) is an alternative for the time.
Both results need their cell format setting manually — otherwise the date shows as 44541 and the time as 0.52, which is the most common reason people think the formula didn’t work.
For a one-off split with no formula, type the date from the first row into the next column and press Ctrl+E for Flash Fill, then do the same for the time. And note the results are still linked to the original cell, so copy and paste as values if you plan to delete the source column.
In Excel, if you have a date and time combined in a single cell, you can separate it into two different values as a date and time. In this tutorial, we will examine some simple and useful methods.
Quick Formulas to Separate Date
- =INT(A1) – It is particularly useful when you want to remove the fractional part of a number. With this, you can remove the time from the date and separate both the date and time.
- =ROUNDDOWN(A1,0) – It is useful to separate the date from the time by rounding the number down to a whole number, which removes the fractional (time) part.
- =TRUNC(A1) – It also removes the fractional part of the number and returns the integer portion. It can be beneficial when working with date and time values, as it lets you quickly separate the date from the time.
Quick Formulas to Separate Time
- =A1-INT(A1) – This formula takes only the date (the integer part) from the date & time and then removes it from the original date and time to return only the time.
In the above formulas, A1 is the cell where you have the date and time.
Understanding Date and Time in Excel
Excel stores a date as a numeric value and time as a fraction.
In the following example, you can see that for the date in cell A1, you have the numeric value 44541; for the time in cell A2, it’s 0.52.
And in cell A3, you have a date and time combined in the cell, with the numeric value 44541.52.

To separate date and time into two values, you must separate the integer and fractional parts from the value.

Why We Require to Separate Date and Time in Excel – When you have data where dates and times are combined, it’s tough to analyze the data day-wise, and it’s tough to analyze the data on an hourly basis. For this, it is always better to separate the date and time values in the data, even if you don’t need them right away.
Separate Date from Time in Excel
One of the best ways to separate a date from a date and time value is to use the INT function. The INT function takes the integer from a number and leaves out the fractional part.
=INT(A1)

In the above example, you have the INT function that takes the reference from cell A1, where you have the date and time in a numeric value.
And it has returned 44541 as a result.

When you format this value as a date, it only shows the date. In addition to the above method, you can also use the following two functions to get a separate date. You can use the ROUNDDOWN function to remove the time and keep the date.

=ROUNDDOWN(A1,0)
You can also use the TRUNC function to trim the decimal to separate the date.
=TRUNC(A1)

Separate Time from Date in Excel
To separate time, you can use a formula using the INT function. In the following example, you have deducted the integer part from the actual number, and the value left is the time.

=A1-INT(A1)
The result is a decimal number, so format the cell as a time (Ctrl + 1 ➜ Time) to see it as a time. You can also use the MOD function, which returns the remainder after dividing by 1, which is the time part:
=MOD(A1,1)
Separate Date/Time in Excel with Flash Fill
To separate date and time in Excel using the Flash Fill feature, follow the detailed steps below:
- Start by locating your date and time data. For instance, let’s assume this data is in column A of your Excel spreadsheet. This column contains both dates and times together.
- Next, you must create two new columns for the date and time separated. Let’s use column B for the date and column C for the time.
- In column B, click on the cell next to column A’s first date and time entry (B2 if your data starts in A2). Here, manually type the date as it appears in column A, but without the time component. For example, if the cell A2 includes “03/18/2024 4:45 PM”, you would type “03/18/2024” in B2. Excel is usually capable of recognizing this as a date format.
- After typing the date in B2, press Enter, and then press Ctrl + E (or go to Data ➜ Flash Fill). Excel fills the rest of column B with dates extracted from column A. This is the Flash Fill feature in action. It recognizes the pattern in your manual entry and applies it to the rest of the column, separating the date from the time.
- Now, move to column C. Here, type the time from the first entry in column A, but without the date. Following the previous example, if A2 includes “03/18/2024 4:45 PM”, you would type “4:45 PM” in C2.
- Press Enter after typing the time, and then press Ctrl + E again. Excel will then fill the rest of column C with the time portion of the data from column A.
Flash Fill works from what the cells show, and its results don’t update when the data in column A changes, so use the formulas when you need a live result. Flash Fill is available in Excel 2013 and later.
Separate Date and Time with Text to Columns
- First of all, select the column with the date and time and go to Data ➜ Text to Columns.
- After that, choose Delimited, click Next, check Space as the delimiter, and click Next.
- In the end, choose the destination cell (like B2) and click Finish.
This works best when the date and time are stored as text. If the time has AM/PM, it ends up in a third column, so join it back or use the formulas instead.
Separate Date and Time Stored as Text
If the date and time are text (for example, imported from another system and aligned to the left), INT and MOD can’t work on them directly. Add a double minus to turn the text into a number first. The first formula returns the date, and the second returns the time:
=INT(--A1)
=MOD(--A1,1)
This works when the text matches the date format of your computer’s regional settings. If it doesn’t, you get the #VALUE! error.
Common Errors while Separating Date and Time
A few common errors might occur while attempting to separate date and time in Excel.
- #VALUE! Error: This error usually occurs when Excel cannot recognize the date or time format. To resolve this, ensure that your date and time are in a format recognized by Excel.
- Dividing by Zero Error: If you use a division operation to separate date and time, you may encounter a ‘divide by zero’ error. Ensure you’re not dividing by zero or any cell containing zero.
- Mixed Data Types: Sometimes, you might have dates and times stored as text and numbers in the same column. Make sure to standardize the data format before you start the extraction process.
- Decimal Instead of Time: If the time shows as a decimal like 0.52, the formula is right, but the cell has a number format. Format it as a time.
Frequently Asked Questions
Why does the date show as a number like 44541?
That’s how Excel stores dates. Select the cell, press Ctrl + 1, and choose a date format to see it as a date.
Should I use INT, ROUNDDOWN or TRUNC?
For dates, all three give the same result, as date and time values are never negative. INT is the shortest and the most common choice.
How do I remove the time from the same cell?
Use INT in a helper column, copy the results, and paste them back as values over the original cells. Changing only the cell format hides the time, but the time is still in the value.
Written by
Puneet Gogia
Microsoft MVP — Excel · Founder, Excel Champs
Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.