VALUE converts text Excel recognises as a number into a numeric value, and NUMBERVALUE does the same while letting you state the decimal and thousands separators. That matters when an export uses a comma as the decimal point and your computer expects a point.
What you need
- Excel with the text amounts column
- An empty helper column beside the data
- A note of the decimal and thousands separators in the export
Step 1: Clean the text first
In a helper column, enter =VALUE(TRIM(B2)) and fill it down. TRIM removes the spaces that stop VALUE from recognising the number; if the text has currency symbols, remove them first with SUBSTITUTE.
Step 2: Use NUMBERVALUE for foreign separators
When the export uses a comma as the decimal point, use =NUMBERVALUE(B2,’,’,’.’) instead, stating the decimal separator first and the thousands separator second. The result is the same number regardless of your computer regional settings.
Step 3: Check the errors instead of hiding them
Any cell that returns #VALUE! holds something that is not a number, such as <0.5 or n/a. Do not replace those errors with zero; list them and decide what value, if any, should be used.
Worked example: synthetic four-row result column
The table below is a synthetic example. It shows the expected result of converting text amounts; no workbook was opened.
| Text value | Converted | Result |
|---|---|---|
| 12.5 | 12.5 | Number |
| 8.1 | 8.1 | Number |
| <0.5 | #VALUE! | Below detection limit – decide |
| 15 | 15 | Number |
Expected result (UNTESTED). three text amounts convert to numbers and one returns #VALUE! because <0.5 is not a numeric value. That row needs a decision about what value to use, not a silent zero. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- VALUE interprets text using your computer regional settings; NUMBERVALUE lets you state the separators.
- A #VALUE! error is appropriate for a non-numeric value; it should be investigated, not hidden.
- Do not convert ID codes with VALUE; leading zeros will be lost.
