# How to Separate Date and Time in Excel: A Step-by-Step Guide

Separating date and time in Excel can be a breeze, even if you’re not a spreadsheet wizard. You just need to use the right formulas and follow a few simple steps. This article will guide you through the process, so you can quickly split date and time into two separate columns in your Excel worksheet.

## Step by Step Tutorial: How to Separate Date and Time in Excel

Before we dive into the steps, it’s important to know that Excel stores dates and times as serial numbers. Dates are stored as a whole number representing the number of days since January 1, 1900, and times are stored as a decimal, representing the fraction of a day. When you combine both in a single cell, Excel displays them in a date-time format. Now, let’s get to the steps to split them up.

### Step 1: Format your original date-time column

Before separating the date and time, ensure that the column containing the combined date-time data is formatted correctly to display both.

Excel needs to recognize the data in your original column as date-time values. If it does not, you may need to format the column by selecting the cells, right-clicking, choosing ‘Format Cells,’ and then selecting a date-time format that displays both the date and time.

### Step 2: Insert two new columns

Insert two new columns next to the column with the date-time values. These will be where the separated date and time values will go.

To do this, right-click on the header of the column immediately to the right of your date-time column, select ‘Insert,’ and Excel will add a new column. Repeat this once more for the second column.

### Step 3: Use the INT function to extract the date

In the first empty column, use the INT function to extract the date portion of the date-time value.

In the first cell of your new column, type the formula `=INT(reference to date-time cell)` and press Enter. Drag the fill handle down to copy the formula to other cells in the column. This function rounds down the serial number to the nearest whole number, giving you the date.

### Step 4: Use the MOD function to extract the time

In the second new column, use the MOD function to extract the time portion of the date-time value.

In the first cell of your second new column, type the formula `=MOD(reference to date-time cell, 1)` and press Enter. Drag the fill handle down as well. This function gives you the remainder of the date-time serial number when divided by 1, which is the time.

### Step 5: Format the new columns

Finally, format the new columns — one for the date and the other for the time. This will ensure that they display correctly.

Select the cells in the column where you extracted the dates, right-click, choose ‘Format Cells,’ and select the date format you prefer. Repeat the process for the time column, selecting a time format instead.

After completing these steps, you’ll have two new columns in your Excel worksheet – one with the dates and another with the times, neatly separated from each other.

## Tips: How to Separate Date and Time in Excel

• Ensure that your original data is recognized by Excel as date-time values before trying to separate them.
• Always insert new columns for the separated values rather than overwriting existing data.
• Use the INT function to extract dates because it rounds down to the nearest whole number.
• Use the MOD function to extract times because it calculates the fractional part of the date-time serial number.
• Remember to format the new columns so that the extracted data displays as dates and times.

### What if my data is not recognized as a date-time format in Excel?

If Excel does not recognize your data as date-time, you might need to reformat it. Select the column with your date-time values, right-click, select ‘Format Cells,’ and choose a date-time format.

### Can these steps be used for separating date and time in Excel for both Windows and Mac?

Yes, these steps are applicable for Excel on both Windows and Mac operating systems.

### What happens if I get a #VALUE! error when using INT or MOD functions?

If you receive a #VALUE! error, it usually indicates that the cell reference in the function is not recognized as a date-time value. Double-check that the cell is formatted correctly.

### Can I use formulas other than INT and MOD to separate date and time?

While INT and MOD are the most straightforward and commonly used functions for this task, you can also use other functions like DATE, TIME, and TEXT in more complex scenarios.

### Is it possible to automate this process if I have to separate date and time frequently?

Yes, you can record a macro while performing these steps and then run the macro whenever you need to separate date and time in the future.

## Summary

1. Format your original date-time column.
2. Insert two new columns.
3. Use the INT function to extract the date.
4. Use the MOD function to extract the time.
5. Format the new columns.

## Conclusion

Separating date and time in Excel is a handy skill that can save you a lot of time and frustration when dealing with data that includes timestamps. By following the simple steps outlined in this article, you can quickly split date and time into separate columns and format them appropriately. Remember that the key to success lies in ensuring that your data is recognized by Excel as date-time values and using the right functions to extract the elements you need.

Whether you’re a student working on a project, an office worker managing reports, or anyone in between, mastering this Excel trick can make your life much easier. So go ahead, give it a try, and watch as those stubborn date-time cells yield to your Excel prowess! If you ever get stuck or want to explore more Excel tips, there are plenty of resources and forums online that can provide further guidance and support. Happy spreadsheeting!

Featured guides and deals