Excel converts numbers to dates because it applies a built-in date format when you type something that looks like a date, such as 1/2, 3-4, or 5/6. To stop it, format the cells as Text before typing, or prefix the entry with an apostrophe. For existing data, use Text to Columns or a custom number format to keep the digits as numbers. The fix depends on whether you are entering new data or repairing cells that already changed.

What You'll Need

  • Excel for Windows, Mac, or the web (steps and menu labels can differ slightly by version, platform, and region).
  • The cells or column where the unwanted date conversion happens.
  • Optional: a backup copy of the workbook if you plan to reformat or re-enter existing data.

Step-by-Step

  1. Identify the pattern. Note exactly what you type when Excel changes it: a fraction like 1/2, a code like 3-4, or a number with a leading zero like 01/02. Excel treats slashes and hyphens as date separators, so any entry with those characters can become a date.
  2. Format cells as Text before typing. Select the cells or the entire column, right-click, choose Format Cells, open the Number tab, select Text, and click OK. Then type your values. Text format keeps exactly what you type, including leading zeros and slashes. This is the cleanest fix for new data.
  3. Use the apostrophe shortcut for one-off entries. Type an apostrophe before the value, for example '1/2. Excel stores it as text and hides the apostrophe in the cell. This works well for a few cells but is tedious for large ranges.
  4. Set the column format before pasting. If you paste data from another program, format the destination column as Text first, then paste. Pasting into General-formatted cells can trigger the same date conversion.
  5. Repair cells that already changed to dates. Select the affected cells, right-click, choose Format Cells, and pick a number format such as Number with zero decimal places. If the underlying value was stored as a date serial number, changing the format may show a number like 43831 instead of the original text. In that case, re-enter the data after setting the cells to Text, or use Text to Columns to re-import it.
  6. Use Text to Columns for a whole column. Select the column, go to Data > Text to Columns, choose Delimited and click Next, then Next again. In step 3, set the column data format to Text and click Finish. This reinterprets the entries as text and stops future date conversion in that column.
  7. Prevent conversion in CSV imports. When opening a CSV, use Data > From Text/CSV instead of double-clicking the file. In the import dialog, set the column type to Text for the affected column before loading. This avoids dates being created during import.
  8. Check for a custom format that mimics a date. Select a problem cell, open Format Cells, and look at the Number tab. If a custom format like mm/dd/yyyy is applied, switch to Text or General. A custom format can make a number look like a date even when the stored value is not a date.

Common Mistakes

  • Formatting cells as Text after the data is already entered. The conversion has already happened, so the format change does not restore the original text.
  • Typing an apostrophe in a cell that is already formatted as Text. The apostrophe may appear as part of the value in some contexts, so use one method or the other.
  • Assuming the cell contains a date when it only displays one. Check the formula bar: if it shows a number like 43831, the cell holds a date serial number, not text.
  • Pasting into General-formatted cells and expecting the paste to keep the original text. Format the destination first.
  • Using Find and Replace to remove slashes without checking the result. Removing separators can merge values or create new unintended entries.

Tips

  • For columns that will hold codes, IDs, or fractions, set the entire column to Text before entering any data. This is faster than fixing cells later.
  • If you need to keep a value as a number but display it with a slash, use a custom number format instead of typing the slash. That keeps the underlying value numeric for calculations.
  • When sharing a workbook, tell recipients which columns are Text-formatted so they do not retype values and trigger conversion.
  • Use Excel's error-checking indicator: a small green triangle in the corner of a cell often appears when a number is stored as text. You can ignore it or convert the text to a number if calculations are needed.
  • Keep a backup before running Text to Columns on a large dataset, because the operation rewrites the selected column in place.

Troubleshooting

If the cell still changes to a date after you set it to Text, confirm the format was applied to the correct range. Select the cell and check Format Cells again; a mixed selection can leave some cells in General format. If you are pasting from another workbook, the source cell's format may carry over, so use Paste Special > Values after formatting the destination as Text.

If a number like 1/2 becomes a date and you need the fraction for calculations, enter it as 0 1/2 or format the cell as Fraction before typing. Excel then treats it as a fraction, not a date. For codes with leading zeros, such as 00123, Text format preserves the zeros; General format drops them.

If Text to Columns does not fix the column, check whether the cells contain formulas that return dates. In that case, change the formula to return text, for example by wrapping it in the TEXT function, or change the cell format to Text and re-enter the formula result as a value.

If the problem appears only in CSV files opened by double-clicking, use the Data > From Text/CSV route described above. Double-clicking lets Excel guess column types, which is where the date conversion usually starts.

Frequently Asked Questions

Why does Excel turn 1/2 into a date?

Excel reads the slash as a date separator and interprets 1/2 as January 2 of the current year. Formatting the cell as Text or typing an apostrophe before the value prevents this.

Can I stop Excel from converting numbers to dates permanently?

There is no single global switch for all workbooks. The reliable approach is to format the affected columns as Text before entering or importing data, and to use the Text import option for CSV files.

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

If the cell holds a date serial number, change the format to Number. If the original text was replaced, re-enter it after setting the cells to Text, or re-import the data with the column set to Text.

Does formatting as Text affect calculations?

Yes. Text-formatted numbers are not used in arithmetic until converted back to numbers. If you need both the exact display and calculations, keep a separate numeric column or use a custom number format.

Why does a leading zero disappear?

General format treats 00123 as the number 123. Format the cells as Text before typing, or use a custom number format with enough zeros to preserve the display.

Will this work in Excel for the web and Mac?

The core steps are the same, but menu labels can differ slightly by version and platform. Look for Format Cells, Text to Columns, and the Text column type in the import dialog.