Text function

VALUE function

Converts text that looks like a number, percentage, date or time into a real number Excel can calculate with.

Available in All versions of Excel, including Microsoft 365, Excel for Mac and Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

VALUE(text)
ArgumentWhat it means
textRequiredText in a format Excel recognises as a number, date or time, or a cell containing it.

Returns: A number (dates and times as their serial numbers).

How VALUE works

Sometimes numbers arrive as text: imported from CSV files or web pages, typed with an apostrophe, or produced by text functions like LEFT, MID or RIGHT. They look like numbers but are usually left-aligned, carry a green triangle, and are ignored by SUM. VALUE turns such text into a genuine number.

It understands anything you could type into a cell and have recognised as a number in your regional settings: thousands separators ("1,250.50"), percentages ("15%" becomes 0.15), currency symbols ("$99"), dates ("2026-03-15" becomes 46096) and times ("18:00" becomes 0.75). If the text uses a different country's separators, use NUMBERVALUE instead.

Excel often converts text automatically in calculations (="5"*2 gives 10), but not inside functions like SUM or in comparisons, so explicit conversion with VALUE (or the shorter --) is the safe habit.

Examples

1Amount with thousands separator

B2fx=VALUE(A2)
AB
1Amount (text)
21,250.501250.5

Result: 1250.5

The comma and decimal point are recognised (US/UK settings), giving the number 1250.5.

2Percentage text

B2fx=VALUE(A2)
AB
1Discount (text)
215%0.15

Result: 0.15

The percent sign divides by 100. Format the cell as a percentage to show 15%.

3Date text to a real date

B2fx=VALUE(A2)
AB
1Date (text)
22026-03-1546096

Result: 46096

VALUE returns the serial number 46096. Apply a date format to see it as a date again; now it can be used in date arithmetic.

4Number from a code

B2fx=VALUE(RIGHT(A2,4))
AB
1Invoice
2INV-004242

Result: 42

RIGHT returns the text 0042; VALUE turns it into the number 42 (leading zeros disappear).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 16 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!The text is not recognisable as a number, e.g. contains letters, extra symbols or another country's separators.Clean it with SUBSTITUTE/TRIM, or use NUMBERVALUE with explicit separators.

Tips

  • --A2 and A2*1 do the same conversion and are common in array formulas.
  • To fix a whole column of text numbers without formulas, select it and use Data > Text to Columns > Finish, or the warning-triangle menu's Convert to Number.
  • A non-breaking space inside the text causes #VALUE!; remove it with SUBSTITUTE(A2,CHAR(160),"").

Questions

Why does SUM ignore my numbers?

They are stored as text. Convert them with VALUE, --, or Convert to Number, then SUM will include them.

What is the difference between VALUE and NUMBERVALUE?

VALUE uses your computer's separators; NUMBERVALUE lets you specify the decimal and thousands separators of the source text.

Can VALUE convert dates?

Yes, if the text is a date format your Excel recognises. It returns the serial number, which you then format as a date.

Google Sheets

VALUE also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

VALUE in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechHODNOTA
DanishVÆRDI
DutchWAARDE
FinnishARVO
FrenchCNUM
GermanWERT
HungarianÉRTÉK
ItalianVALORE
Norwegian (Bokmål)VERDI
PolishWARTOŚĆ
Portuguese (Brazil)VALOR
Portuguese (Portugal)VALOR
RussianЗНАЧЕН
SpanishVALOR
SwedishTEXTNUM
TurkishSAYIYAÇEVİR

Recipes that use VALUE