To convert a number to a date in Excel, select the cells containing the numbers, go to the Home tab, click the Number Format dropdown menu in the Ribbon, and select Short Date or Long Date. This works because Excel stores dates as sequential serial numbers, where January 1, 1900, is number 1, and each subsequent day increases the count by one.
Understanding this system is the key to mastering date management in spreadsheets. When you see a five-digit number like 45292 instead of a date, it does not mean your data is corrupted; it simply means the cell is formatted as a General or Number type rather than a Date type. By changing the format, you are telling Excel to display that underlying serial number as a human-readable calendar date. This guide covers the various ways to perform this conversion, from simple formatting to handling complex text-based numbers that cannot be converted with a single click.
What You'll Need
- A computer with Microsoft Excel installed (works on Windows, macOS, and Excel for the Web).
- A dataset containing numeric values that represent dates (e.g., 44197).
- Administrative access to the spreadsheet to change cell formatting.
Step-by-Step
- Select the Target Cells: Use your mouse to click and drag over the range of cells that contain the numbers you want to convert. If you want to convert an entire column, click the letter at the top of the column (e.g., Column A).
- Locate the Home Tab: Ensure you are on the Home tab of the Excel Ribbon. This is the default tab when you open a workbook.
- Open the Number Format Dropdown: In the middle of the Home tab, you will find the "Number" group. There is a dropdown menu that usually says "General" or "Number" by default. Click the small arrow to open the list of available formats.
- Choose a Date Format: From the list, select "Short Date" for a format like 12/05/2026, or "Long Date" for a format like Friday, December 5, 2026. Note that the exact appearance depends on your computer's regional settings.
- Verify the Conversion: Look at your cells. The serial numbers should now be replaced by dates. If you see a series of hashtags (#######), this simply means the column is too narrow to display the full date string; double-click the right border of the column header to auto-fit the width.
If the standard dropdown does not provide the specific date style you need, you can use the Format Cells dialog for more control. Right-click the selected cells, choose "Format Cells...", go to the "Number" tab, select "Date" from the Category list on the left, and then pick your preferred layout from the "Type" list on the right. This allows you to choose between formats like 14-Mar-24 or 2024-03-14.
In cases where your "numbers" are actually text strings (like 20261205) rather than Excel serial numbers (like 46351), the formatting method above will not work. For these, you must use a formula to break the number apart. For a number in cell A1 formatted as YYYYMMDD, use the following formula: =DATE(LEFT(A1,4), MID(A1,5,2), RIGHT(A1,2)). This tells Excel to take the first four digits as the year, the next two as the month, and the final two as the day, then combine them into a valid date object that can then be formatted normally.
Common Mistakes
One of the most frequent errors is attempting to use the Date format on numbers that are not actually Excel serial numbers. If you have a number like 20231015 and apply the "Short Date" format, Excel will treat that number as the 20,231,015th day after January 1, 1900, resulting in a date thousands of years in the future. Always check if your number is a 5-digit serial (current dates are usually in the 40,000s) or a YYYYMMDD string before choosing your method.
Another common mistake is confusing the "Format" with the "Value." Changing a cell to a date format does not change the underlying number; it only changes how it looks. If you try to perform math on these dates and get a weird result, remember that you are adding or subtracting days. For example, adding 1 to a date cell simply moves the date forward by one day.
Users also often forget to check for "Text" formatting. If a cell is explicitly formatted as "Text" before the number is entered, Excel may treat the number as a literal string of characters. In this case, changing the format to "Date" might do nothing until you "refresh" the cell by double-clicking into it and pressing Enter.
Tips
To speed up your workflow, use the keyboard shortcut Ctrl + Shift + # (on Windows) to quickly apply the default date format to a selected range. This is significantly faster than navigating the Ribbon menu when dealing with large datasets.
If you are importing data from a CSV file and the dates are appearing as numbers, consider using the "Text to Columns" feature. Select the column, go to the Data tab, click "Text to Columns," click Next twice to reach Step 3, select "Date," choose the format the data is currently in (e.g., YMD), and click Finish. This converts the data into actual Excel dates in one batch without needing formulas.
For professional reports, use a Custom format. In the Format Cells dialog, select "Custom" and type dd-mmm-yyyy to get a clear, unambiguous date like 05-Dec-2026. This prevents confusion between US (MM/DD/YYYY) and UK (DD/MM/YYYY) date styles when sharing files internationally.
Troubleshooting
If the number does not change to a date after applying the format, the most likely cause is that the number is stored as text. You can tell if this is the case if there is a small green triangle in the top-left corner of the cell. To fix this, select the cells, click the yellow warning icon that appears, and select "Convert to Number." Once converted, apply the Date formatting again.
If you see "#######" instead of a date, do not panic. This is not an error; it is Excel's way of saying the date is too long for the current column width. Hover your mouse over the line between the column letters at the top and double-click to expand the column.
If your date is off by a few days or appears in the wrong year, check the source of your data. Some legacy systems use a "1904 date system" (common in older Mac versions of Excel). To fix this, go to File > Options > Advanced, scroll down to the "When calculating this workbook" section, and toggle the "Use 1904 date system" checkbox. Be careful, as this will shift all dates in your workbook by four years.
Frequently Asked Questions
Why does Excel show my dates as numbers?
Excel stores dates as serial numbers to make calculations easier. If the cell format is set to "General" or "Number," you see the raw serial value instead of the formatted date.
What is the number 1 in Excel dates?
The number 1 represents January 1, 1900. Every whole number after that represents one full day. For example, 2 is January 2, 1900.
Can I convert numbers to dates using a formula?
Yes. If the number is a serial number, you can use =TEXT(A1, "mm/dd/yyyy") to display it as text, or simply use the formatting menu. If it is a YYYYMMDD number, use the DATE, LEFT, MID, and RIGHT functions.
How do I handle dates that are in the wrong format after conversion?
Use the "Format Cells" menu (Ctrl + 1) to access the Date category and select the specific regional or custom format that matches your needs.
Does this work for times as well as dates?
Yes. Excel treats times as decimal fractions of a day. For example, 0.5 represents 12:00 PM. You can use the "Time" or "Custom" format to convert these decimals into readable clock times.