Skip to main content

Extract or get time only from datetime in Excel

Author: Xiaoyang Last Modified: 2019-12-25

If you have a list of datetime cells, now, you want to pull out all the times only from the datetime cells. In Excel, there are some functions can help you to solve this job, such as: TIME and MOD functions.

Extract time only from date time cells with TIME function

Normally, the TIME function is used to create a time with separate hours, minutes and seconds, to extract the time from datetime cells, the generic syntax is:

=TIME(HOUR(datetime),MINUTE(datetime), SECOND(datetime))
  • datetime: The cell contains the datetime that you want to extract time only from.
  • HOUR(), MINUTE(), SECOND(): These three arguments are used to extract the separate hour, minute and second number from the date cell.
  • TIME: This function is used to combine the hour, minute and second numbers into a time format.

1. To pull out the times from datetime cells, you should apply below formula:


And then, drag the fill handle down to the cell you want to use this formula, see screenshot:

2. Then, you can format the formula cells to the time format you need. Select the calculated results, and then, right click, then choose Format Cells to open the Format Cells dialog box, in the popped-out dialog, specify a time format you need in the Time category, see screenshot:

3. After setting the time format, click OK button, the calculated times have been changed to the time format you need, see screenshot:

Extract time only from date time cells with MOD function

As we all know, the datetime is recognized as serial number, the integer part is a date serial number, and the fractional portion is time serial number in Excel. Normally, the MOD function returns just the fractional portion, and discards the integer part. So, the MOD function can help you to extract time from date time cell quickly and easily.

Generic syntax:

  • datetime: The cell contains the datetime that you want to extract time only from.
  • 1: A divisor number to divide with. Use 1 as the divisor, the result will be the fractional part of the number.

1. Enter or copy the below formula into a blank cell, and then drag the fill handle down to the cells you want to apply this formula:


2. And then, you should format the formula cells as a specific time format you need as the above step 2, you will get the result as this:

Relative functions used:

  • TIME:
  • This function is used to return the decimal number for a particular time with hour, minute and second.
  • MOD:
  • It returns the remainder of two numbers after division.

Relative time articles:

  • Add Or Sum Times Over 24 Hours In Excel
  • Normally, when adding or summing times in Excel, you will get the finally calculated result within 24 hours. How about adding or summing times over 24 hours to display the real result?
  • Remove Date From Date Time In Excel
  • If you have a list of date and time stamps in your worksheet, and now you want to remove the date from the date time and only leave the time. Do you have any quick methods to deal with this job?

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Useful Info...Thanks Extendoffice.
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations