Fix Excel #VALUE! Errors in a Subtraction and Addition Formula
Question details
Find and correct values that cause the formula =B5-B4+B6 to return #VALUE!.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants to subtract B4 from B5 and add B6.
- Observed behavior
- The formula returns #VALUE! when a referenced cell contains an unsuitable value, such as text or hidden spaces.
Select B4, B5, and B6 and inspect each value in the formula bar. Check for text, hidden spaces, currency symbols entered as text, and existing errors before changing the formula.
Correct the values referenced by the formula
Use this method when one or more source cells contain text, spaces, or errors instead of usable numbers.
Select B4, B5, and B6 one at a time and check the formula bar for unexpected text, spaces, or error values.
Edit each affected cell to contain a valid number. Remove extra text or symbols that Excel does not recognize, and fix any source-cell errors before continuing.
If a cell has an error indicator for a number stored as text, select the cell, open the warning button, and choose Convert to Number. Changing the cell format to Number alone does not convert stored text.
In the result cell, enter =B5-B4+B6. With 5 in B5, 4 in B4, and 3 in B6, the result should be 4.

Clean and convert text numbers with helper cells
Use helper cells when the source values contain extra spaces or numbers stored as text.
Fix the Same Formula in WPS Spreadsheet
Open the workbook in WPS Spreadsheet, check the source cells, and convert recognizable text numbers before recalculating the subtraction and addition formula.
- 1. Open the workbook: Open WPS Spreadsheet and use Open to select the Excel workbook.
- 2. Check the inputs: Select B4, B5, and B6 and inspect the formula bar. Correct any text, unwanted symbols, or existing errors.
- 3. Convert text numbers: If values contain extra spaces, enter =VALUE(TRIM(SUBSTITUTE(B4,CHAR(160)," "))) in C4 and fill it down through C6. Check any remaining errors in the source cells.
- 4. Recalculate: Enter =C5-C4+C6 in the result cell, or use =B5-B4+B6 if you corrected the original cells directly.

Frequently Asked Questions
Why does =B5-B4+B6 return #VALUE!?
A referenced cell may contain text or spaces that Excel cannot use in arithmetic. Select B4, B5, and B6 and inspect their contents in the formula bar.
Will changing the cell format to Number fix text numbers?
Not necessarily. Select a flagged cell and choose Convert to Number from its warning button, or use VALUE in a helper cell to convert recognizable numeric text.
How can I find hidden spaces in a referenced cell?
Select the cell and inspect the formula bar. For numeric text with extra spaces, try =VALUE(TRIM(SUBSTITUTE(B4,CHAR(160)," "))) in a helper cell.
How can I test whether the formula itself works?
In a new worksheet, enter 5 in B5, 4 in B4, and 3 in B6. Enter =B5-B4+B6 in another cell; the result should be 4.




