To stop Excel from turning numbers into dates, select the affected cells, go to the Home tab, click the Number Format dropdown menu (which likely says "Date"), and select "General" or "Number". This happens because Excel stores dates as sequential serial numbers; for example, the number 1 represents January 1, 1900, so any cell previously formatted as a date will treat a new number as a date offset from that start point.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • The specific spreadsheet containing the incorrectly formatted data.
  • Administrative access to the file (ensure the sheet is not "Protected" or "Read-Only").

Step-by-Step

  1. Identify the Affected Range: Click on the cell that is displaying a date instead of a number. If an entire column is affected, click the letter at the top of the column to highlight every cell in that vertical range. Note that labels and menu names may differ slightly depending on whether you are using Excel for Windows, Excel for Mac, or Excel for the Web.
  2. Access the Home Tab: Ensure you are on the "Home" tab of the top Ribbon menu. This is the default view when you open a workbook.
  3. Locate the Number Format Group: Look toward the center of the Home ribbon for a section labeled "Number". Inside this group, you will see a dropdown box that indicates the current format of the selected cells. If Excel has converted your number to a date, this box will likely say "Date" or "Short Date".
  4. Change the Format to General: Click the dropdown arrow and select "General" from the list. The "General" format is the default for Excel; it does not apply any specific formatting and will display the raw number you entered.
  5. Alternative: Change to Number: If you need specific decimal places or a thousands separator, select "Number" from the same dropdown menu instead of "General". After selecting "Number", you can use the "Increase Decimal" or "Decrease Decimal" buttons located immediately below the dropdown to refine how the number looks.
  6. Verify the Data: Look at the cell again. The date (e.g., "Jan-01-1900") should now be replaced by the actual numerical value you intended to enter.
  7. Preventing Future Conversions (Pre-Formatting): If you are about to enter a long list of numbers that Excel often mistakes for dates (such as part numbers like "1-12"), select the empty cells first. Go to the Number Format dropdown and select "Text". When a cell is formatted as "Text", Excel treats every entry as a literal string of characters and will not attempt to auto-convert them into dates or formulas.

Common Mistakes

One of the most frequent mistakes is trying to "fix" the date by re-typing the number over and over. Because the cell itself is formatted as a date, Excel will simply convert the new entry into a date again instantly. You must change the cell format before or after the entry, but typing the number again without changing the format will not solve the problem.

Another common error is using the "Clear All" button in the Editing group. While this removes the content of the cell, it does not always reset the underlying cell formatting. If you clear the contents but leave the format as "Date", the very next number you type into that cell will immediately turn back into a date.

Users also frequently confuse the "Format Cells" dialog box with the Ribbon dropdown. While both work, some users get lost in the deep menus of the Format Cells window (Ctrl + 1) and accidentally select "Custom" formats that look like numbers but are still technically date-based, leading to confusion when the data is exported to other software.

Tips

To quickly apply the "General" format to a cell without using the mouse, you can use the keyboard shortcut Ctrl + Shift + ~ (the tilde key). This is the fastest way to strip away date or currency formatting and return the cell to its basic state.

When dealing with data that looks like a date but shouldn't be (like 12-5 for a ratio or a product code), use a leading apostrophe. If you type '12-5 into a cell, the apostrophe tells Excel to treat the entry as text. The apostrophe will be visible in the formula bar but will not appear in the cell itself or when the document is printed.

If you are importing a CSV file and Excel is automatically converting columns to dates during the import process, do not just open the file by double-clicking it. Instead, open a blank Excel workbook, go to the "Data" tab, and use "Get Data" > "From File" > "From Text/CSV". This opens the Power Query editor, where you can explicitly set the data type for each column to "Text" or "Whole Number" before the data ever hits your spreadsheet.

Troubleshooting

If you changed the format to "General" or "Number" but the cell still shows a date, check if the cell is part of a Table with a specific "Calculated Column" formula. In some cases, a formula is forcing the output to a date format. Check the formula bar to see if there is a function like TEXT() or a date-based calculation occurring.

If the cell shows a series of hashtags (#######), this does not mean the date conversion failed; it means the column is too narrow to display the resulting number or date. Hover your mouse over the boundary between the column letters at the top and double-click to auto-fit the column width.

If you are using a shared workbook or a protected sheet and the Number Format dropdown is greyed out, you do not have permission to change the formatting. You will need to ask the owner of the document to "Unprotect Sheet" (found under the Review tab) before you can modify the cell formats.

In rare cases, if the number remains a date despite all formatting changes, check your system's regional settings in the Windows Control Panel or macOS System Settings. If your computer is set to a region with highly unusual date delimiters, Excel may be interpreting your numerical input in a way that conflicts with your expectations.

Frequently Asked Questions

Why does Excel think my number is a date?

Excel uses a system where dates are actually numbers. Day 1 is January 1, 1900. If a cell was previously used for a date, or if you type something like "1/2", Excel assumes you are entering a date and applies that formatting automatically to be helpful.

Can I stop Excel from doing this globally for all files?

No, there is no global "off" switch for auto-date conversion in Excel's general settings. You must manage this on a per-cell, per-column, or per-workbook basis by pre-formatting cells as "Text" or "Number".

Will changing the format to "Number" delete my data?

No. Changing the format only changes how the data is displayed. The underlying value remains the same; you are simply telling Excel to show the value as a digit rather than a calendar date.

What is the difference between "General" and "Number" formats?

"General" is a flexible format that lets Excel decide the best way to show the data. "Number" gives you more control, allowing you to set a specific number of decimal places and choose whether to show a thousands separator (comma).

How do I fix a whole column at once?

Click the letter at the very top of the column (e.g., the "A" or "B") to select every cell in that column. Then, use the Number Format dropdown on the Home tab to select "General". This applies the change to all existing and future entries in that column.