How to Fix Excel #VALUE! Error When a Formula Contains Text
Question details
The user needs to prevent or resolve the #VALUE! error in a spreadsheet when performing basic mathematical calculations involving cells that contain text strings instead of numbers.
- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Copying an arithmetic formula (such as D2+E2-I2) down a worksheet where some referenced cells contain text values like "T & M".
- Observed behavior
- The formula returns a #VALUE! error because standard mathematical operators cannot process non-numeric text strings.
Check the cells referenced in your calculation to verify if any contain unexpected text strings, hidden spaces, or special characters that are disrupting the formula.
Use the SUM Function to Ignore Text Values
The SUM function automatically ignores text values in referenced cells, making it the safest alternative to the standard plus (+) operator.
When using mathematical operators like the plus sign (+), Excel forces all referenced cells to act as numbers. If a cell contains text, the calculation breaks and returns a #VALUE! error. Replacing the plus sign with the SUM function solves this because SUM is designed to seamlessly skip over non-numeric data.
Click on the cell where you want the calculated result to appear.
Replace the standard addition operators with the SUM function. For example, instead of typing =D2+E2-I2, change your formula to =SUM(D2:E2)-I2.
Press Enter to execute the formula, then double-click or drag the fill handle in the bottom-right corner of the cell to copy this adjusted formula down your worksheet.
Use the IFERROR Function to Display Blank Cells
If you prefer to keep your original mathematical formula but want to hide the #VALUE! errors when text is encountered, wrap your calculation in an IFERROR function.
Calculate and Troubleshoot Formulas Easily in WPS Spreadsheet
WPS Office provides an intuitive spreadsheet application that seamlessly handles complex calculations and handles non-numeric data securely. Its built-in error checking helps you find and fix tricky formula issues instantly.
- 1. Open your workbook: Launch WPS Spreadsheet and open your document containing the data.
- 2. Enter the corrected formula: Click your target cell and type =SUM(D2:E2)-I2 to automatically bypass text values while calculating.
- 3. Utilize Error Checking: Navigate to the Formulas tab on the top ribbon and click 'Error Checking' to scan your entire sheet for any remaining #VALUE! errors.

Frequently Asked Questions
Why does the plus (+) operator cause a #VALUE! error with text?
The plus operator is strictly intended for arithmetic calculations. When it encounters text, the software cannot safely convert that text string into a numeric value, triggering a #VALUE! error. Standard functions like SUM are specifically programmed to bypass text cells.
How can I quickly find hidden text or spaces causing #VALUE! errors?
You can use the ISTEXT function (e.g., typing =ISTEXT(A1)) in an adjacent column to identify if a cell is being read as text. Alternatively, use the TRIM function to strip unintended leading or trailing spaces from your imported data.
Can I replace the #VALUE! error with a custom text message instead of a blank?
Yes. By modifying the second argument of the IFERROR function, you can display a customized string. For example, using =IFERROR(D2+E2-I2, "Invalid Data") will output 'Invalid Data' instead of the standard #VALUE! error.




