How to Split Date and Time in Excel (8 Easy Methods)

Method 1 – Using the INT Function to Split Date and Time in Excel

We have a dataset containing the date and time. We’ll split them in Columns C and D.

Using INT Function to Split Date and Time in Excel

Steps:

  • Select the range of cells C5:C11.
  • Format them in the Short Date format.

Using INT Function to Split Date and Time in Excel

  • Use the following formula in cell C5:

=INT(B5)

  • Press Enter and drag the Fill handle icon down.

  • You will get the date in Column C like the following.

Using INT Function to Split Date and Time in Excel

  • Use the following formula in the cell D5:

=B5-C5

  • Press Enter and drag the Fill handle down.

Using INT Function to Split Date and Time in Excel

  • Here are the results.


Method 2 – Applying the TEXT Function to Split Date and Time

Steps:

  • Use the following formula in cell C5:

=TEXT(B5,"m/d/yyyy")

  • Press Enter and drag the Fill handle icon down.

Applying TEXT Function to Split Date and Time

  • You will get the date in column C like the following.

Applying TEXT Function to Split Date and Time

  • Use the following formula in the cell D5:

=TEXT(B5,"hh:mm:ss AM/PM")

  • Press Enter and drag the Fill handle down.

Applying TEXT Function to Split Date and Time

  • Here are the split values.

Applying TEXT Function to Split Date and Time


Method 3 – Separating Date and Time with the TRUNC Function in Excel

Steps:

  • Select the range of cells C5:C11.
  • Format the cells in the Short Date format.

Using TRUNC Function in Excel

  • Use the following formula in cell C5:

=TRUNC(B5)

  • Press Enter and drag the Fill handle icon.

  • You will get the date in column C like the following.

Using TRUNC Function in Excel

  • Use the following formula in the cell D5:

=B5-C5

  • Press Enter and drag the Fill handle icon.

  • Here are the split values.

Using TRUNC Function in Excel


Method 4 – Inserting the ROUNDDOWN Function to Separate Time and Date

Steps:

  • Select the range of cells C5:C11.
  • Format it in the Short Date format.

Using the ROUNDDOWN Function

  • Use the following formula in cell C5:

=ROUNDDOWN(B5,0)

  • Press Enter and drag the Fill handle icon down.

Using the ROUNDDOWN Function

  • Here’s the result for the date.

  • Use the following formula in cell D5:

=B5-C5

  • Press Enter and drag the Fill handle icon down.

Using the ROUNDDOWN Function

  • Here are the split values.


Method 5 – Separating Date and Time with the Flash Fill Tool

Steps:

  • Type the first two dates in C5 and C6.

Separate Date and Time Utilizing Flash Fill

  • Go to the Data tab, select Data Tools, and select the Flash Fill option.

Separate Date and Time Utilizing Flash Fill

  • You will get the date in column C.

  • Type the first two times in D5 and D6.
  • Go to the Data tab, select Data Tools, and select the Flash Fill option.

Separate Date and Time Utilizing Flash Fill

  • Here are the results.


Method 6 – Splitting Date and Time Through a Keyboard Shortcut

Steps:

  • Type the first two dates in C5 and C6.
  • Press Ctrl + E.

Split Date and Time Through Keyboard Shortcut

  • You will get the date in Column C.

Split Date and Time Through Keyboard Shortcut

  • Type the first two times in D5 and D6, and press Ctrl + E.

Split Date and Time Through Keyboard Shortcut

  • You’ll get the split values.

Split Date and Time Through Keyboard Shortcut


Method 7 – Using the Text to Columns Tool to Split Date and Time

We have a dataset containing the date and time.

Using Text To Columns to Split Date and Time

Steps:

  • Select the range of the dataset.
  • Go to the Data tab, select Data Tools, and choose the Text to Columns option.

Using Text To Columns to Split Date and Time

  • When the Convert Text to Columns Wizard – Step 1 of 3 dialog box appears, check the Delimited option.
  • Click on Next.

Using Text To Columns to Split Date and Time

  • The Convert Text to Columns Wizard – Step 2 of 3 dialog box appears.
  • In the Delimiters section, check Space.
  • Click on Next.

Using Text To Columns to Split Date and Time

  • The Convert Text to Columns Wizard -Step 3 of 3 dialog box appears. Click on Finish.

Using Text To Columns to Split Date and Time

  • You will get the date in column B like the following and you need to customize the date. Select the range of the cells, right-click, and select the Format Cells option.

Using Text To Columns to Split Date and Time

  • When the Format Cells dialogue box appears, select Custom from the Category.
  • Select your desired date type from the Type section.

Using Text To Columns to Split Date and Time

  • You will get the date in column B like the following.
  • Select the range of the cell of column Time. Go to the Home tab and select the Time format.

  • Here are the split values.

Using Text To Columns to Split Date and Time


Method 8 – Splitting Date and Time with Excel Power Query

Steps:

  • Select the range of the dataset.
  • Go to the Data tab and select From Table/Range.

  • You can see your dataset in Power Query Editor.
  • Go to the Add Column tab, select Date, and choose the Date Only option.

  • You will get a new column with dates.

Utilizing Power Query in Excel

  • Select the range of the original dataset.
  • Go to the Add Column tab, select Time, and choose the Time Only option.

  • You will get a new Column with times.

Utilizing Power Query in Excel

  • Go to the Home tab and select Close & Load.

  • You’ll get a new sheet with the split values.

Utilizing Power Query in Excel


Download the Practice Workbook


Split Date and Time: Knowledge Hub


<< Go Back to Split | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Saquib Ahmad Shuvo
Saquib Ahmad Shuvo

Saquib Ahmad Bhuiyan, holding a BSc degree in Naval Architecture & Marine Engineering from Bangladesh University of Engineering and Technology, skillfully integrates engineering expertise with a passion for Excel. He provides solutions to complex issues as an Excel & VBA Content Developer for ExcelDemy Forum. He demonstrates an enthusiastic mindset and adeptness in managing critical situations with finesse, showcasing his commitment to excellence. Apart from creating Excel tutorials, he is interested in Data Analysis with MS Excel, Rhinoceros,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo