logo
search
Formatting Issues

How to Enter and Format Dates Correctly in Excel

Elise WilliamsElise Williams Sep 27, 2026 873 views

Question details

The user wants to correctly input dates into Excel so they are recognized as valid date values rather than unexpected serial numbers or plain text.

How to Enter and Format Dates Correctly in Excel
Product
Excel
Device & OS
not provided
Scenario
Entering numeric values without standard date separators (such as typing 122524) while expecting the cell to format it as mm/dd/yyyy.
Observed behavior
Excel interprets numbers entered without separators as large serial numbers, converting them into distant, unintended future dates instead of the desired date.
Before you start

Verify that your computer's regional settings match your intended date format (e.g., Month/Day/Year vs. Day/Month/Year) and ensure your cells are set to the 'General' format before typing.

Solution 1Recommended

Use Proper Date Separators When Entering Values

The most reliable way to enter dates in Excel is by manually including standard separators like slashes or hyphens.

Excel inherently stores dates as sequential serial numbers starting from January 1, 1900. Because of this, typing a continuous string of numbers like '122524' prompts Excel to count 122,524 days from 1900, resulting in a date far into the future (the year 2236).

By inserting common separators, Excel's AutoFormat immediately recognizes your input as a date and converts it into the correct underlying serial number.

1
Select the target cell

Click on the cell where you want to input a date.

2
Type with separators

Enter the date using forward slashes (/) or hyphens (-) as separators. For example, type '12/25/2024' or '25-Dec-2024'.

3
Confirm entry

Press Enter. Excel will automatically apply your system's default date formatting to the cell and store the correct date value.

Use Proper Date Separators When Entering Values
Calculation Ready: Dates entered with proper separators generate correct serial numbers, meaning you can safely use them in date-based formulas and logic calculations.
Efficient Data Management

Format Dates Flawlessly with WPS Spreadsheet

WPS Office Spreadsheet provides an intuitive interface for data entry, making it easy to correctly format, convert, and calculate dates just like Microsoft Excel, completely free.

  1. 1. Open your file: Launch WPS Spreadsheet and open your workbook.
  2. 2. Highlight date cells: Select the range of cells containing the dates you want to format.
  3. 3. Access Formatting: Press 'Ctrl + 1' or right-click and select 'Format Cells'.
  4. 4. Choose Date format: Select 'Date' from the category list, pick your preferred layout, and click 'OK' to apply.
Fully compatible with Microsoft Excel (.xlsx) date serial numbers and formats.Easy-to-use Format Cells dialog to customize your date and time displays.Powerful built-in date functions for complex chronological calculations.Free, lightweight, and cross-platform spreadsheet software.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel change 122524 to a date in the year 2236?

Excel stores dates as serial numbers counting upward starting from January 1, 1900 (which equals 1). The number 122,524 represents the 122,524th day after that starting point, which mathematically lands in the year 2236.

How can I convert continuous numbers without separators into real dates?

You can use the 'Text to Columns' feature. Select the column, go to the Data tab, click 'Text to Columns', choose 'Delimited', and click Next until Step 3. Under 'Column data format', choose 'Date', set the layout (e.g., MDY), and click Finish.

Can I use VBA to automatically insert date separators while typing?

Yes, you can write an Event Macro in VBA using the Worksheet_Change event. This macro can intercept specific numerical entries (like 122524), parse the digits, and automatically overwrite the cell with a properly formatted standard date like 12/25/2024.