How to Fix Excel Cannot Convert Text Like 23.00 to a Number
Question details
The user is unable to convert text representations of numbers (such as "23.00") into actual numerical values in Excel, resulting in a formula error.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Attempting to use the VALUE or NUMBERVALUE functions on imported or scraped data that contains numbers formatted as text.
- Observed behavior
- The formulas return a #VALUE! error instead of the converted number, likely due to hidden, non-printing, or non-breaking characters within the cell.
Before applying advanced formulas, visually inspect your data for trailing spaces or imported quotation marks, and ensure your cell format is set to General or Number rather than Text.
Clean, Trim, and Convert Using Nested Formulas
Use a combination of CLEAN, TRIM, and SUBSTITUTE functions to strip hidden characters and non-breaking spaces before converting the text to a number.
Imported data often contains non-breaking spaces (CHAR(160)) and other non-printing characters that the standard TRIM function cannot remove. Combining these text-cleanup functions guarantees that the VALUE or NUMBERVALUE function can process the text string correctly without throwing a #VALUE! error.
Click on an empty cell adjacent to your problematic data (for example, cell B1 if your text is in A1).
Type the formula =NUMBERVALUE(TRIM(CLEAN(SUBSTITUTE(A1,CHAR(160),"")))) into the formula bar.
Press Enter. The cell should now display the correct numerical value (e.g., 23) instead of a #VALUE! error.
Click the small square at the bottom-right corner of the selected cell and drag it down to apply the formula to the rest of your data.

Identify and Remove Specific Hidden Characters
If standard cleaning formulas fail, manually identify the hidden character's Unicode value so you can explicitly remove it.
Remove Quotation Marks and Convert with a Double Unary
Use a double negative operator combined with SUBSTITUTE to quickly extract numbers enclosed in quotation marks.
Fix Formula Errors and Convert Text to Numbers in WPS Spreadsheet
WPS Spreadsheet seamlessly supports complex nested functions like VALUE, TRIM, CLEAN, and SUBSTITUTE. Easily process imported data, remove hidden characters, and convert text formats without encountering unexpected #VALUE! errors.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing the problematic imported text.
- 2. Select the text cells: Click and drag to highlight the cells containing the text you want to convert to numbers.
- 3. Use the smart error indicator: If a small green triangle appears in the top-left corner of the cells, click the yellow warning icon that pops up.
- 4. Click Convert to Number: Select 'Convert to Number' from the drop-down menu for an instant, batch conversion.
- 5. Apply cleanup formulas if needed: For persistent hidden characters, use the =NUMBERVALUE(TRIM(CLEAN(SUBSTITUTE(A1,CHAR(160),"")))) formula exactly as you would in standard spreadsheet software.

Frequently Asked Questions
Why does Excel show #VALUE! when converting text to numbers?
This happens when the cell contains non-numeric characters, such as letters, hidden spaces, or non-breaking spaces (like CHAR(160)). The VALUE function cannot process these characters, resulting in a #VALUE! error.
What is the difference between the VALUE and NUMBERVALUE functions?
The VALUE function converts a basic text string that represents a number into an actual number. The NUMBERVALUE function is more advanced; it allows you to specify custom decimal and group separators, which is highly useful when processing international data formats.
How do I remove a non-breaking space in Excel?
The standard TRIM function cannot remove non-breaking spaces. Instead, you must use the SUBSTITUTE function combined with CHAR(160) to replace non-breaking spaces with an empty string. For example: =SUBSTITUTE(A1, CHAR(160), "").




