04 Alternatives: How to Extract Date from Timestamp Excel

04 Best Ways: How to Extract Date from Timestamp Excel?


Extract Date from Timestamp Excel – a big problem to identify those dates and how to extract them?

Cells having ‘Date with time‘ and ‘Date without time‘ – it does matter in a sense, but it really matters in data analysis, MIS preparation when we compare with the two dates.  

Suppose, we have a large master data with some activity dates and want to recheck these dates from another file for billing purposes, both dates are not matched to each other even they are the same dates and it was then painful for anyone.

There are 4 methods to extract date from timestamp Excel:

(01) By using the Text to Columns;

(02) By using the INT () function

(03) By using the TRUNC () function

(04) By using the CONCATENATE () function

(I). HOW TO IDENTIFY THE CELLS HAVING DATE & TIME ALTOGETHER?

Firstly, we need to identify those cells before extract date from timestamp Excel.

We can identify those cells having both date and time altogether in two ways:

(01) By comparing with two dates;

(02) By changing the date format into the general format.

A. METHOD 1: BY COMPARING WITH TWO DATES

While comparing two dates (of course, one date should have no timestamp), we can easily identify the cells having the date and time altogether.  We can compare through the ‘True’ and ‘False’ method. The Syntax is: =A2=B2 and copied down the formula till the end of the range. 

➢ Trueindicates both dates are unique.

➢ False indicates one of them having a time extension.

Identify the cells having date & time altogether

B. METHOD 2: BY CHANGING THE DATE FORMAT INTO THE GENERAL FORMAT

Alternatively, if we can convert the date format into the general format, we find that some cell values having point extensions, that indicate that those cells having a date with a time.

We can do this in three ways, but before we proceed to select the column range individually (A2:A14) or entirely (A2:B14).

(01) To Apply the ‘General’ Format: using the Excel Shortcut

(02) To Apply the ‘General’ Format: using the Alternate Excel Shortcut

(03) To Apply the ‘General’ Format: using the Ribbon

(01) TO APPLY THE ‘GENERAL’ FORMAT: USING THE EXCEL SHORTCUT (ALT+H+N)

It is the smart way to use the Excel shortcut to apply the ‘General’ format.

➢ Method 1: Select the range ➪ Use the Excel shortcut Alt+H+N (sequentially press Alt, H, N on the keyboard) to activate the ‘Number’ Format box under the ‘Home‘ tab ➪ then just type ‘Gen‘ ; Excel, by default, suggests the category General in the box.

➢ Method 2: Equivalently, select the range ➪ Press  Alt+H+N (sequentially press Alt, H, N on the keyboard) to activate the ‘Number’ Format box ➪ Then press Alt+⬇ which will open the drop-down list  Choose the ‘General‘ category from the drop-down list ➪ then press Enter.

Identify the cells having date & time altogether - apply the general format using Excel shortcut

(02) TO APPLY THE ‘GENERAL’ FORMAT: USING THE ALTERNATE EXCEL SHORTCUT (CTRL+1)

Alternatively, we can apply another Excel shortcut to apply the ‘General’ format.

Select the range ➪ Apply keyboard shortcut Ctrl+1 which will open the Format Cells dialog box ➪ Then click on the Number tab ➪ select the General format ➪ click  OK or press Enter.

Identify the cells having date & time altogether - apply the general format using another Excel shortcut

(03) TO APPLY THE ‘GENERAL’ FORMAT: USING THE RIBBON

It is a manual process. 

➢ Method 1: Go to the Home tab ➪ Click on the Alignment dialog box launcher is located on the right side bottom corner in the Alignment group, which will open the Format Cells dialog box ➪ Select General’ ➪ Click on OK or press Enter.

HOW TO ENTER TEXT IN EXCEL CELL_GENERAL TO TEXT FORMAT IN EXCEL_2

➢ Method 2: Go to the Home tab ➪ Click on the Number dialog box launcher is located on the right side bottom corner in the Number group, which will open the Format Cells dialog box ➪ Select General’ ➪ Click on OK or press Enter.

HOW TO APPLY EXCEL NUMBER FORMAT_3

After applying one of the above mentioned three methods, the Date format will be changed in the General format.

The same method should be applied in both the columns (i.e., Date with Time and Date without time) and it seems to be:

Identify the cells having date & time altogether - showing point extension after the values due to converting date format to general format

(II). HOW TO EXTRACT DATE FROM TIMESTAMP EXCEL?

A. EXTRACT DATE FROM TIMESTAMP: BY CHANGING THE ‘TEXT TO COULMNS WIZARD’

Convert Text to Columns Wizard‘ is one of the best ways to extract date from timestamp in Excel. The process is as follows:

(01) To Change the Date format into the General format;

(02) To Split the point extension after the values;

