Going Stellar

Home/Google Sheets reference

Google Sheets function · Text

VALUE in Google Sheets: syntax and examples

VALUE turns text into a number. It understands plain numbers, percentages, dates and times written in the spreadsheet locale. Use it on imported data where numbers arrive as text and sums or lookups fail.

Syntax

VALUE(text)

Arguments

ArgumentTypeRequiredWhat it does
textstringyesA text that looks like a number, date, time or percentage.

Examples

The examples use this table, starting in A1:

Text
abc
12 kg
=VALUE("1234")

Result: 1234

Text that holds a number becomes a real number.

Run in a Google Sheet (English US locale) on .

=VALUE("12%")

Result: 0.12

A percentage in text becomes the fraction 0.12.

Run in a Google Sheet (English US locale) on .

=VALUE("2026-01-15")

Result: 46037

A date in text becomes its serial number.

Run in a Google Sheet (English US locale) on .

=VALUE("1:30")

Result: 0.0625

A time becomes a fraction of a day.

Run in a Google Sheet (English US locale) on .

=IFERROR(VALUE(A2), "not a number")

Result: not a number

Wrap VALUE in IFERROR when the source may hold plain text.

Run in a Google Sheet (English US locale) on .

Common errors

  • Text with units or letters, such as "12 kg", returns #VALUE!. Strip the extra characters first with REGEXREPLACE or SUBSTITUTE.
  • The decimal sign follows the file locale. With Locale set to Romania, "1,5" is read as 1.5.
  • Dates and times become serial numbers. Format the cell as a date to read them.
  • A non-breaking space, CHAR(160), breaks the conversion and TRIM does not remove it. Replace it with SUBSTITUTE first.

Compared with Excel

Same syntax in Excel.

Sources

  1. VALUE (Docs Editors Help)

Markdown version · All functions