Excel keeps entering numbers as dates because it automatically interprets certain patterns — like 1/2, 3-4, or 5/6 — as dates. To stop this, format the cells as Text before typing, or type an apostrophe before the number. This guide shows you exactly how to do that, plus how to fix existing cells that already turned into dates.

What You'll Need

  • Excel for Windows, Mac, or the web (steps apply to all; menu labels may differ slightly by version, device, or region)
  • Your spreadsheet file

Step-by-Step

  1. Prevent future auto-conversion by formatting cells as Text. Select the cells or entire column where you'll type numbers. Right-click and choose Format Cells (or press Ctrl+1 on Windows, Cmd+1 on Mac). In the Number tab, select Text and click OK. Now any number you type — including 1/2 or 3-4 — stays exactly as typed.
  2. Use the apostrophe trick for quick entry. If you only need to stop a few cells from converting, type an apostrophe (') before the number, like '1/2. Excel treats the entry as text and hides the apostrophe. This works in any cell without changing formatting.
  3. Pre-format an entire column before pasting data. If you're pasting a list of numbers that look like dates, format the destination column as Text first (step 1), then paste. Otherwise Excel may convert them on paste.
  4. Fix cells that already became dates. Select the affected cells, go to Home > Number Format dropdown, and choose Text. Then re-enter the value (or press F2 and Enter). Changing the format alone won't revert the stored date value; you must re-enter the number.
  5. Use Text to Columns to convert a whole column back. Select the column, go to Data > Text to Columns. Choose Delimited and click Next, then Next again. In step 3, set the column format to Text and click Finish. This reinterprets the values as text without retyping.
  6. Adjust Excel's AutoCorrect options (Windows only). Go to File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type. Uncheck Replace as you type for fractions and dates if you want to stop automatic replacement. Note: this setting is not available in Excel for the web or Mac in the same location; on Mac, look under Tools > AutoCorrect.
  7. For CSV imports, set the column format during import. When opening a CSV, use Data > From Text/CSV and in the preview, click Transform Data. Select the column and set its data type to Text before loading. This prevents Excel from guessing dates.

Common Mistakes

  • Formatting after typing. Changing a cell to Text after Excel already stored a date won't bring back the original number. You must re-enter the value.
  • Assuming the apostrophe is visible. The apostrophe is a prefix that tells Excel to treat the entry as text; it does not appear in the cell or in formulas. If you need a literal apostrophe, type two.
  • Using the wrong regional format. In some regions, 1/2 is read as January 2; in others, as February 1. Formatting as Text avoids this entirely.
  • Forgetting that formulas still calculate. Text-formatted numbers won't work in arithmetic. If you need both display and calculation, consider storing the number as a decimal (0.5) and formatting the cell to show fractions.

Tips

  • For a whole column, click the column header to select it, then format as Text. New rows will inherit the format.
  • If you frequently enter fractions, consider using a custom number format like # ?/? to display decimals as fractions without converting to dates.
  • To check if a cell is text or a date, look at the alignment: text is left-aligned by default, dates are right-aligned.
  • When sharing a file, note that Text-formatted numbers may be treated as text by other programs; export to CSV with the correct settings if needed.

Troubleshooting

  • Numbers still convert after formatting as Text? Make sure you formatted the cells before typing. If you typed first, re-enter the values. Also check that the cell isn't part of a table with a different format.
  • Text to Columns didn't work? Ensure you selected the entire column and that no merged cells are present. Merged cells can cause the wizard to fail.
  • AutoCorrect option is greyed out? This can happen in Excel for the web or in protected view. Enable editing first.
  • Pasting from another source still converts? Use Paste Special > Text or paste into Notepad first, then copy into Excel.

Frequently Asked Questions

Why does Excel turn 1/2 into a date?

Excel interprets the slash as a date separator. By default, it assumes you mean January 2 (or February 1, depending on your region). Formatting as Text or using an apostrophe prevents this.

Can I stop Excel from converting numbers to dates permanently?

You can adjust AutoCorrect options on Windows to stop automatic replacement as you type, but the most reliable method is to pre-format cells as Text. There is no global setting to disable date recognition entirely.

How do I convert a date back to the original number?

If the cell contains a date value, changing the format to Text won't restore the original number. You must re-enter the number after formatting the cell as Text, or use Text to Columns with the Text format.

Does the apostrophe work in Excel for Mac and the web?

Yes, the apostrophe prefix works in all Excel versions. It forces the entry to be treated as text.

What if I need to perform calculations on numbers that look like fractions?

Store the number as a decimal (e.g., 0.5) and apply a fraction number format for display. This keeps the value numeric for formulas while showing it as a fraction.

Why do some cells convert and others don't?

Excel's auto-conversion depends on the pattern. Entries like 1/2 or 3-4 trigger date recognition, while 1.2 or 3.4 do not. Formatting the cells as Text beforehand ensures consistent behavior.