(03) To Change the General format into the Date format.

(01) TO CHANGE THE DATE FORMAT INTO THE GENERAL FORMAT

We had already mentioned the process above, just follow it carefully. 

(02) TO SPLIT THE POINT EXTENSION AFTER THE VALUES

In the next step, after identifying the cells or columns, we have to use theConvert Text to Columns Wizardto remove/split the point extensions from the values.

• Add two additional columns in-between ‘Date with Time’ and ‘Date without Time’ by using the Excel shortcut Ctrl + +(plus).

■ Note: We had detail discussed on Excel shortcuts in separate two tutorials, suggested you read these tutorials: 

80+ Excel Shortcuts with ALT Key || Best Hotkey of Keyboard Shortcuts

90+ Best Excel CTRL Shortcuts | Useful Keyboard Shortcuts |

• Select the range A2:A14.

• Press Alt+D+E (sequentially press Alt, D, E) or Alt+A+E (sequentially press Alt, A, E) on the keyboard which will open the ‘Convert Text to Columns Wizard‘.

In Step 1Excel, by de fault, selects the ‘Delimited‘ radio button (if not, then select this radio) ➪ Press Enter or click Next

Split the point extension after the values - first step

• In Step 2, select the only checkbox ‘Other’ and enter a point (.) in the box to the right of it because the point is used here as a delimiter. Make sure that other checkboxes should be unchecked (if any) ➪ Press Enter or click Next.

Split the point extension after the values - second step

• In Step 3, Excel by default selects the ‘General’ radio button and we select the destination cell in B2 to avoid the overwriting of existing data.

Split the point extension after the values - third step

• Click on Finish or press Enter on the keyboard.

A new window appears and asking for replacing the existing data. Click on OK or press Enter.

Split the point extension after the values - fourth step

• This would instantly give the results in two parts – the integer part in one column and the fraction part in another column.

Split the point extension after the values - fifth step

(03) CHANGE THE GENERAL FORMAT INTO THE DATE FORMAT

Select both columns B and D by pressing the Ctrl key and then press Ctrl+Shift+# for date formatting.

Change the general format into the date format

(04) REARRANGE THE DATA PROPERLY

Rearrange the data properly is a very common word but it is very important in data analysis and report preparation. After copied the date ranges B2:B14, paste it to a new location i.e.,in cell A2 (the starting cell where to paste the range).  

Remember that we should try to avoid the normal paste (Ctrl+V), rather we would like to use Values and number formats (Alt+Ctrl+V+U or Alt+E+S+U) or ‘Values‘ (Alt+Ctrl+V+V or Alt+E+S+V) in the Paste Special dialog box.

The reason behind this is to keep our cell formatting (like font, font size, font color, text color, etc.) as it is already have previously.  

The entire range would instantly convert from formulas to values.

Rearrange the data properly

After pasting the dates from column B to column A, please notice that all the ‘False’ cells become ‘True’.

Then select the unused columns like B and C and delete them by using the Excel shortcut Ctrl + minus (-).

That’s it!

Rearrange the data properly - deleting unused columns

B. EXTRACT DATE FROM TIMESTAMP: USING THE INT() FUNCTION

Extract Date from Timestamp If we have dates with time values and we want to extract only the date portion, we can use a formula that uses the INT function.

Excel identifies the date-time format as numbers with two parts – (i) serial numbers as dates and (ii) fractional values as times. For example, Excel recognizes  06-10-2019  14:11 PM as the number 43744.59, where 43744 is the date part and .59 is the time part.

So in that case, we can extract date from date-time format by using a formula that uses either INT function or TRUNC function.  Suppose, cell A1 contains the date-time format, 06-10-2019  14:11 PM, the formula has returned the date part 06-10-2019 as number format (43744).

The Syntax for the INT() function is: =INT(number)

Using the INT() Function: Extract Date from Timestamp

C. EXTRACT DATE FROM TIMESTAMP: USING THE TRUNC() FUNCTION

Alternatively, TRUNC() is the function that simply extracts the date from the timestamp, removing the extra digits without performing any rounding.

However, INT() function is the simpler of the two, as it always rounds to whole numbers. We need only specify the number we want rounded. 

In each case, Excel discards the decimal portion. TRUNC () is similar to INT (), except it uses a second argument specifying the number of decimal places we want to preserve. This argument is optional, and if we leave it out, TRUNC () and INT () behave exactly the same with positive numbers.

The Syntax for the TRUNC function is: =TRUNC(number_to_round, [number_of_digits])

Using the TRUNC() Function: Extract Date from Timestamp

D. EXTRACT DATE FROM TIMESTAMP: USING THE CONCATENATE() FUNCTION

We can use CONCATENATE() function to extract date from timestamp. 

