How to stop Excel from automatically changing numbers into anything other than what you typed, such as changing a fraction into a date when you enter it into a cell. Show
Apostrophe MethodUsing the apostrophe is the preferred way to keep numbers looking the same after you enter them, at least as far as I am concerned. This way, if someone changes the formatting back to General and goes to edit a cell, it will still look the same way instead of being auto-formatted. Type an apostrophe in the cell: Then type the number and press Enter: Notice that the apostrophe does not appear in the cell after we press Enter; however, if we go to edit the cell, you can see that it is still there: Here is a sample list: If we entered them without an apostrophe, they would have looked like this: Using this method, we will also still be able to use MATCH and VLOOKUP with the numbers as Excel will ignore the apostrophe. Format as Text MethodIf you know that you will be entering a list of numbers, simply format the cells as Text before you go to enter the data. This way, everything will look exactly the same as how you typed it. Select the desired cells > go to the Home tab and click the drop down menu in the Number box and select Text: Enter what you want: If we just entered the numbers regularly, we would have gotten this: NotesBoth methods will work. I prefer to use the apostrophe method since it's harder for a user down the line to mess it up. Make sure to download the sample workbook that accompanies this tutorial so you can better see how this works in Excel. Similar Content on TeachExcel Change Formulas to Absolute or Relative References Make Users Enable Macros in Order to View a Workbook in Excel Delete Duplicate Values in All Versions of Excel Stop Tables from Auto-Filling
Formulas Down in Excel Partial Match Lookup with Numbers in Excel Input Really Long Numbers into Excel Subscribe for Weekly TutorialsBONUS: subscribe now to download our Top Tutorials Ebook!The features of Microsoft Excel make entering dates simpler. For instance, 3/13 becomes 13 Mar. This is quite annoying when we type that which we wouldn’t want to convert to date. Sadly, there is no way to stop this from happening. However, there are workarounds available. In this article, we will demonstrate 5 different ways to stop excel from changing numbers to dates. Download Practice WorkbookYou can download the workbook and practice with them. 5 Effective Ways to Stop Excel from Changing Numbers to DatesThe only method for preventing Excel from converting these numbers into dates is by explicitly telling it that they are not numbers. For instance, suppose we have a dataset containing six numbers, now we want to find the fraction of those numbers. But when we type any fraction number it’s automatically converted to dates. So, let’s look at the methods to stop this. 1. Utilize Format Cells Feature to Prevent Excel from Converting Numbers to DatesThe format cells feature allows us to change the appearance of cell numbers without changing the original number. We know that the fraction number of 0.2307 is 3/13. So, we enter the number into the selected cell. And then press the Enter key and it’s automatically converted to dates (see the screenshot below). This will happen for each and every cell while entering fraction numbers or numbers with ‘/’ or ‘–’. To stop Excel from converting numbers to dates we are going to use text formatting. For this, we need to go along with the steps below. STEPS:
Note: Before entering the number, we must alter the format. If we perform this after entering the number, the format will change to the text, but we will only receive the date’s numeric value rather than the precise number or text string we supplied. Read More: [Fixed!] Why Is Excel Changing My Numbers? (4 Reasons) 2. Halt Conversion of Numbers to Dates Using Apostrophe in ExcelThe best technique to ensure that numbers look the same after being entered is to use the apostrophe. In this manner, if the formatting is changed back to General and a cell is edited, it will retain its previous appearance rather than being automatically formatted. So, let’s take a view of the steps down. STEPS:
Read More: [Fixed!] Excel Changing Dates to Random Numbers (3 Solutions) 3. Add Space to Stop Excel from Changing Numbers to DatesWe can prevent excel from changing numbers to dates by adding a space before entering a number. Let’s add space by following the steps. STEPS:
Read More: How to Stop Autocorrect in Excel for Dates (3 Quick Ways) 4. Stop Automatic Change from Numbers to Dates by Inserting Zero & SpaceBefore entering a fraction, such as 3/13 or 12/8, ensure to include a 0 and space to prevent it from changing numbers to dates. Let’s follow the steps down. STEPS:
Note:I will suggest using the other methods instead of this, but this will work properly if you use ‘–’. Read More: How to Stop Excel from Changing Numbers (3 Easy Methods) 5. Apply Excel VBA to Prevent Automatic ConversionWith Excel VBA, users can easily use the code which acts as an excel menu from the ribbon. To use the VBA code to stop excel from changing numbers to dates, let’s follow the procedure. STEPS:
VBA Code:
Note: You don’t need to change the code. All you can do is just change the range as per your requirements.
Read More: How to Stop Excel from Auto Formatting Numbers (3 Easy Ways) Things to Keep in MindWhile using Excel VBA code on your worksheet, make sure you save the file with Excel Macro-Enabled Workbook and the extension will be .xlsm. ConclusionThe above ways will assist you to Stop Excel from Changing Numbers to Dates. I hope this will help you! Please let us know in the comment section if you have any questions, suggestions, or feedback. Or you can glance at our other articles in the ExcelDemy.com blog! Related Articles
|