Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Stop Excel From Changing Dates: 6 Fixes

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Excel's automatic date conversion can be incredibly frustrating. You type something like "3-4" or "1/2", and Excel immediately turns it into a date, even when you need it to stay as text. This guide walks you through six reliable methods to stop Excel from changing dates, ranging from quick formatting tricks to changing default settings. No prior experience is needed, just a spreadsheet with the problem.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or Mac).
  • The workbook or spreadsheet where the date conversion is happening.
  • Access to the file's save location (for the CSV workaround).

Step-by-Step

Choose the method that best fits your situation. The first two are quick fixes for one-off entries, while the later ones are better for large datasets or recurring problems.

  1. Format the cells as Text BEFORE you type. This is the most reliable way to prevent conversion.

    1. Select the cell or range of cells where you plan to enter data.
    2. Go to the Home tab on the ribbon.
    3. In the Number group, click the dropdown arrow next to the number format box (it usually says "General").
    4. Select Text from the list.
    5. Now, when you type something like "3-4" or "01/02", Excel will keep it exactly as you typed it. Note: this only works for cells you format before entering data.
  2. Use an apostrophe (') before the entry. This is the fastest way to force a single entry to be text.

    1. Click on the cell where you want to enter the value.
    2. Type an apostrophe (') first, then type your data. For example, type '3-4.
    3. Press Enter. The apostrophe won't show up in the cell, but the text "3-4" will remain as text, and a small green triangle may appear in the corner (a warning that the number is stored as text, which is fine here).
  3. Use the Import Text Wizard (for CSV files). If you're opening a CSV file and Excel mangles the dates, this is the fix.

    1. Open Excel with a blank workbook.
    2. Go to the Data tab and click From Text/CSV (in older versions, it's From Text).
    3. Browse to your CSV file and select it, then click Import.
    4. In the preview window, you'll see your data. Click Transform Data (or Edit in older versions) to open the Power Query editor.
    5. In the Power Query editor, select the column(s) that are being converted to dates.
    6. In the Home tab of the Power Query editor, click the Data Type dropdown and select Text.
    7. Click Close & Load. Your data will now be loaded with those columns as text, and the dates will remain as typed.
  4. Change the cell format to a custom format that looks like a date but is text. This is a workaround for when you need the data to look like a date but not be treated as one.

    1. Select the cells that already have the unwanted date format.
    2. Press Ctrl+1 (Windows) or Cmd+1 (Mac) to open the Format Cells dialog.
    3. Go to the Number tab and select Custom at the bottom of the list.
    4. In the Type box, delete the existing code and type @ (the at symbol). This tells Excel to display the cell's text content as-is.
    5. Click OK. The cell will now show the text, not the converted date.
  5. Disable the auto-formatting for your region (Windows only). This stops Excel from converting two- or three-part numbers into dates globally.

    1. Click on File > Options.
    2. In the Excel Options dialog, select Advanced.
    3. Scroll down to the Editing options section.
    4. Uncheck the box that says "Automatically insert a decimal point" — this is a common culprit, but not the main one. More importantly, look for a setting related to data conversion. In some versions, this is under Data > Text to Columns settings, but the global option is often not directly available. If you can't find a direct toggle, rely on the Text format method (Step 1).
    5. Click OK. This may not stop all conversions, but it helps with some types of number entries.
  6. Use a formula to convert the date back to text. If you already have a column of converted dates, you can use a formula to extract the original text.

    1. Insert a new column next to your data.
    2. In the first cell of the new column, type a formula that references the date cell and formats it as text. For example, if your date is in cell A2, type: =TEXT(A2,"mm-dd") to get "03-04" format.
    3. Adjust the format code (like "mm-dd" or "yyyy-mm-dd") to match what you originally typed.
    4. Copy the formula down for all rows.
    5. Now, copy the new column and paste it as Values (right-click > Paste Special > Values) to replace the formulas with static text.

Common Mistakes

  • Formatting cells as Text AFTER typing. If you type "3-4" and Excel converts it to a date, then format the cell as Text, it won't change it back. The text format only prevents future conversions, not undo past ones.
  • Using a leading zero. Typing "03-04" might still be converted depending on your regional settings. The apostrophe method is more reliable.
  • Forgetting to apply the Text format to the entire column. If you only format a few cells, Excel will still convert new entries in the unformatted cells.
  • Assuming the CSV import works automatically. Double-clicking a CSV file opens it in Excel directly, which will apply auto-formatting. You must use the From Text/CSV import to control the data types.

Tips

  • Use a dedicated text editor for data entry. If you're building a CSV file from scratch, type your data in Notepad (Windows) or TextEdit (Mac, in plain text mode) and save it. Then use the Import Wizard (Step 3) to bring it into Excel.
  • Check your regional settings. Excel follows your Windows or Mac system's date format. If you type "1/2" and it becomes January 2nd, that's because your region uses MM/DD/YYYY. Understanding this helps predict what Excel will do.
  • Use the "@" custom format for existing data. This is a quick way to display text without re-typing everything.
  • For product codes or IDs that look like dates, always format the column as Text first. This is a best practice for any column that contains codes, part numbers, or other non-calendar data.

Troubleshooting

I formatted the cells as Text, but Excel still changes the date. This usually happens if you formatted the cells after typing, or if you're using a formula that outputs a date. Clear the cell contents, re-format as Text, and type again.

The apostrophe method shows the apostrophe in the cell. The apostrophe is a hidden character; it should not display. If you see it, you may have typed a regular quote or the cell is set to show formulas. Check the Show Formulas toggle on the Formulas tab.

The Import Wizard doesn't give me a "Transform Data" option. In older versions of Excel (2013 and earlier), the button is called Edit instead of Transform Data. The Power Query editor works the same way.

My numbers are still being converted even after changing settings. Some versions of Excel don't have a global "disable date auto-format" option. In that case, the Text format method (Step 1) is your only reliable solution. You can also try typing a zero and a space before the number (e.g., "0 3-4"), but this is less clean.

The TEXT formula returns a #VALUE! error. This means the cell you're referencing isn't actually a date. It might already be text. In that case, you don't need the formula at all.

Frequently Asked Questions

Q: Why does Excel change "1-2" to "01-Feb"?
A: Excel interprets the hyphen as a date separator. Based on your regional settings, it assumes the first number is the day or month, and the second is the month or day, then applies a default date format.

Q: Can I turn off date auto-formatting permanently?
A: Not with a single checkbox in most versions. The most permanent fix is to always format your data columns as Text before entering data. There's no reliable global setting to disable date recognition entirely.

Q: How do I stop Excel from changing dates in a CSV file I'm opening?
A: Don't double-click the file. Open Excel, go to Data > From Text/CSV, and use the Import Wizard to specify that the date columns should be treated as Text.

Q: Will the apostrophe trick work for all types of entries?
A: Yes, the apostrophe forces Excel to treat anything after it as text, including numbers, fractions, and dates. It's a universal override.

Q: What if I already have 500 rows of converted dates? Do I have to re-type them?
A: No. Use the TEXT formula method (Step 6) to convert them back to the format you want, then paste as values. It's much faster than re-typing.

Q: Does this work in Google Sheets too?
A: The general principles are similar, but the menu names differ. In Google Sheets, you can go to Format > Number > Plain text to achieve the same effect as Excel's Text format.