Formula Errors

Fix Excel #VALUE! Errors in a Subtraction and Addition Formula

John WilsonJohn Wilson Nov 25, 2026 869 views

Question details

Find and correct values that cause the formula =B5-B4+B6 to return #VALUE!.

Fix the Excel #VALUE! Error in a Subtraction and Addition Formula
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.
Before you start

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.

Solution 1Recommended

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.

1
Inspect the source cells

Select B4, B5, and B6 one at a time and check the formula bar for unexpected text, spaces, or error values.

2
Correct invalid entries

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.

3
Convert text numbers

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.

4
Recheck the formula

In the result cell, enter =B5-B4+B6. With 5 in B5, 4 in B4, and 3 in B6, the result should be 4.

Correct the values referenced by the formula
Check existing errors: A referenced cell containing an error can pass that error to the result. Resolve the source error rather than assuming every error is caused by text.
Work with formulas in WPS Spreadsheet

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. 1. Open the workbook: Open WPS Spreadsheet and use Open to select the Excel workbook.
  2. 2. Check the inputs: Select B4, B5, and B6 and inspect the formula bar. Correct any text, unwanted symbols, or existing errors.
  3. 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. 4. Recalculate: Enter =C5-C4+C6 in the result cell, or use =B5-B4+B6 if you corrected the original cells directly.
Inspect and correct values that cause formula errorsUse VALUE and TRIM to clean recognizable text numbersOpen and edit Microsoft Excel XLS and XLSX filesWork in a familiar spreadsheet interface
microsoft office alternative - wps office

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.