Forum Discussion
Separating Date & Time for Function
- Jan 09, 2020
Hello, dsmith5740
In addition, you can use Power Query to Separate the Date & Time
Click anywhere in the data and execute CTRL + T
Check my table has headers and click OK
In the Get & Transform, click on From Table
In the Power Query editor, click on Split Column in the Home tab
Select By Delimiter
Select Space from the drop-down
Check Left-most delimiter
Click OK. From the caption below, we have the date and time splited into two columns
Then, you can choose Close & Load to load the result back to excel
If you need only date from datetime, that's
=INT(A1)
if only time
=MOD(A1,1)
In general date in Excel are sequential numbers starting from 01 Jan 1900 (on Windows), and the time is decimal part of the numbers.
SergeiBaklan thanks for these 2 formulas to identify both time and date. Very helpful
- SergeiBaklanNov 04, 2020Diamond Contributor
dsmith5740 , glad to help