Numbers Stored as Text in Excel - How to Fix
Last updated: 14 November 2026
Numbers copied from a PDF can show as text in Excel: green triangles, sums that return zero, sorting that goes 1, 10, 2. Why it happens and how to fix it.
The symptoms
- A small green triangle in the corner of cells.
- SUM returns 0 or ignores some cells.
- Sorting puts 10 before 2.
- Amounts are left-aligned instead of right-aligned.
Why it happens
Text copied from a PDF carries formatting characters: thousands separators, currency signs, brackets for negatives, a trailing minus, Dr or Cr, or invisible spaces. Excel does not recognise these as numbers, so it keeps them as text.
How the converter handles it
Each column is converted as a whole: when most of a column is numbers, every number in it becomes a real number with a matching format (for example #,##0.00). Brackets and a trailing minus become negative numbers, percentages become real percentages, and the currency sign becomes part of the number format.
Columns that only look numeric - phone numbers, PIN codes, account numbers and codes with leading zeros - are deliberately kept as text, because turning them into numbers would change them.
How to recognise the problem
Numbers stored as text look normal but behave wrongly. Typical signs: the values sit on the left side of the cell instead of the right, a small green triangle appears in the top-left corner of each cell, SUM returns 0 or a total that is too small, sorting puts 1000 before 200, and charts ignore the column. If you select the cells and the status bar at the bottom shows only "Count" with no "Sum", Excel is treating them as text.
Why it happens after converting a PDF
PDFs store everything as text, so a converter has to decide which cells are numbers. Amounts can carry symbols that stop Excel from recognising them: a rupee sign, a trailing "Cr" or "Dr", brackets for negative values, a non-breaking space between digits, or Indian grouping such as 1,23,456.00 in a copy of Excel set to another region. Leading apostrophes and invisible characters copied from web pages cause the same effect.
Four ways to fix it
Pick the one that matches your situation:
- Convert to Number: select the cells, click the yellow warning icon and choose "Convert to Number". Quickest for a single clean column.
- Text to Columns: select the column, open Data > Text to Columns, and press Finish. Excel re-reads every cell and turns digit-only text into numbers.
- Find and Replace: remove the extra characters first - replace "Cr", "Dr", the rupee sign or spaces with nothing - then use one of the methods above.
- Formula: in a new column, use =VALUE(A2), or =--SUBSTITUTE(A2,",","") when commas are in the way, then copy and paste the results as values.
Debits, credits and negative numbers
Some statements show one amount column with "Dr" or "Cr" after each number. After removing the letters, you need the sign back: a quick formula such as =IF(RIGHT(A2,2)="Dr",-1,1)*VALUE(LEFT(A2,LEN(A2)-2)) gives debits as negative numbers, so a simple SUM gives the net movement. Amounts in brackets, like (2,500.00), are an accounting way of writing negatives; Excel usually understands them once the cell is a number, or you can replace "(" with "-" and ")" with nothing.
The converters on this site already clean these symbols where they can, so most columns arrive as real numbers. These steps are for files that came from elsewhere, or for unusual formats.