Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Convert Numbers to Text in Excel: Easy Step-by-Step Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To convert numbers to text in Excel, the fastest method is to change the cell format to "Text" or use the TEXT function for specific formatting. Converting numbers to text is essential when you have IDs, zip codes, or part numbers that start with zeros, as Excel automatically removes leading zeros from numeric values.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or Mac).
  • The dataset containing the numbers you wish to convert.
  • A backup of your data if you are performing a bulk conversion using the Text to Columns tool.

Step-by-Step

Depending on your goal—whether you want to change how a cell behaves or create a new text-based column—choose one of the following methods. Note that menu labels may differ slightly based on your version of Excel or region.

Method 1: Using the Number Format Menu (Best for New Data)

This method tells Excel to treat everything you type into the selected cells as text, preventing the software from rounding large numbers or removing zeros.

  1. Highlight the cells, columns, or rows you want to convert.
  2. Go to the Home tab on the top ribbon.
  3. Locate the Number group.
  4. Click the dropdown menu (which usually says "General" by default).
  5. Scroll down and select Text.
  6. If you are changing existing numbers, you may need to double-click into the cell and press Enter for the change to trigger.

Method 2: Using the TEXT Function (Best for Formatting)

Use this method if you want to keep your original numbers but create a new column where those numbers are formatted as text (e.g., adding leading zeros).

  1. Click on an empty cell next to your number.
  2. Type the formula: =TEXT(Value, "Format"). For example, to convert a number in cell A1 to text with five digits (adding leading zeros), type =TEXT(A1, "00000").
  3. Press Enter.
  4. Click the fill handle (the small square at the bottom-right of the cell) and drag it down to apply the formula to the rest of the column.
  5. To remove the formula and keep only the text, copy the new column, right-click, and select Paste Values.

Method 3: Using the Apostrophe Shortcut (Best for Single Entries)

This is the quickest way to force a single cell to be text without changing global settings.

  1. Click the cell where you want to enter the number.
  2. Type a single quote (') before the number. For example: '00123.
  3. Press Enter.
  4. The apostrophe will not be visible in the cell, but Excel will treat the entry as text.

Method 4: Using Text to Columns (Best for Bulk Conversion)

This is the most effective way to convert a large existing column of numbers into text format all at once.

  1. Select the column containing the numbers.
  2. Go to the Data tab on the ribbon.
  3. Click the Text to Columns button.
  4. In the wizard that appears, select Delimited and click Next.
  5. Uncheck all delimiters (like Tab or Comma) and click Next.
  6. In the "Column data format" section, select the Text radio button.
  7. Click Finish.

Common Mistakes

  • Applying formatting after typing: Changing a cell to "Text" format after you have already typed a number often does nothing. You must either re-enter the data or use the Text to Columns method to "force" the update.
  • Confusing Value vs. Format: Using the Number Format menu changes how Excel sees the data, but using the TEXT function creates a new piece of data. Users often forget to "Paste Values" after using a formula, leaving their sheet dependent on the original column.
  • Using the wrong format code: In the TEXT function, using "#" instead of "0" will not force leading zeros. Always use "0" for placeholders you want filled.

Tips

  • Visual Cues: When a number is successfully converted to text, Excel often displays a small green triangle in the top-left corner of the cell. This is simply a warning that a number is stored as text; you can ignore it or use "Ignore Error" from the warning icon.
  • Alignment: By default, numbers align to the right and text aligns to the left. If your "numbers" have jumped to the left side of the cell, the conversion was successful.
  • Data Cleaning: If you are importing CSV files, use the "Get Data" (Power Query) feature to set the column type to Text during the import process to avoid losing leading zeros entirely.

Troubleshooting

If the numbers are still behaving like numbers (e.g., leading zeros are still missing), try these steps:

  1. Refresh the Cell: Double-click the cell and press Enter. This forces Excel to re-evaluate the cell based on the current "Text" format.
  2. Check for Hidden Spaces: Sometimes numbers are imported with non-breaking spaces. Use the =TRIM() function to remove extra spaces before converting to text.
  3. Clear All Formats: If a cell is stubborn, go to Home > Clear > Clear Formats, then apply the Text format again.
  4. Check Formula Dependencies: If you used the TEXT function and the result is #VALUE!, ensure the source cell actually contains a number and not an error message.

Frequently Asked Questions

Why does Excel remove my leading zeros?

Excel identifies any sequence of digits as a number by default. In mathematics, leading zeros do not change a value (001 is the same as 1), so Excel removes them to save space and standardize the data.

Can I convert text back into numbers?

Yes. Select the cells, click the green warning triangle that appears, and select "Convert to Number." Alternatively, use the =VALUE() function.

Will converting to text break my formulas?

It can. Standard math functions like SUM may ignore cells formatted as text. If you need to perform calculations, keep a numeric version of the data and a text version for display.

Does the apostrophe method show up when I print?

No. The leading apostrophe is a formatting instruction for Excel and is not visible in the cell view or on printed documents.

Which method is best for 10,000+ rows?

The "Text to Columns" method is the most efficient for large datasets because it processes the entire range instantly without requiring you to drag formulas down thousands of rows.