How can I prevent Excel from changing numbers to dates? 2

How can I prevent Excel from changing numbers to dates?

Excel is a widely used spreadsheet software that automatically converts numbers to dates if they are entered in a specific format. This can cause inconvenience and errors for users who want to keep their numbers as numbers and not dates. To prevent this automatic conversion, users can change the formatting of the cells to “Number” or “General” before entering the numbers. Additionally, users can also use a single quote (‘) before the numbers to force Excel to recognize them as text and not dates. By following these steps, users can prevent Excel from changing numbers to dates and ensure accurate data entry in their spreadsheets.

Prevent Excel from Changing Numbers to Dates


If you type a numeric value into Excel that looks like a date, Excel will automatically convert the value to a date.

For example, if you type 1-6 or 1/6 then Excel will automatically display this value as 6-Jan because it assumes you meant for the value to be a date.

In most cases, this is a helpful correction by Excel.

However, sometimes you actually want the cell to display 1-6 or 1/6.

There are two ways to prevent Excel from changing numbers to dates:

Method 1: Specify Text as the Format

Method 2: Use an Apostrophe Before the Number

The following examples show how to use each method in practice.

Example 1: Specify Text as the Format

Suppose I attempt to enter the values 1/6, 1/16, 1/19, 2/20 … into Excel:

By default, Excel converts these values into dates.

To prevent Excel from converting these values into dates, I can first highlight the range A1:A14 where I want to enter these values, then click the Number Format dropdown menu from the Home tab, then click Text:

Now when I enter the values 1/6, 1/16, 1/19, 2/20 … into column A the values will appear as text instead of dates:

Example 2: Use an Apostrophe Before the Number

For example, instead of typing 1/6 I would type ‘1/6 into cell A1:

I can repeat this for each value in column A:

Each value in column A now appears exactly how I entered it instead of being shown as dates.

The following tutorials explain how to perform other common tasks in Excel:

Cite this article

stats writer (2024). How can I prevent Excel from changing numbers to dates?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-prevent-excel-from-changing-numbers-to-dates/

stats writer. "How can I prevent Excel from changing numbers to dates?." PSYCHOLOGICAL SCALES, 22 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-prevent-excel-from-changing-numbers-to-dates/.

stats writer. "How can I prevent Excel from changing numbers to dates?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-prevent-excel-from-changing-numbers-to-dates/.

stats writer (2024) 'How can I prevent Excel from changing numbers to dates?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-prevent-excel-from-changing-numbers-to-dates/.

[1] stats writer, "How can I prevent Excel from changing numbers to dates?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How can I prevent Excel from changing numbers to dates?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top