Skip to content

VALUE

Converts text that looks like a number, date or time into a real number.

Syntax

=VALUE()

Text

All versions of Excel.

Try it

Edit the formula in C2 or change the inputs. The sheet recalculates as you type.

C2
A
B
C
1
Imported amount
Invoice
Number
2
1,250.50
INV-2041
1250.5
3
4

C2 =VALUE(A2) returns 1250.5

How VALUE works

VALUE converts text that looks like a number into a real number. Data imported from other systems, pasted from the web or cut out of longer text often arrives as text: it is left-aligned, shows a green triangle, and won't add up in a SUM. VALUE fixes that.

What it accepts

VALUE converts anything Excel would accept if you typed it into a cell:

  • Plain numbers: "1250" becomes 1250.
  • Thousands separators and decimals: "1,250.50" becomes 1250.5 in a US setting.
  • Currency symbols of your region: "$1,250.50" becomes 1250.5.
  • Percentages: "12%" becomes 0.12.
  • Dates: "2025-03-15" becomes 45731, the date serial number.
  • Times: "6:00 PM" becomes 0.75.

If Excel can't read the text as a number, VALUE returns #VALUE!. =VALUE("abc") and =VALUE("12 kg") both fail. An empty string also fails.

Settings decide what counts as a number

VALUE reads text using the language and regional settings of the computer. "1,250.50" is 1250.5 where the comma separates thousands, but in many European settings a comma is the decimal mark, so the same text is read differently or rejected. Dates are even more sensitive: "03/04/2025" can mean 3 April or 4 March. The ISO form 2025-03-15 is the safest. When separators vary, use NUMBERVALUE, where you state them.

Other ways to convert

Excel often converts text numbers for you in arithmetic: ="1250"+1 returns 1251. Several shortcuts do the same as VALUE in a formula:

  • =--A2 (a double negative)
  • =A2*1
  • =A2+0

They are quick, but VALUE makes the intent obvious to the next reader. Outside a formula, Text to Columns, and the green-triangle option Convert to Number, convert a whole column in place.

Why SUM ignores text numbers

SUM, AVERAGE and similar functions skip text in a range, even if it looks like a number. A column of text numbers gives a total of 0. To total it without converting first, use =SUMPRODUCT(--A2:A9), or convert with VALUE in a helper column.

Combined with other text functions

LEFT, MID, RIGHT, SUBSTITUTE and TEXTBEFORE all return text. When you cut a number out of a longer text, wrap the result: =VALUE(MID(A2,4,2)). When a currency symbol or unit is in the way, remove it first: =VALUE(SUBSTITUTE(A2,"kg","")).

When VALUE is not needed

If a cell already holds a real number, VALUE returns it unchanged. If you give it an empty cell, it returns 0. VALUE doesn't change what is displayed; use TEXT for the opposite job of turning numbers into formatted text.

Arguments

text
The text to convert, in quotes or as a cell reference. It must look like a number, date or time that Excel recognises in your regional settings, such as "1,250.50", "12%" or "2025-03-15".

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

Convert a text amount to a number

C2 =VALUE(A2)

Result: 1250.5

A2 holds the text "1,250.50". VALUE reads it with US separators and returns the number 1250.5.

C2
A
B
C
1
Imported amount
Invoice
Number
2
1,250.50
INV-2041
1250.5
3
4

C2 =VALUE(A2) returns 1250.5

Example 2

Convert text with a currency symbol or percent sign

D2 =VALUE(B2)

Result: 0.12

The percent sign divides by 100. VALUE("$1,250.50") works the same way in a US setting and returns 1250.5.

D2
A
B
C
D
1
Imported price
Imported rate
Price
Rate
2
$1,250.50
12%
0.12
3
4

D2 =VALUE(B2) returns 0.12

Example 3

Turn a number cut out of text into a real number

C2 =VALUE(LEFT(A2,4))+1

Result: 2026

LEFT returns the text "2025". VALUE turns it into the number 2025, and the +1 gives 2026.

C2
A
B
C
1
Period
Label
Next year
2
2025-Q3
Plan
2026
3
4

C2 =VALUE(LEFT(A2,4))+1 returns 2026

Example 4

Convert an ISO date to a date serial number

C2 =VALUE(A2)

Result: 15-Mar-2025

The result is the serial number for 15 March 2025. Format the cell as a date to see it as one.

C2
A
B
C
1
Imported date
Order
Serial number
2
2025-03-15
SO-7719
15-Mar-2025
3
4

C2 =VALUE(A2) returns 15-Mar-2025

Example 5

Text that is not a number

C2 =VALUE(A2)

Result: #VALUE!

The unit makes the text unreadable as a number. Remove it first: =VALUE(SUBSTITUTE(A2," kg","")).

C2
A
B
C
1
Weight
Item
Number
2
12 kg
Pallet wrap
#VALUE!
3
4

C2 =VALUE(A2) returns #VALUE!

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In C2, convert the text quantity in B2 to a real number. Fill it down to C5.

Answer in C2, then it fills down to C5.

C2
A
B
C
D
1
Item
Imported qty
Number
Note
2
Nitrile gloves
1,250
3
Floor cleaner
480
4
Pallet wrap
2,075
5
Safety boots
96
6
7
8
Total quantity

Common mistakes

  • #VALUE! means Excel can't read the text as a number. Look for units, stray symbols, non-breaking spaces and separators that don't match your regional settings.
  • Regional settings change what VALUE accepts. "1,250.50" and "03/04/2025" can be read differently, or rejected, on a computer with another region. Use NUMBERVALUE for text with separators you control.
  • Hidden characters stop the conversion. A non-breaking space (character 160) or a line break makes VALUE fail. Clean with SUBSTITUTE, CLEAN and TRIM first.
  • SUM and AVERAGE skip text numbers. If a total is lower than expected, check for left-aligned numbers and convert them.
  • VALUE returns a number, not a formatted date. For dates, apply a date format to the result.

Questions people ask

How do I convert text to a number in Excel?

Use `=VALUE(A2)`, or `=--A2`. To convert a whole column in place, select it and use Data, Text to Columns, then Finish, or use the green-triangle Convert to Number option.

Why does VALUE return #VALUE!?

The text is not something Excel recognises as a number in your regional settings. Typical causes are units such as "kg", a non-breaking space, or a different decimal separator.

What is the difference between VALUE and NUMBERVALUE?

VALUE uses your regional settings to read the text. NUMBERVALUE lets you state the decimal and thousands separators, so it works on data from other regions.

Is --A2 the same as VALUE(A2)?

For converting text numbers, yes. The double negative is a shortcut. VALUE is easier to read for someone who does not know the trick.

Why does my SUM return 0 for numbers I can see?

The numbers are stored as text, and SUM skips text. Convert them with VALUE, Text to Columns or multiplying by 1, or total them with `=SUMPRODUCT(--A2:A9)`.

Learn VALUE in a real sheet.

VALUE is taught in Logic and text, lesson 18: VALUE and text numbers. Each lesson is a short, graded exercise like the one above.