Excel VALUE function: convert numbers stored as text into real numbers
The VALUE function turns numbers stored as text into real numbers: prices from 1C and websites, “12 500 UZS”, “25 kg”, percentages — with examples.
Numbers copied from accounting software, a bank statement, a website or a CSV file often arrive as text. They look like numbers, but =СУММ() ignores them and the total comes out as 0. Worse, sometimes the report is just quietly wrong.
The VALUE function turns text that looks like a number into a real number. You need it most when you cut a number out of text: 25 from “25 kg”, 45 from “INV-0045”, 12500 from “12 500 UZS”. LEFT, MID and SUBSTITUTE always return text, and turning that text into a number is VALUE’s job.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Price (text) | Price (number) | |
| 2 | Flour | 125000 | 125 000 | |
| 3 | Sugar | 18500 | 18 500 | |
| 4 | Rice | 32000 | 32 000 | |
| 5 | Total | 01 | 175 5002 | |
| 6 |
Syntax
=ЗНАЧЕН(text)
- text — text that looks like a number, date or time: a value in quotes (
"125000","45%") or a cell holding such text (B2).
The result is a number. If the text can’t be read as a number (for example “none” or “12 kg”), Excel returns #VALUE!. VALUE ignores ordinary leading and trailing spaces: " 7800 " also becomes 7800.
Using VALUE step by step
1
Select the cell for the result — for example C2, next to the text prices.
2
On the Формулы tab click Текстовые and pick VALUE from the list.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Price (text) | Price (number) | |
| 2 | Flour | 125000 | ||
| 3 | Sugar | 18500 | ||
| 4 | Rice | 32000 | ||
| 5 |
3
In the Text box type or click the text cell — B2, then click OK.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Price (text) | Price (number) | |
| 2 | Flour | 125000 | 125000 | |
| 3 | Sugar | 18500 | ||
| 4 | Rice | 32000 | ||
| 5 |
4
Or just type it: =ЗНАЧЕН(B2) and Enter. It’s faster.
5
Double-click the fill handle (the small square at the bottom-right of C2) — the formula fills the whole column. The results now sit on the right: they are real numbers.
Practical examples
Three examples, from simple to advanced. The idea is always the same: first strip the extra text or cut out the digits, then turn them into a number with VALUE and calculate.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Price | Discount (text) | New price | |
| 2 | Kettle | 120 000 | 15% | 102 000 | |
| 3 | Iron | 350 000 | 10% | 315 000 | |
| 4 | Hair dryer | 280 000 | 25% | 210 000 | |
| 5 |
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Product | Quantity (text) | kg | Price per kg | Amount | |
| 2 | Rice | 25 kg | 25 | 14 000 | 350 000 | |
| 3 | Flour | 50 kg | 50 | 6 500 | 325 000 | |
| 4 | Sugar | 10 kg | 10 | 13 000 | 130 000 | |
| 5 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Price (from website) | Price (number) | ||
| 2 | 12 500 UZS | 12 500 | ||
| 3 | 8 000 UZS | 8 000 | ||
| 4 | 145 000 UZS | 145 000 | ||
| 5 | Total | 165 500 | ||
| 6 |
Pro level: you don’t always need VALUE — which method when
In arithmetic Excel converts text to numbers by itself, so short tricks work too:
=B2*1or=B2+0— same result as VALUE.=--B2(double minus) — the most common form in professional formulas. For example, a total without a helper column:=СУММПРОИЗВ(--B2:B4).- No formulas, in place: select the column → Данные → Текст по столбцам → click Finish right away. Numbers stored as text become numbers instantly.
- Independent of region: NUMBERVALUE lets you set the decimal and group separators yourself:
=NUMBERVALUE("1 250,5";",";" ")→ 1250.5. If the file is opened on computers with different language settings, this is the safer choice.
VALUE also understands date and time text: =ЗНАЧЕН("18:30") → 0.770833 (a fraction of a day), and a date typed in your system format, such as “15.01.2025”, becomes the serial number 45672.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Entered | With zero | With flag | |
| 2 | 125000 | 125000 | 125000 | |
| 3 | 7800 | 7800 | 7800 | |
| 4 | none | 0 | Check | |
| 5 | 3500 | 3500 | 3500 | |
| 6 |
Try it in the simulator
Prices in column B are stored as text, so the SUM in B6 shows 0. Type =ЗНАЧЕН(B2) in C2 and fill it down to C5, then type =СУММ(C2:C5) in C6 to get the correct total.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Product | Price (text) | Price (number) | |||||||||||||||||||||
| 2 | Flour | 125000 | ||||||||||||||||||||||
| 3 | Sugar | 18500 | ||||||||||||||||||||||
| 4 | Rice | 32000 | ||||||||||||||||||||||
| 5 | Oil | 41000 | ||||||||||||||||||||||
| 6 | Total | 0 | ||||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.