The Syntax of the CONCATENATE function is: =CONCATENATE(text1, [text2],…)

• Select the cell (i.e., B2) where to apply the CONCATENATE function. Type ‘con…‘ and select the CONCATENATE function from the drop-down suggestion list with the help of a down arrow (↓). Remember that upper or lower case doesn’t matter. 

• Then press the Tab key which allows the opening of CONCATENATE syntax with an open parenthesis. 

• We allow the DAY () function within the CONCATENATE function to capture the date from the date-time format. Within the DAY function, select the cell and close the parenthesis. Then place a comma that allows moving to the next argument of the syntax. 

• As a next argument, we use a delimiter slash ‘/‘ or dash ‘‘ inside the double quotation marks as EXCEL read them as text.

Using the CONCATENATE() Function-Extract Date from Timestamp_1

• Then we allow the next function MONTH () to capture the month from the date-time format. As similar to the DAY function, select the cell and close the parenthesis. Then place a comma that allows moving to the next argument of the syntax. 

• The next argument, again we use a delimiter slash ‘/‘ or dash ‘‘ inside the double quotation marks as EXCEL read them as text.

• Then we use the YEAR () function to capture the year. As similar to the above function, select the cell and close the parenthesis.

If we didn’t close the last parenthesis and press Enter, a suggestion pop-up of Microsoft Excel appears. Again press Enter or click on ‘Yes‘, indicating that we want to accept the correction and Excel by default closes all the parentheses. 

• A combination of all functions to capture the date from the timestamp. Copy the formula till the end of the range.     

Using the CONCATENATE() Function-Extract Date from Timestamp_02

• In the next step converts the formula into values with the help of the Paste Special dialog box. We can follow any of the following methods:

➢ Method 1: Copy the range press Alt+E+S+U (sequentially press Alt, E, S, U) or Alt+Ctrl+V+U (sequentially press Alt+Ctrl+V, U) to select the ‘Values and number formats‘ option Press Enter or Click OK to accept the condition. 

➢ Method 2: or press Alt+E+S+V (sequentially press Alt, E, S, V) or Alt+Ctrl+V+V (sequentially press Alt+Ctrl+V, V) to select the ‘Values‘ option Press Enter or Click OK to accept the condition. 

Using the CONCATENATE() Function-Extract Date from Timestamp_3

• The date range is not converted into a valid date format by using the Excel shortcut Ctrl+Shift+# or applying the date format under the ‘Format Cells‘ dialog box. There is an easy solution using the ‘Convert Text to Columns Wizard‘.

• Select the range Press Alt+A+E (sequentially press Alt, A, E) or Alt+D+E (sequentially press Alt, D, E) to open the ‘Convert Text to Columns Wizard‘.

• In Step 1, select ‘Delimited‘ (Excel by default select this option) ➪ Press Enter or click Next.   

Using the CONCATENATE() Function-Extract Date from Timestamp_4

•  In Step 2, uncheck all the checkboxes Press Enter or click Next.

Using the CONCATENATE() Function-Extract Date from Timestamp_5

• In Step 3, select the Date option under the ‘Column date format‘ section. No need to change the Destination cell Press Enter or click Finish to accept the condition.  

• As a result, all dates will be converted into a valid date format.

Using the CONCATENATE() Function-Extract Date from Timestamp_6

E. EXTRACT DATE FROM TIMESTAMP: USING ALTERNATE CONCATENATE FORMULA

We can use the ampersand sign (&) to concatenate. 

Concatenate Date(), Month() and Year() function with the ampersand sign. We should use the slash ‘/’ or dash’-‘ as a delimiter in between the separate functions and make concatenate using the ampersand sign (&). 

Now, the formula is =DAY(A2) &‘/’&MONTH(A2) &‘/’&YEAR (A2)

Alternatively,  =DAY(A2) &‘-‘&MONTH(A2) &‘-‘&YEAR (A2)

Extract Date from Timestamp:  Using the Alternate CONCATENATE function:

Then we convert the formulas into values with Paste Special dialog box (follow the same process is mentioned above).

Finally, convert the text values into the date format with the help of Convert Text to Column Wizard.

(III). CONCLUSION

How to Extract Date from Timestamp Excel

If our working database having a combined date and time, then we should use one of the following steps to extract date from timestamp:  

(01) We should identify those cells- 

• Convert date format to general format

(02) After identification, use one of the following methods to extract date from timestamp-

• Using ‘Text to Columns wizard

(i) Convert date format to general format

(ii) Split the point extension after the values

(iii) Convert general format to date format 

(iv) Finally, rearrange the data properly

• Using the INT () function

• Using the TRUNC () function

• Using CONCATENATE () function.

