Converting numbers to text in Excel is a common task that changes how data is stored and displayed. While a number like 100 is treated as a value for calculations, converting it to the text string "100" treats it as a label or identifier. This is essential when dealing with product codes, ZIP codes, or phone numbers where leading zeros must be preserved, or when you need to combine numeric values with other text strings without automatic formatting interference.

What You'll Need

  • A Microsoft Excel workbook containing the numeric data you wish to convert.
  • Basic familiarity with Excel cells and formulas.
  • Optional: A blank column adjacent to your data if using formula-based methods.

Step-by-Step

  1. Select Your Data: Highlight the range of cells containing the numbers you want to convert to text. For example, select cells A1 through A10.
  2. Open the Format Cells Dialog: Right-click on the selected area and choose Format Cells... from the context menu. Alternatively, use the keyboard shortcut Ctrl+1 (or Cmd+1 on Mac) to open this dialog directly.
  3. Choose the Text Category: In the Format Cells window, ensure you are on the Number tab. From the list of categories on the left, scroll down and select Text. Click OK.
  4. Re-enter the Data (Crucial Step): Changing the format to Text does not automatically convert existing numbers into text strings; it only tells Excel how to display new entries. To force the conversion, double-click each cell and press Enter, or re-type the data. If you have many cells, see the Tips section below for a faster method.
  5. Verify the Conversion: Click on a converted cell. Look at the Formula Bar. If the value is preceded by an apostrophe (e.g., '100), it is now stored as text. You can also check the alignment; text defaults to left-aligned, while numbers default to right-aligned.

Note: Menu labels and shortcuts may vary slightly depending on your version of Excel and operating system.

Common Mistakes

The most frequent error users make is assuming that changing the cell format to "Text" instantly converts the underlying data type. It does not. The format change only affects how future entries are interpreted. Existing numbers remain numeric until they are edited or processed by a function. Another common mistake is forgetting that text-stored numbers cannot be used in mathematical operations like SUM or AVERAGE unless converted back to numbers first. Attempting to sum a column of text-formatted numbers will result in zero or an error.

Tips

For large datasets, manually re-entering data after formatting is inefficient. Instead, use the Text to Columns feature. Select your column of numbers, go to the Data tab, and click Text to Columns. Choose Delimited and click Next. Uncheck all delimiters and click Next again. On the final screen, set the Column data format to Text and click Finish. This forces Excel to reinterpret the existing data as text strings immediately.

If you prefer using formulas, the =TEXT() function is powerful. For instance, =TEXT(A1, "0") converts the number in A1 to a text string without decimals. If you need to preserve specific formatting, such as currency symbols, use =TEXT(A1, "$#,##0.00"). Remember that the result of a TEXT function is always a string, so it will align left by default.

Troubleshooting

If your numbers still appear right-aligned or behave numerically despite following the steps above, try these checks:

  • Check for Hidden Spaces: Sometimes, imported data contains non-breaking spaces or extra characters. Use the =TRIM() function combined with =CLEAN() to remove unwanted whitespace before converting to text.
  • Verify Cell Type: Use the =ISTEXT() function. Enter =ISTEXT(A1) in a blank cell. If it returns TRUE, the conversion was successful. If FALSE, the cell still holds a numeric value.
  • Paste Special Method: Copy your original numeric data. Select a blank range, right-click, and choose Paste Special. Check the Values option under Paste. Then, format these pasted cells as Text and re-enter them, or use the Text to Columns trick mentioned in the Tips section.
  • Leading Zeros Disappearing: If you type 007 and it becomes 7, ensure the cell is formatted as Text *before* typing the number. If you already typed it, apply the Text format and then edit the cell to add the zeros back manually.

Frequently Asked Questions

Why do I need to convert numbers to text?

You typically need this for identifiers like ZIP codes, part numbers, or phone numbers where leading zeros are significant. Excel automatically removes leading zeros from numeric values, but preserves them in text strings.

Does converting to text affect sorting?

Yes. Numbers sort by value (1, 2, 10), while text sorts alphabetically (1, 10, 2). If you need numerical sorting, keep the data as numbers. If you need strict alphanumeric sorting based on character order, text conversion is appropriate.

Can I convert text back to numbers?

Yes. You can multiply the text string by 1 (e.g., =A1*1) or use the =VALUE() function. Ensure the text contains only valid numeric characters; otherwise, these methods will return errors.

Will formulas work on text-formatted numbers?

No, standard arithmetic formulas like addition or multiplication will fail or return errors if applied directly to text strings. You must convert the text back to a number first, or use functions designed to handle mixed types, though this is less efficient.

Is there a way to automate this for incoming data?

When importing CSV files, use the Import Wizard (Data > From Text/CSV) and specify the column data type as Text during the import process. This prevents Excel from automatically interpreting columns as numbers, preserving leading zeros and special formats.