To undo numbers stored as text in Excel, the fastest method is to select the affected cells, click the yellow warning icon that appears, and select Convert to Number. This process transforms data that Excel perceives as a string of characters back into numeric values, allowing you to perform calculations, use SUM formulas, and create accurate charts. When numbers are stored as text, they are typically left-aligned in the cell and often preceded by a single apostrophe ('), which prevents Excel from treating them as mathematical values.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • A dataset containing numbers that are currently formatted as text (identifiable by the small green triangle in the top-left corner of the cell).
  • Administrative access to edit the spreadsheet.

Step-by-Step

Depending on the volume of your data and how the text formatting was applied, different methods may be more efficient. Below are the four most reliable ways to convert text numbers back to actual numbers.

Method 1: Using the Error Checking Warning

This is the most intuitive method for small to medium datasets where Excel has already flagged the cells with a green triangle.

  1. Open your Excel workbook and locate the cells containing the "Number Stored as Text" error.
  2. Click and drag your mouse to select all the cells you wish to convert. If the numbers are in a single column, you can click the first cell and press Ctrl + Shift + Down Arrow (Windows) or Cmd + Shift + Down Arrow (Mac).
  3. Look for the small yellow diamond-shaped warning icon that appears next to the first selected cell.
  4. Click the yellow warning icon to open the error options menu.
  5. Select Convert to Number from the dropdown list. Excel will process the selection and right-align the numbers, indicating they are now numeric values.

Method 2: Using the Text to Columns Tool

The Text to Columns feature is highly effective for large columns of data where the warning icon may not appear or where you need to process thousands of rows instantly.

  1. Select the entire column or the specific range of cells that contain the text-formatted numbers. Note that this method only works on one column at a time.
  2. Go to the Data tab on the top ribbon.
  3. In the Data Tools group, click on the Text to Columns button.
  4. A wizard window will appear. In Step 1 of the wizard, ensure Fixed width is NOT selected; instead, select Delimited and click Next.
  5. In Step 2, uncheck all delimiters (such as Tab, Semicolon, Comma, Space) to ensure the data isn't split into multiple columns. Click Next.
  6. In Step 3, under Column data format, leave the selection as General. This tells Excel to automatically detect the data type.
  7. Click Finish. Excel will re-evaluate the contents of the cells and convert them to numbers.

Method 3: Using the Paste Special Multiply Trick

If the previous methods fail—which sometimes happens with data imported from legacy accounting software—you can force Excel to perform a mathematical operation on the text, which triggers a conversion to a number.

  1. Find an empty cell anywhere in your worksheet.
  2. Type the number 1 into that empty cell and press Enter.
  3. Click on that cell and press Ctrl + C (Windows) or Cmd + C (Mac) to copy it.
  4. Select the range of cells that are stored as text.
  5. Right-click the selected area and choose Paste Special... from the menu.
  6. In the Paste Special dialog box, look for the Operation section.
  7. Select Multiply and click OK.
  8. Excel multiplies every selected cell by 1. Because any number multiplied by 1 remains the same value, the data doesn't change, but the mathematical operation forces Excel to convert the text format into a number format.
  9. You can now delete the number 1 from the temporary cell you created.

Method 4: Using the VALUE Function

If you prefer to keep your original data intact for auditing purposes, you can use a formula to create a new column of converted numbers.

  1. Insert a new blank column next to the column containing the text numbers.
  2. In the first cell of the new column, type the formula: =VALUE(A2) (replacing A2 with the cell reference of your text number).
  3. Press Enter. The result will be the numeric version of the text in cell A2.
  4. Hover your mouse over the bottom-right corner of the cell until the cursor becomes a small black cross (the Fill Handle).
  5. Double-click the Fill Handle or drag it down to apply the formula to all rows in the column.
  6. To remove the dependency on the original text column, select the new numeric cells, copy them (Ctrl + C), right-click on the same cells, and select Paste Values (the icon with '123').
  7. You can now safely delete the original text column.

Common Mistakes

  • Changing Format Only: A common error is selecting the cells and changing the format dropdown from "Text" to "Number" or "General" via the Home tab. This changes the formatting rule for future entries, but it does not retroactively change the existing data. You must still use one of the active conversion methods listed above to trigger the change.
  • Ignoring Hidden Characters: Sometimes numbers are stored as text because they contain invisible non-breaking spaces (often from web imports). If the conversion methods fail, you may have hidden characters that need to be removed using the TRIM or CLEAN functions first.
  • Converting IDs to Numbers: Be careful when converting columns like Credit Card numbers, Social Security numbers, or Product IDs. If these numbers are very long (more than 15 digits), Excel will convert them to Scientific Notation (e.g., 1.23E+15) and permanently lose the precision of the last few digits. In these specific cases, numbers should remain stored as text.

Tips

  • Visual Cues: Always check the alignment. By default, Excel aligns text to the left and numbers to the right. If your "numbers" are hugging the left side of the cell, they are almost certainly stored as text.
  • Preventing the Issue: When importing CSV files, use the "Get Data" (Power Query) feature under the Data tab. This allows you to define the data type for each column during the import process, preventing numbers from being imported as text in the first place.
  • Fast Selection: Use the Ctrl + G (Go To) shortcut, click Special, and select Constants. This helps you quickly find and select only the cells containing values, ignoring formulas, which can make bulk conversion safer.

Troubleshooting

If you have tried the steps above and the numbers are still not converting, try these solutions in order:

  1. Check for Leading/Trailing Spaces: If a cell contains " 123" instead of "123", Excel sees the space as a character and treats the whole thing as text. Use the formula =TRIM(A2) in a helper column to remove extra spaces, then copy and paste the results as values before attempting the conversion again.
  2. Clear All Formatting: Select the problematic cells, go to the Home tab, click the Clear button (the eraser icon) in the Editing group, and select Clear Formats. This strips away any stubborn text-formatting rules.
  3. Verify the Locale Settings: In some regions, a comma is used as a decimal separator instead of a period. If your data uses a period but your Excel settings expect a comma, Excel will treat the number as text. You can change this in File > Options > Advanced > Editing options (uncheck "Use system separators" and manually set the decimal and thousands separators).
  4. Check for Non-Printing Characters: If the data came from a website, it might contain a character called a non-breaking space (CHAR 160). The TRIM function does not remove this. Use the formula =SUBSTITUTE(A2, CHAR(160), "") to clear these characters before converting.

Frequently Asked Questions

Why does Excel store numbers as text?

This usually happens when data is imported from another software, a CSV file, or a website. It can also occur if a user types an apostrophe (') before a number to intentionally prevent Excel from formatting it (like in a zip code with a leading zero).

Will converting text to numbers change my data?

For standard numbers, no. The value remains the same. However, leading zeros (e.g., 00123) will be deleted because numeric values do not store leading zeros. If you need to keep leading zeros, you must keep the data as text or use a custom number format.

Can I use a formula to find which cells are text?

Yes. You can use the =ISTEXT(A2) formula. It will return TRUE if the cell is stored as text and FALSE if it is a number. This is helpful for auditing large datasets before you begin the conversion process.

Does the "Convert to Number" warning appear for all text numbers?

No. The green triangle warning only appears if Excel's error-checking settings are enabled and if it detects a pattern that strongly suggests the text should be a number. If the warning is missing, use the Text to Columns or Paste Special methods.

Is there a keyboard shortcut to convert text to numbers?

There is no single direct shortcut for the conversion itself, but using the Text to Columns sequence (Alt, A, E) on Windows is the fastest way to trigger the conversion for an entire column.