Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to create a Histogram in Excel
  • How To Sort One Column or Multiple Columns in Excel
  • Reverse List in Excel
  • Conflicting Multiple Conditional Formatting Rules in Excel
  • Randomize/ Shuffle List in Excel

References

  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel VLOOKUP Function
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to get relative row numbers in a range in Excel
  • Convert text string to valid reference in Excel using Indirect function

Data Validations

  • Excel Data validation must contain specific text
  • Excel Data validation date in next 30 days
  • Excel Data validation unique values only
  • Excel Data validation require unique number
  • Excel Data validation whole percentage only

Extract time from a date and time in Excel

by

This tutorial show how to Extract time from a date and time in Excel using the example below.

If you have dates with time values and you want to extract only the time portion (the fractional part), you can use a formula that uses the MOD function.

Note: Excel handles dates and time using a scheme in which dates are serial numbers and times are fractional values. For example, June 1, 2000 12:00 PM is represented in Excel as the number 36678.5, where 36678 is the date and .5 is the time.

 Formula

=MOD(date,1)

Explanation of how this formula works

Assuming A1 contains the date and time value June 1, 2000 12:00 PM, the formula below will return just the time portion (.5):

=MOD(A1,1)

The MOD function returns the remainder from division. The first argument is the number and the second is the divisor. Here are a few examples:

=MOD(5,2) // returns 1
=MOD(7,5) // returns 2

So, if you use MOD with a divisor of 1, the result will be the fractional part of the number, if any, because every whole number can be evenly divided by itself. For example:

=MOD(3.125,1) // returns 0.125

In short, =MOD(number,1) returns just the fractional part of a number, discarding the integer portion, so it’s a convenient way to extract time from a date and time.

Note: if you use this formula to strip the time from a date + time, you’ll need to adjust the number format to a suitable time format.

Post navigation

Previous Post:

COSH function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Excel Data validation require unique number

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IF, AND, OR and NOT Functions Examples in Excel
  • Excel If, Nested If, And/Or Criteria Examples
  • Extract multiple matches into separate rows in Excel
  • Not Equal To ‘<>‘ operator in Excel
  • SWITCH function example in Excel

Date Time

  • How to get same date next month or previous month in Excel
  • Generate series of dates by weekends in Excel
  • Get first day of month in Excel
  • How to calculate next day of week in Excel
  • MONTH function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group numbers at uneven intervals in Excel
  • Calculate conditional mode with criteria in Excel
  • Map text to numbers in Excel
  • Group times into 3 hour buckets in Excel
  • Group times into unequal buckets in Excel

General

  • How to count total columns in range in Excel
  • How to fill cell ranges with random text values in Excel
  • Index and match on multiple columns in Excel
  • Convert column letter to number in Excel
  • Subtotal invoices by age in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning