In Excel: use =VALUE(text) — it converts a number stored as text into a real number, so SUM and lookups stop ignoring it.
On this page8
Syntax
Arguments
| Argument | required / optional | Description |
|---|---|---|
text | required | Text that looks like a number, date or time. Anything else returns #VALUE!. |
Related functions
Confirm the problem with =ISNUMBER(A2) — FALSE on a numeric-looking cell means it is text.
In a helper column type =VALUE( and wrap the cell in TRIM if padding is likely.
Fill down and check for #VALUE!, which points at separators or stray symbols.
Paste the helper column back over the original as values.
What this does
VALUE turns text that looks like a number into an actual number. It is the standard repair for imported data, where figures arrive as text and are then silently skipped by SUM, AVERAGE and every numeric lookup. It handles dates and times too, returning their serial numbers. Its limit is locale: a value using the wrong decimal or thousands separator for your settings returns #VALUE!, and that is what NUMBERVALUE exists for — it takes the separators as explicit arguments. Stray spaces and currency symbols also defeat it, so the robust form wraps the input in TRIM and SUBSTITUTE first. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. For “numbervalue formula in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected formula change, and only then apply the same setup to the full sheet. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That is what makes a calculation you can defend to a CFO or an auditor useful in real work: repeatable, auditable, and not dependent on memory or luck.
A worked example
Repairing an imported column: =VALUE(TRIM(A2)) converts " 1234 " into the number 1234. Handling a European format under US settings: =NUMBERVALUE(A2, ",", ".") reads "1.234,56" correctly. Stripping a currency symbol first: =VALUE(SUBSTITUTE(SUBSTITUTE(A2, "€", ""), " ", "")). VALUE fixes the most common single defect in imported spreadsheets: numbers that look right and behave like text. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.
In Google Sheets
Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. For “numbervalue formula in excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.
Common mistakes
- Passing text with a locale-foreign decimal separator, which errors — NUMBERVALUE takes the separators explicitly.
- Forgetting currency symbols and non-breaking spaces from web pastes, which must be substituted out first.
- Converting a column and leaving the formulas in place, so the "fixed" data still depends on the broken source.
Frequently asked questions
How do I convert text to a number in Excel?
=VALUE(A2), or Data → Text to Columns → Finish for a whole column in one pass without a helper.
Why does VALUE return #VALUE!?
The text is not recognisable as a number under your locale — usually a decimal separator mismatch or a stray symbol.
What is NUMBERVALUE for?
The same conversion with the decimal and grouping separators passed as arguments, which makes it locale-proof.