Extract or get time only from datetime in Excel
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
- Extract time only from date time cells with MOD function
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:
- 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?
- Add Time With Hours/Minutes/Seconds Increments In Excel
- Supposing you are a stock investor, and you need to record the price variety of a certain stock every 20 minutes, what would you do to quickly create the time list with 20 minutes increments?
- Convert Time Format From 12 Hour To 24 Hour And Vice Versa In Excel
- When you work on Excel in your daily work, you may use different time format under different conditions, such as 12 hour format and 24 hour format. But, how could you convert time format from 12 hour to 24 hour and vice versa in Excel?
- Combine Date And Time Columns Into One Column In Google Sheets
- In Google sheets, you need to combine the date column and time column into one column as following screenshot shown, how could you deal with it in Google sheets?
- 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 for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...
Supports Office/Excel 2007-2021 and 365 | Available in 44 Languages | Easy to Uninstall Completely

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.
