Excel Number to Date Conversion: Step-by-Step Guide
In this article
Converting an Excel number to a date is achieved by changing the cell's formatting from General or Number to a specific Date format. This process does not alter the underlying value but instructs Excel to display that serial number as a calendar date, which is essential for sorting, filtering, and performing date-based calculations.
What You'll Need
- A Microsoft Excel file (desktop version recommended for full feature access).
- Cells containing numeric values representing dates (e.g., 45103).
- Basic understanding of Excel's serial date system (where day 1 is January 1, 1900, in Windows).
Step-by-Step
- Select the cells: Click on the cell or highlight the range of cells containing the numbers you want to convert into dates.
- Open the Format Cells dialog: Right-click the selected cells and choose Format Cells... from the context menu. Alternatively, use the keyboard shortcut
Ctrl + 1(Windows) orCmd + 1(Mac). Note that menu labels may vary slightly depending on your Excel version and operating system. - Navigate to the Date category: In the Format Cells window, ensure the Number tab is active. In the Category list on the left, scroll down and select Date.
- Choose a location and type: Select your desired country/region under the Location dropdown to set the correct locale settings. Then, pick a specific date format from the Type list (e.g., "3/14/2023" or "March 14, 2023").
- Apply the change: Click OK. The numbers will immediately transform into readable dates. If the column width is too narrow, you may see hash marks (####); double-click the column border to auto-fit the width.
Common Mistakes
The most frequent error is assuming the conversion changes the data type permanently. It does not; it only changes the display. Another common mistake is trying to convert text strings that look like numbers (e.g., "'45103") without removing the apostrophe or leading spaces first, which prevents proper formatting. Additionally, users often forget that Excel has two date systems: the 1900 system (default in Windows) and the 1904 system (used in older Mac files). Mixing these can result in dates being off by four years.
Tips
For bulk conversions, consider using the Text to Columns wizard if your data is imported as text. Go to the Data tab, select Text to Columns, choose Delimited, click Next until step 3, and then select Date as the Column Data Format before finishing. This forces Excel to recognize the data as actual date values rather than just formatted numbers. Also, remember that custom formats allow you to create unique displays, such as showing only the month name or day of the week, without altering the underlying serial number.
Troubleshooting
If your numbers are not converting to dates correctly, check the following:
- Hash marks (####): This indicates the column is too narrow to display the full date. Widen the column by dragging the boundary between column headers or double-clicking the boundary to auto-fit.
- Incorrect dates: Verify that your computer's regional settings match the expected date format in Excel. Go to File > Options > Advanced and ensure the "Use 1904 date system" checkbox matches your data source's origin.
- Numbers remain numbers: Ensure the cell is not formatted as Text. Change the format to General first, then re-enter the number or use Paste Special > Values to clear any lingering text formatting.
- Leading zeros or spaces: Use the
TRIM()function to remove extra spaces and ensure there are no non-printable characters preventing the conversion.
Frequently Asked Questions
Does this change the actual value in the cell?
No, the underlying value remains a number. Only the visual representation changes to a date format. This allows you to perform mathematical operations on the dates while viewing them as human-readable strings.
Why do some dates show up as negative numbers?
Excel stores dates as positive serial numbers starting from January 1, 1900. If you subtract a later date from an earlier one, the result is negative. Since Excel cannot display negative dates in standard formats, it shows the raw negative number instead.
Can I convert dates back to numbers?
Yes, simply change the cell format back to General or Number. The serial number corresponding to that date will reappear.
What is the difference between the 1900 and 1904 date systems?
The 1900 system starts counting days from January 1, 1900, while the 1904 system starts from January 1, 1904. Files created on older Mac versions often used 1904. Converting between them requires adjusting the serial numbers by adding or subtracting 1,462 days.
How do I handle dates stored as text?
If dates are stored as text (often indicated by a green triangle in the corner), use the Text to Columns feature with the Date option, or multiply the cell by 1 using Paste Special > Multiply to force Excel to interpret them as numeric values.