New Tool Radar

AI for Data & Spreadsheets

How to Find Numbers Stored as Text in Excel and Convert Them

Spot numbers stored as text with the status bar and COUNT, convert them with Text to Columns or VALUE, and re-check the total.

Schematic with three steps: Spot the text numbers; Convert the column in place; Re-check the total.

Numbers stored as text look like numbers but SUM ignores them, so a total can be quietly short with no error anywhere. They are usually left-aligned, sometimes with a small green triangle in the corner. Find them, convert them, and re-check the total.

What you need

  • Excel with the amount column to check
  • A note of the total the column should give
  • A copy of the workbook

Step 1: Spot the text numbers

Select a few cells in the amount column and look at the status bar: it shows Sum and Average only for numbers, so if it shows just Count, the values are text. Compare =COUNT with =COUNTA on the column; a gap means text values are hiding.

Step 2: Convert the column in place

Select the column, click the warning icon and choose Convert to Number, or use Data, Text to Columns and click Finish. For a formula route, use a helper column with =VALUE(TRIM(A2)) and paste the results as values.

Step 3: Re-check the total

Sum the column again and compare it with the total you expected. If the total is still short, look for amounts with currency symbols or thousands separators that still need cleaning.

Worked example: synthetic eight-value amount column

The table below is a synthetic example. It shows the expected result of converting text numbers; no workbook was opened.

Check Value Result
Values in the column 8 Source
Values stored as text 8 All text
SUM before converting 0 SUM ignores text
SUM after converting 1,240 Matches the expected total

Expected result (UNTESTED). all 8 values are stored as text, so SUM returns 0 before converting and 1,240 after converting, which matches the expected total. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • A leading apostrophe forces text; removing it converts the value to a number.
  • Do not use VALUE on ID codes: converting 000123 to a number removes the leading zeros.
  • Formatting a cell as Number does not convert text already in it; the value must be re-entered or converted.

Sources

See all