A number stored as text looks like a number but behaves like a word. SUM skips it, charts ignore it, sorting puts 100 before 20, and lookups fail to match. It's one of the most common reasons a spreadsheet total is wrong without any error showing.
How to tell
- The number is aligned left in the cell (real numbers align right by default).
- A small green triangle appears in the cell's corner, with a warning icon saying Number Stored as Text.
=ISTEXT(A2)returnsTRUE.- The status bar shows a Count but no Sum when you select the column.
=COUNT(A:A)is smaller than=COUNTA(A:A): the difference is the number of non-numbers in the column.
Why it happens
- Data from other systems: exports, copy-paste from websites, PDFs and emails.
- Symbols in the cell:
€ 1,200,12 %,1 234 Kč. - Different number formats:
1.234,56is a number on a computer set up for German or Czech, and text on one set up for English, and the other way round for1,234.56. - Invisible characters: leading or trailing spaces, and especially non-breaking spaces copied from web pages.
- Cells formatted as Text before the numbers were typed in.
- An apostrophe at the start (
'123), which tells Excel to keep the value as text. - Accounting-style negatives such as
(450)or450-from finance systems.
Seven ways to fix it
1. Convert to Number
Select the cells, click the warning icon and choose Convert to Number. Fastest for a plain column of digits.
2. Text to Columns
Select the column, choose Data › Text to Columns, and click Finish. Excel re-reads every cell. Step 3 of the wizard has an Advanced button where you set the decimal and thousands separators, which fixes European formats.
3. Paste Special › Multiply
Type 1 in an empty cell and copy it. Select the text numbers, choose Paste Special, then Multiply. Multiplying by 1 forces each value to become a number.
4. VALUE
=VALUE(A2) converts text to a number using your computer's settings. It handles thousands separators and percentages written your local way, but not other countries' formats.
5. NUMBERVALUE, for any format
=NUMBERVALUE(A2, ",", ".") reads a comma as the decimal separator and a dot as the thousands separator, so 1.234,56 becomes 1234.56 on any computer. Swap the two for the US/UK format.
6. Remove invisible characters first
If nothing above works, the cell probably contains a hidden character. =TRIM(CLEAN(A2)) removes extra spaces and non-printing characters. Non-breaking spaces need replacing explicitly: =SUBSTITUTE(A2, CHAR(160), ""). Combine as needed: =NUMBERVALUE(SUBSTITUTE(A2, CHAR(160), ""), ",", ".").
7. Strip symbols with Find & Replace
For currency signs and units, use Find & Replace (Ctrl + H) to replace €, Kč or % with nothing, then convert. Remember that removing % from 12 % leaves 12, not 0.12: divide by 100 if you need the fraction.
For accounting negatives, (450) and 450-, replace the brackets or trailing minus with a leading minus before converting.
Don't convert codes
Not every column of digits is a number. Postcodes, product codes, account numbers and phone numbers should stay as text:
- converting
00123to a number drops the leading zeros for good; - a number with more than 15 digits loses its last digits in Excel;
- adding up phone numbers or postcodes means nothing.
If a column is an identifier, leave it as text.
Fixing it automatically
When the same exports come in every week, fixing them by hand gets old. DataFinery converts numbers stored as text when it opens an Excel or CSV file, including:
- currency amounts such as
$1,200.00,€ 1.234,56and1 234 Kč, with the currency kept for display; - percentages such as
12,5 %; - European and English formats, and thousands grouped with spaces, non-breaking spaces or apostrophes;
- accounting negatives such as
(450)and450-.
It leaves zero-padded codes and phone numbers alone. When a value like 1,234 could be either one thousand two hundred and thirty-four or one point two three four, it decides from the other values in the column; if they don't settle it, it goes by your browser's language, and the cleaning report shows both readings so you can switch. Values that can't be read are left blank and counted, never guessed. Every conversion is listed with a count, and the file is read inside your browser, never uploaded.
For the other problems that break charts, see 7 ways messy spreadsheets break your charts.