If you would like to improve your academic and professional career as well, then the below courses help you a lot. Instead of Advanced Excel, a number of best courses suggested you through this platform that boosts your confidence and flies your career high.
AEF_192by192
Advance Excel Forum

Premium Courses on ed2go

excel 2019 series4&bids=739114

Microsoft Excel 2019/Office 365 Series

Bestseller
4.9/5
Microsoft Excel Access 194&bids=739114

Microsoft Excel and Access 2019 Suite

Bestseller
4.9/5
microsoft excel 2016 advanced training4&bids=739114

Advanced Microsoft Excel 2016

Bestseller
4.9/5
intermediate excel courses 20134&bids=739114

Intermediate Microsoft Excel 2013

Bestseller
4.9/5
accounting with excel 2019 suite4&bids=739114

Accounting with MS Excel 2019 Suite

Bestseller
4.9/5
excel classes4&bids=739114

Microsoft Excel 2016 Series

Bestseller
4.9/5

Premium Courses on Coursera

Course 2 logo crop4&bids=759505

Data Analysis and Visualization

Bestseller
4.9/5
04 Fundamentals4&bids=759505

Excel Fundamentals for Data Analysis

Bestseller
4.9/5
04 Visualisation4&bids=759505

Data Visualization in Excel

Bestseller
4.9/5
044&bids=759505

Excel Skills for Business

Bestseller
4.9/5
Specialization Certificate Emblem AADS Final4&bids=759505

Advanced Data Science with IBM

Bestseller
4.9/5
118478 iconImage EducationCoursera VA orange4&bids=759505

Data Analysis and Reporting in SAS Visual Analytics

Bestseller
4.9/5
4&bids=759505

Introduction to Spreadsheets and Models

Bestseller
4.9/5
4&bids=759505

Accounting Analytics

Bestseller
4.9/5
Introduction to Data Engineering Image4&bids=759505

Introduction to Data Engineering

Bestseller
4.9/5

Premium Courses on Udemy

164058 e914 24&bids=507388

The Ultimate Excel Programmer Course (Learn Excel VBA from Scratch with Dan Strong, Bestselling Excel Expert with Over 180K Students Worldwide!)

Bestseller
4.8/5
3614594 b3c5 34&bids=507388

Microsoft Excel Certification Exam Prep: MO-201 Excel Expert (Ace the Excel MO-201 Exam. Learn advanced data analysis & earn the Excel Expert Certification (MS Excel 2019/Office 365)

Bestseller
4.8/5
575434 0e4a 54&bids=507388

Excel Charts, Graphs & Data Visualization in Excel (Master 20+ Advanced Dynamic Excel Charts and Create Impressive Excel Graphs & Data Visualization in Microsoft Excel)

High Rated
4.8/5
1974808 0835 34&bids=507388

Master Excel Functions in Office 365 – Excel Dynamic Arrays (Learn to Use Excel’s NEW Functions (FILTER, UNIQUE, SORT, XLOOKUP.) to Dramatically Simplify the Work You Do in Excel.)

High Rated
4.9/5
2542943 541c 64&bids=507388

Excel Essentials for the Real World (Complete Excel Course) [Microsoft Excel Beginner to Professional. Includes Pivot Tables, Power Query, NEW Formulas. (Excel 365, 2019 & 2016)]

Bestseller
4.8/5
773214 f3b8 94&bids=507388

Advanced Excel – Top Excel Tips & Formulas (Master Advanced Excel Formulas. Solve Complex Problems. Learn Advanced Excel Skills to Save Time & Impress (Excel 2010)

Bestseller
4.6/5
Read-More-5

Thanks for your interest joining to Advance Excel Forum community.

Something went wrong.

Join Our Community List

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.


Like it? Share with your friends!

Share via

Join Our Community List

Community grow with You. * VERIFY & CONFIRM YOUR EMAIL *

Thanks for your interest joining to Advance Excel Forum community.

Fill the Correct Information.

Thanks for your interest joining to Advance Excel Forum community.

Something went wrong.

Join Our Community List

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

We use cookies to ensure that we give you the best experience on our website (by analyzing).  Please see our cookies page for further details or agree by clicking the 'Accept' button.

 

Cookie settings

Below you can choose which kind of cookies you allow on this website. Click on the "Save cookie settings" button to apply your choice.

FunctionalOur website uses functional cookies. These cookies are necessary to let our website work.

AnalyticalOur website uses analytical cookies to make it possible to analyze our website and optimize for the purpose of a.o. the usability.

Social mediaOur website places social media cookies to show you 3rd party content like YouTube and FaceBook. These cookies may track your personal data.

AdvertisingOur website places advertising cookies to show you 3rd party advertisements based on your interests. These cookies may track your personal data.

OtherOur website places 3rd party cookies from other 3rd party services which aren't Analytical, Social media or Advertising.