This means that while you may see a date such as “10 January 2020” or “01/10/2020” in a cell, in the back-end, Excel is storing that as a number. This is useful as it also allows users to easily add/subtract date and time in Excel. In Microsoft Excel for Windows, “01 Jan 1900” is stored as 1, “02 Jan 1900” is stored as 2, and so on. Below, both columns have the same numbers, but Column A shows numbers and Column B shows the date that’s represented by that number.

This is also the reason that sometimes you may expect a date in a cell but end up seeing a number. I see this happening all the time when I download data from databases or web-based tools. It happens when the cell format is set to show a number as a number instead of a date. So how can we convert these serial numbers into dates? That’s what this tutorial is all about. In this tutorial, I would show you two really easy ways to convert serial numbers into dates in Excel So let’s get started!

## Convert Serial Numbers to Dates Using Number Formatting

The easiest way to convert a date serial number into a date is by changing the formatting of the cells that have these numbers. You can find some of the commonly used date formats in the Home tab in the ribbon Let me show you how to do this.

### Using the In-Built Date Format Options in the Ribbon

Suppose you have a data set as shown below, and you want to convert all these numbers in column A into the corresponding date that it represents.

Below are the steps to do this: That’s it! The above steps would convert the numbers into the selected date format.

The above steps have not changed the value in the cell, only the way it’s being displayed. Note that Excel picks up the short date formatting based on your system’s regional setting. For example, if you’re in the US, then the date format would be MM/DD/YYYY, and if you are in the UK, then the date format would be DD/MM/YYYY. While this is a quick method to convert serial numbers into dates, it has a couple of limitations:

There are only two date formats – short date and long date (and that too in a specific format). So, if you want to only get the month and the year and not the day, you won’t be able to do that using these options. You cannot show date as well as time using the formatting options in the drop-down. You can either choose to display the date or the time but not both.

So, if you need more flexibility in the way you want to show dates in Excel, you need to use the Custom Number Formatting option (covered next in this tutorial).

### Creating a Custom Date Format Using Number Formatting Dialog Box

Suppose you have a data set as shown below and you want to convert the serial numbers in column A into dates in the following format – 01.01.2020

Note that this option is not available by default in the ribbon method that we covered earlier. Below are the steps to do this: The above steps would convert the numbers into the selected date format.

As you can see, there are more date formatting options in this case (as compared with the short and long date we got with the ribbon). And in case you do not find the format you are looking for, you can also create your own date format. For example, let’s say that I want to show the date in the following format – 01/01/2020 (which is not already an option in the format cells dialog box). Here is how I can do this: The above steps would change all the numbers into the specified number format.

With custom format, you get full control and it allows you to show the date in whatever format you want. You can also create a format where it shows the date as well time in the same cell. For example, in the same example, if you want to show date as well as time, you can use the below format: Below is the table that shows the date format codes you can use:

## Convert Serial Numbers to Dates Using TEXT Formula

The methods covered above work by changing the formatting of the cells that have the numbers. But in some cases, you may not be able to use these methods. For example, below I have a data set where the numbers have a leading apostrophe – which converts these numbers into text.

If you try and using the inbuilt options to change the formatting of the cells with this data set, it would not do anything. This is because Excel does not consider these as numbers, and since dates for numbers, Excel refuses your wish to format these. In such a case, you can either convert these text to numbers and then use the above-covered formatting methods, or use another technique to convert serial numbers into dates – using the TEXT function. The TEXT function takes two arguments – the number that needs to be formatted, and the format code. Suppose you have a data set as shown below, and you want to convert all the numbers and column A into dates.

Below the formula that could do that:

Note that in the formula I have specified the date formatting to be in the MM/DD/YYYY format. If you need to use any other formatting, you can specify the code for it as the second argument of the TEXT formula. You can also use this formula to show the date as well as the time. For example, if you want the final result to be in the format – 01/01/2020 12:00 AM, use the below formula: In the above formula, I have added the time format as well so if there are decimal parts in the numbers, it would be shown as the time in hours and minutes. If you only want the date (and not the underlying formula), convert the formulas into static values by using paste special. One big advantage of using the TEXT function to convert serial numbers into dates is that you can combine the TEXT formula result with other formulas. For example, you can combine the resulting date with the text and show something such as – The Due Date is 01-Jan-2020 or The Deadline is 01-Jan-2020 Note: Remember dates and time are stored as numbers, where every integer number would represent one full day and the decimal part would represent that much part of the day. So 1 would mean 1 full day and 0.5 would mean half-a-day or 12 hours. So these are two simple ways you can use to convert serial numbers to dates in Microsoft Excel. I hope you found this tutorial useful! Other Excel tutorials you may like:

How to SUM values between two dates (using SUMIFS formula) How to Stop Excel from Changing Numbers to Dates Automatically How to Remove Time from Date/Timestamp in Excel Calculate the Number of Months Between Two Dates in Excel Excel DATEVALUE Function – Convert Date in Text into Serial Date Formats How to Convert Numbers to Text in Excel How to Compare Dates in Excel (Greater/Less Than, Mismatches) Convert Scientific Notation to Number or Text in Excel How To Convert Date To Serial Number In Excel?