How to Convert Timestamp to Date in Excel (2 Suitable Cases)

Here’s an overview of the dataset and the features we’ll use to convert UNIX time and timestamps into an Excel date.

Overview of the article on how to convert timestamp to date in Excel with formulas and features


How to Convert a Timestamp to a Date in Excel: 2 Suitable Cases

Let’s say, we have two types of timestamp data.

We have Unix-based Timestamp data:

Dataset of Unix timestamp with Unix time and date columns

Then we have UTC-based Timestamp data:

Dataset of UTC timestamp with Date-time and date columns


Case 1 – Convert a Unix Timestamp to a Date

Steps:

=B5/86400+ DATE(1970,1,1)

Apply DATE function and arithmetic formula to convert timestamp to date in Excel

  • Press Enter.

Drag Fill Handle to Copy formula

  • Drag the Fill Handle tool to Autofill up to Cell C9 to convert all the timestamps to dates.

Result of applying formula to convert timestamp to date

  • Right-click on the selected cells.
  • Select Format Cells from the context menu.

Select Format Cells from context menu

  • The Format Cells dialog box will pop up.
Note: You can also perform the same task by pressing CTRL+1.
  • Select Date in the Category list under the Number tab, then select the Date Type in the right section.
  • Click OK.

Choosing date format in the Format Cells dialog box in Excel

  • You’ll see a date without time.

Results showing conversion of Unix timestamp to date in Excel

Read More: How to Convert Active Directory Timestamp to Date in Excel


Case 2 – Convert a UTC Timestamp to a Date


Method 2.1 – Using the Format Cells Option

Steps:

  • Select Cell C5.
  • Apply the following formula in that cell:

=B5

Enter B5 as Cell Reference

  • Press Enter.
  • Copy the formula up to Cell C9 to convert all the timestamps to date.

Result showing the application of formula with fill handle tool

  • Open the format cells dialog box and repeat the same steps in Case 1 and you will get the following results.

Results showing conversion of UTC timestamp to date in Excel with format cells option


Method 2.2 – Applying the Text to Columns Wizard

Steps

  • Copy the cells from B5:B9 to C5:C9.

Copy and paste data from a range of cells to another

  • Select the range of cells C5:C9.
  • From the Ribbon section, go to Data tab and the Data Tools group, then select Text to Columns option from the list.

Selecting Text to Columns option in the data tab

  • The Convert Text to Columns Wizard – Step 1 of 3 window opens up.
  • Select Delimited and click on Next.

Step 1 of Convert Text to columns wizard choosing delimited option

  • In the Convert Text to Columns Wizard – Step 2 of 3, select Space and click on Next.

Step 2 of Convert Text to Columns wizard selecting space delimiter

  • In the Convert Text to Columns Wizard – Step 3 of 3, select General for the first column.

Step 3 of Convert Text to Columns wizard choosing general data format

  • For both the second and the third column, select the Do not import column(skip)
  • Click on Finish.

Selecting do not import column and closing text to column wizard

  • We get the result as follows:

Output from Text to columns in Excel

  • Open the format cells dialog box and repeat the same steps in Case 1 and you will get the final results.

Results showing conversion of UTC timestamp to date in Excel with text to columns option 


Method 2.3 – Modifying a Timestamp to a Date Using INT Function

Steps

  • Insert the following formula in Cell C5:

=INT(B5)

Apply INT function in Excel

  • Fill the rest of the cells using Autofill.

using fill handle to copy formula to the cells below

  • Repeat the reformatting steps in Case 1 and you will get the following results.

Results showing conversion of UTC timestamp to date in Excel with INT function


Method 2.4 – Implementing the DATE Function to Change a Timestamp to a Date

Steps

  • Apply the following formula in Cell C5:

=DATE(YEAR(B5),MONTH(B5),DAY(B5))

Applying DATE, YEAR, MONTH, DAY functions in Excel

  • Fill the rest of the cells using the Autofill feature to get the complete result.

Results showing conversion of UTC timestamp to date in Excel with DATE, YEAR, MONTH, DAY functions


Method 2.5 – Combining DATEVALUE and TEXT Functions to Alter a Timestamp to a Date

Steps

  • Select Cell C5 and apply the following formula:

=DATEVALUE(TEXT(B5,"MM/DD/YYYY"))

Applying DATEVALUE and TEXT functions 

  • Fill the rest of the cells using the Autofill feature to get the complete result.

Results showing conversion of UTC timestamp to date in Excel with DATEVALUE and TEXT functions 

Note: The TEXT function converts the value into the text format. On the other hand, the DATEVALUE function just converts the text formatted string to the date value.

Download the Practice Workbook

We have prepared a workbook so that you can practice. You can download it from the link below.


Related Articles


<< Go Back to Convert to Date | Date-Time in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Robiul Hossain
Robiul Hossain

Hello, I am Robiul. I’ve completed my BSc in Naval Architecture & Marine Engineering from Bangladesh University of Engineering & Technology (BUET). I have a keen interest in Programming and Data science. I really love to solve problems that help lots of people in their day to day life. Currently, I am working with a highly skilled and motivated Technical Writing team of ExcelDemy. We are committed to bringing you the best possible results of your Microsoft Excel problems.... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo