Skip to content

Lesson 86 of 92 · Free Excel Course

Excel · Excel function reference

Excel VALUE Function: Syntax, Examples and Common Errors

The Excel VALUE function turns number-looking text into real numbers. Syntax, Microsoft's examples, VALUE vs NUMBERVALUE, faster fixes and a free workbook.

The VALUE function turns text that looks like a number into a real number Excel can calculate with. Give it "$1,000" and it returns 1000; give it "12.5%" and it returns 0.125. It reads any number, date or time format Excel recognizes, and returns the #VALUE! error for anything else. VALUE works in Excel for Microsoft 365 (Windows and Mac), Excel for the web, and Excel 2024, 2021, 2019 and 2016.

Syntax

=VALUE(text)
  • text (required): the text to convert. Type it in quotes, like "$1,000", or point to a cell that holds it. It can be a number, currency, percent, date or time in any format Excel recognizes on your computer. If the cell already holds a real number, VALUE simply returns it.

The result is a plain number. A date comes back as its serial number and a time as a fraction of a day, so format the cell as a date or time to read it.

Do you need it? Microsoft says you usually don't, because Excel converts text automatically in math: if A2 holds the text "10", =A2*2 still returns 20. VALUE matters where Excel doesn't convert: SUM, AVERAGE and COUNT skip text in a range, a lookup for the number 42 won't find the text "42", and LEFT, MID, RIGHT and TEXTSPLIT always return text.

Examples

1. Microsoft's examples. These two come from Microsoft's VALUE page.

B3=VALUE("16:48:00")-VALUE("12:00:00")
ABC
1TextResultFormatted h:mm
2$1,0001000
316:48:00 minus 12:00:000.24:48
B2 is =VALUE(A2). B3 subtracts two times: 0.2 of a day. C3 is the same formula with the cell formatted as h:mm, which shows 4 hours 48 minutes.

To show the time result as 4:48, select the cell, press Ctrl+1 (Cmd+1 on a Mac), choose Time or type the custom format h:mm, and click OK.

2. Percent, date and time text. Here each cell in column A is text, for example after an import. VALUE converts all of them; the formats in column B were set afterwards.

B3=VALUE(A3)
ABC
1TextVALUEFormat applied
212.5%12.5%Percent (0.125)
311/22/202611/22/2026Date (46348)
44:48 PM4:48 PMTime (0.7)
542 kg#VALUE!
The number underneath is in brackets. 42 kg isn't a number, so VALUE returns #VALUE!.

Date text is read in your computer's date order. On US settings, 11/22/2026 is November 22; see Dates and times for how serial numbers work.

3. Total a column of text numbers. Imported amounts often arrive as text: they sit on the left of the cell and may show a green triangle. SUM skips them and returns 0.

C3=SUMPRODUCT(VALUE(A2:A4))
ABC
1Amount (text)Total
2149.500
320244.75
475.25
C2 is =SUM(A2:A4), which ignores text. C3 converts the three values first.

In Excel for Microsoft 365, Excel 2021 and 2024, =SUM(VALUE(A2:A4)) gives the same 244.75. You can also convert a single cell without VALUE by doing math that leaves it unchanged: =A2*1, =A2+0 or =--A2 (two minus signs) all return 149.5.

4. Pull a number out of an ID. RIGHT returns text, so wrap it in VALUE before doing math.

B2=VALUE(RIGHT(A2,4))+1
AB
1Invoice IDNext number
2INV-2026-004243
RIGHT(A2,4) gives the text "0042"; VALUE turns it into 42, and +1 makes 43.

Here the +1 would convert "0042" on its own, but VALUE makes the intent clear and is required where no math follows, such as an XLOOKUP against a column of real numbers.

5. VALUE vs NUMBERVALUE. Many countries write two thousand five hundred and 27 hundredths as 2.500,27. On US settings VALUE can't read it. NUMBERVALUE lets you name the separators: NUMBERVALUE(text, [decimal_separator], [group_separator]). This is Microsoft's own NUMBERVALUE example.

C3=NUMBERVALUE(A3,",",".")
ABC
1TextFormulaResult
22.500,27VALUE#VALUE!
32.500,27NUMBERVALUE2500.27
The comma is the decimal separator and the period groups the thousands.

If you leave the separators out, NUMBERVALUE uses your computer's settings. Microsoft also notes it ignores spaces and that an empty text returns 0.

Common errors

  • #VALUE! because of units or letters. "42 kg", "USD 50" and "N/A" aren't numbers. Remove the extra part first, for example =VALUE(SUBSTITUTE(A2," kg","")), or split it off with the text functions.
  • #VALUE! from text pasted off a web page. Invisible characters, such as non-breaking spaces, can stop the conversion even when the cell looks fine. LEN shows extra characters. Remove non-breaking spaces with =VALUE(SUBSTITUTE(A2,CHAR(160),"")); CLEAN removes other non-printing characters, but not non-breaking spaces.
  • #VALUE! on a decimal comma or a foreign date. VALUE follows your regional settings. Use NUMBERVALUE for separators. For a day-first date such as 22/11/2026 on US settings, rebuild it with DATE, as shown in Import, export and convert.
  • The wrong date, with no error. On US settings, 02/03/2026 is read as February 3, even if the file meant 2 March. Check a date whose day is above 12.
  • A number like 46348 or 0.7 instead of a date or time. That's the correct result; it just isn't formatted. Apply a date or time format.
  • SUM still shows 0. You converted in a helper column but are still summing the original text column. Point SUM at the VALUE column, or convert the original cells in place.

Converting in place instead. If you don't need to keep the text, skip the formula:

  1. Select the cells, click the warning icon next to the selection and choose Convert to Number. If you see no icon in Excel for Windows, turn on File > Options > Formulas > Enable background error checking. You can also press Alt+Shift+F10 to open the icon's menu.
  2. Or select one column and click Data > Text to Columns, then Finish.
  3. Or type 1 in a blank cell, copy it, select the text numbers, and use Paste Special > Multiply.

Related functions

  • Import, export and convert: why imported files produce text numbers, and how to stop it.
  • Text functions: LEFT, MID, RIGHT and TEXTSPLIT, whose results often need VALUE.
  • LEN: counts characters to expose hidden spaces.
  • CLEAN: removes non-printing characters before converting.
  • EXACT: compares text exactly, useful for checking a cleanup.

Try it yourself

Download the practice workbook. Convert currency, percent, date and time text with VALUE, rebuild Microsoft's 4:48 time example, fix a SUM that shows 0, read the next invoice number and a European-style amount with NUMBERVALUE, then compare your results with the Answers sheet.

Frequently asked questions

Do I need the VALUE function in Excel?

Often not. Microsoft says Excel converts text to numbers automatically when needed, so =A2*2 works even if A2 holds the text "10". You need VALUE (or another fix) when a function skips text, such as SUM or AVERAGE over a range, when a lookup compares a number with text, or when LEFT, MID or RIGHT gave you digits as text.

Why does the VALUE function return #VALUE!?

The text isn't in a number, date or time format Excel recognizes. Common causes are units or letters ("42 kg"), a decimal comma on a computer set to use a decimal point ("2.500,27"), a date in the wrong day/month order, and invisible characters copied from a web page. Strip the extra characters first, or use NUMBERVALUE for other separators.

What is the difference between VALUE and NUMBERVALUE?

VALUE reads text using your computer's regional settings. NUMBERVALUE lets you say which characters are the decimal and thousands separators, so =NUMBERVALUE("2.500,27",",",".") returns 2500.27 on any computer, while VALUE returns #VALUE! on US settings.

How do I convert a whole column of numbers stored as text?

Select the cells, click the warning icon next to the selection and choose Convert to Number. Or select the column and use Data > Text to Columns > Finish. Both change the cells themselves, with no formula. Use VALUE in a helper column when you want to keep the original text.