logo
search
Formula Errors

How to Fix Excel Cannot Convert Text Like 23.00 to a Number

Ayan MasoodAyan Masood Sep 29, 2026 870 views

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.

How to Fix Excel Cannot Convert Text Like 23.00 to a Number
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 you start

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.

Solution 1Recommended

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.

1
Select a blank cell

Click on an empty cell adjacent to your problematic data (for example, cell B1 if your text is in A1).

2
Enter the nested cleanup formula

Type the formula =NUMBERVALUE(TRIM(CLEAN(SUBSTITUTE(A1,CHAR(160),"")))) into the formula bar.

3
Apply the conversion

Press Enter. The cell should now display the correct numerical value (e.g., 23) instead of a #VALUE! error.

4
Fill down the column

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.

Clean, Trim, and Convert Using Nested Formulas
Alternative Function: If your version of Excel does not support NUMBERVALUE, you can seamlessly replace it with the VALUE function: =VALUE(TRIM(CLEAN(SUBSTITUTE(A1,CHAR(160),"")))).
Powerful Data Processing

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. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing the problematic imported text.
  2. 2. Select the text cells: Click and drag to highlight the cells containing the text you want to convert to numbers.
  3. 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. 4. Click Convert to Number: Select 'Convert to Number' from the drop-down menu for an instant, batch conversion.
  5. 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.
Fully compatible with Microsoft Excel (.xlsx) formats and functionsFast, lightweight, and processes large datasets without laggingProvides smart 'Convert to Number' error-checking options directly in the user interface
microsoft office alternative - wps office

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), "").