ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Formula > How to Separate Date and Time in Excel

How to Separate Date and Time in Excel

how to Separate Date and Time in Excel
Table of contents :
  • Using INT function and subtraction formula
  • Using QUOTIENT and MOD function
  • Using YEAR, MONTH, DAY, HOUR, MINUTE and SECOND function

How to Separate Date and Time in Excel

The date and time value can be written in one cell but can be separated. There are several ways to separate them. For example, there are date and time values as shown below with various formats. How to separate date and time in excel?

Separate Date and Time in Excel

Using INT function and subtraction formula

Excel stores date and time in a number. The integer number represents the DATE value, and the decimal number represents TIME value.

For a more detailed explanation, please read “How does Excel Stores Dates and Times“

Use the excel INT function to get integer number that represents DATE, to get the decimal number use the reduction formula.

The Formula for the date value

=INT(A2)

The Formula for the time value

=A2-B2

The Result

Using QUOTIENT and MOD function

In addition to the INT function, the excel QUOTIENT function can be used to get the integer number by using the number 1 as the denominator argument.

To get a decimal number other than using the reduction formula, you can use the excel MOD function by using the number 1 as the divisor argument. Also, the use of the excel MOD function has advantages because it does not depend on the DATE value. If at any time the DATE value is removed (just extracting the TIME value), the TIME value remains unchanged.

The Formula for the date value

=QUOTIENT(A2,1)

The Formula for the time value

=MOD(A2,1)

The Result

Using YEAR, MONTH, DAY, HOUR, MINUTE and SECOND function

If you want to extract the DATE value in more detail to the number of years, month and day, you can use the YEAR, MONTH and DAY function and extract the TIME value to the number of hours, minute and second, you can use the HOUR, MINUTE and SECOND function.

The Formula for year number

=YEAR(A3)

The Formula for month number

=MONTH(A3)

The Formula for day number

=DAY(A3)

The Formula for hour number

=HOUR(A3)

The Formula for minute number

=MINUTE(A3)

The Formula for second number

=SECOND(A3)

The Result

Related Function

Function used in this article
  • Excel INT Function
  • Excel QUOTIENT Function
  • Excel MOD Function
  • Excel YEAR Function
  • Excel MONTH Function
  • Excel DAY Function
  • Excel HOUR Function
  • Excel MINUTE Function
  • Excel SECOND Function
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

How to add days, weeks, months, years to date in Excel
How to add DAYS to a date in Excel Excel …

How to Add Days, Weeks, Months and Years to a Date in Excel

Get the Original Price from Percentage Increase What was the …

Get the Original Price from Percentage Increase/Decrease

IFERROR VLOOKUP
There is a condition, you have written the VLOOKUP function …

IFERROR VLOOKUP – Solution for VLOOKUP NA Error

VLOOKUP NA Error
VLOOKUP NA error is the most common error when using …

VLOOKUP NA Error – Causes and Solutions

SUMIFS Limitations and Solutions
“How to Use the Excel SUMIFS Function” article explains SUMIFS …

SUMIFS Limitations and Solutions

Tags:Day Function Excel Split Date and Time HOUR Function How to Separate Date and Time in Excel How to Separate Dates in Excel How to Separate Month and Year From Date in Excel How to Split Date How to Split Date and Time in Excel How to Split Date in Excel INT Function Minute Function MOD Function Month Function QUOTIENT Function SECOND Function Separate Date and Time in Excel Split Date Split Date and Time in Excel Split Date in Excel Split Date Time Excel Year Function

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh