Excel Keeps Changing Numbers to Dates? Fix It Fast
In this article
Excel turns a number into a date because the cell is formatted as a date, or because you typed something Excel recognises as a date (like 1/2 or 3-4) and it auto-converted it on entry. The quickest fix is to select the cells, open the Number Format dropdown on the Home tab, and choose Number or General. If the value has already been converted, you may also need to re-enter it with a leading apostrophe or pre-format the cells before typing. This guide covers the settings that cause the problem, how to stop it happening again, and what to do when a column of imported data is already wrong.
What You'll Need
- Excel for Windows, Excel for Mac, or Excel for the web (the Home tab and Format Cells dialog exist in all three, though the exact wording of some menus differs slightly by version and region).
- The workbook where the numbers are turning into dates.
- Nothing else — no add-ins or special settings are required.
Step-by-Step
- Confirm what Excel actually stored. Click one of the affected cells and look at the formula bar at the top. If the formula bar shows a date (for example 01/02/2025) rather than the number you typed, Excel converted the value on entry. If the formula bar shows your number but the cell displays a date, it is only a formatting problem and the number is still intact.
- Fix a formatting-only problem first. Select the affected cells or the whole column. On the Home tab, open the Number Format dropdown (the box that currently shows something like Date or Short Date) and choose Number or General. The stored value reappears immediately.
- If the value was converted on entry, re-enter it. Type an apostrophe before the number, for example
'1/2, and press Enter. Excel treats everything after the apostrophe as text and leaves it exactly as typed. The apostrophe itself is not displayed in the cell. - Or pre-format the cells before typing. Select the range, right-click and choose Format Cells (or press Ctrl+1 on Windows, Cmd+1 on Mac). On the Number tab, select Text and click OK. Anything you type into those cells afterwards stays as text, including fractions and codes with hyphens.
- For a whole column of pasted or imported data, use Text to Columns. Select the column, go to the Data tab and click Text to Columns. Choose Delimited, click Next, then Next again, and on the final screen set the column format to Text before clicking Finish. This reinterprets the existing entries as text without retyping them.
- Stop Excel auto-converting new entries. Open File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type (on Mac, Excel > Preferences > AutoCorrect). Clear the options that replace fractions with fraction characters and that apply number formats as you type. The exact labels vary slightly between versions, so look for the entries mentioning fractions and automatic formatting.
- Check for a date format applied by a template or copied cell. If new rows keep turning into dates, the column may have a date format inherited from a table style or a copied cell. Select the whole column, apply General or Number, then save the workbook so the format sticks.
- Verify the result. Click each fixed cell and check the formula bar shows the number, not a date. If you need the value in calculations, confirm it is right-aligned by default (numbers align right, text aligns left) — or simply test it with a formula such as
=A1+1.
Common Mistakes
- Formatting after the fact instead of before. Changing a cell to Number does not undo a conversion Excel already made on entry. If the formula bar shows a date, the original number is gone and must be retyped.
- Using a leading apostrophe on data you need to calculate. The apostrophe forces text, and text values are ignored by SUM and most other functions. Use it only for codes, IDs, fractions or part numbers that are never used in maths.
- Assuming the display is the value. A cell can show 01/02/2025 while holding a serial number. Always check the formula bar before deciding the data is corrupted.
- Pasting from another program without setting the format. Copying from a CSV, a web page or another workbook can re-trigger date conversion. Paste into pre-formatted Text cells, or use Paste Special > Values after formatting the destination.
- Ignoring regional settings. In some regions 1/2 means 2 January; in others it means 1 February. If your dates come out swapped, check the Windows or Mac region settings, because Excel follows the system's date order.
Tips
- Use General format for mixed columns where some cells are numbers and some are text; it lets Excel decide per cell.
- For part numbers or phone numbers with leading zeros, format the column as Text before entering anything. Otherwise Excel drops the leading zero.
- If you want a fraction like 1/2 to stay as a fraction and still calculate, format the cell as Fraction instead of Text. It remains a number and displays as 1/2.
- When importing a CSV, use Data > From Text/CSV and set the column type to Text in the preview rather than opening the file directly by double-clicking.
- Keep a copy of the original data before running Text to Columns or bulk reformatting, in case a column is reinterpreted incorrectly.
Troubleshooting
The cell still shows a date after choosing Number. The cell probably contains a real date value. Check the formula bar. If it shows a date, retype the number with a leading apostrophe or pre-format the cell as Text.
New entries keep converting even after formatting. AutoFormat As You Type is likely still on. Turn it off in AutoCorrect Options, then re-enter the values.
Text to Columns changed the values. Undo with Ctrl+Z (Cmd+Z on Mac) immediately, then repeat the steps and make sure Text is selected on the final screen before clicking Finish.
Numbers show as text and won't sum. Select the cells, choose Number format, then use Data > Text to Columns and click Finish without changing any options — this converts text-that-looks-like-a-number back into a real number.
Dates appear swapped (day and month reversed). This comes from the system region settings, not Excel. Change the date order in Windows Settings > Time & Language > Language & Region, or macOS System Settings > General > Language & Region, then reopen the workbook.
Nothing works and the file is shared. Another user may be entering data with a different format. Agree on a template with the column pre-formatted as Text or Number and share that instead of the original file.
Frequently Asked Questions
Why does Excel turn 1/2 into a date?
Excel reads the slash as a date separator. Typing 1/2 is interpreted as 2 January or 1 February depending on your region. Pre-format the cell as Text or Fraction, or type an apostrophe first.
Does changing the format back to Number restore my original number?
Only if Excel stored the number and merely displayed it as a date. If the formula bar shows a date, the value was converted and must be retyped.
How do I stop Excel converting numbers to dates permanently?
Turn off the AutoFormat As You Type options for fractions and automatic number formats, and pre-format columns that hold IDs, codes or fractions as Text.
Can I convert a whole column of dates back to numbers at once?
Yes, if the underlying values are numbers displayed as dates: select the column and apply Number format. If they are true dates, you cannot recover the original text — you will need to re-enter or re-import the data.
Why do my dates look different on another computer?
Excel follows the operating system's regional date settings. The same workbook can display day/month or month/day order on two machines. The stored value is unchanged; only the display differs.
Is a leading apostrophe safe to use?
It is safe for labels, codes and fractions that are never used in calculations. Avoid it for any value you need to sum, average or compare numerically.