Numbers stored as text
These quantities came from an export as text. See how they sit on the left of the cell, and SUM in F1 gives 0.
keyboard Typing formulas is easiest on a computer with a keyboard.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Item | Qty (text) | Qty | Total of B | 0 | ||
| 2 | Monitor Stand | 10 | Total of C | 0 | |||
| 3 | Headset | 30 | |||||
| 4 | Office Chair | 5 | |||||
| 5 | Bookshelf | 24 | |||||
| 6 | USB-C Hub | 47 | |||||
| 7 | Notebook A5 | 18 | |||||
| 8 | Filing Cabinet | 12 | |||||
| 9 | Desk Organiser | 3 | |||||
| 10 | |||||||
| 11 | |||||||
| 12 | |||||||
| 13 |
How VALUE works
What is a number stored as text?
A cell that shows digits, but that Excel treats as text. It happens with data copied from websites, exported from other systems, or typed with an apostrophe in front ('42).
How can you tell?
- It sits on the left of the cell. Real numbers sit on the right.
- Excel shows a small green triangle in the corner.
SUMskips it, so totals come out too small, often 0.ISNUMBERsaysFALSEandISTEXTsaysTRUE.
Why does it matter for lookups?
Excel treats "42" and 42 as different values, so a
VLOOKUPorXLOOKUPfor 42 doesn't find "42" and shows #N/A, even though they look the same.How do you fix it?
VALUEturns text that looks like a number into a real number:=VALUE(B2)Any maths does the same, which is why you'll also see
=B2*1or=--B2. To go the other way and turn a number into text, join an empty string:=B2&"".
Know someone fighting with a spreadsheet? Send them this page.