Formula Errors

Subtract Multiple Excel Ranges from One Cell with SUM

John WilsonJohn Wilson Dec 2, 2026 868 views

Question details

Subtract the combined values of several noncontiguous ranges from one cell.

Subtract Multiple Excel Ranges from One Cell with SUM
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet calculation needs to subtract values in multiple separate ranges from the value in cell B41.
Observed behavior
The desired result is B41 minus the sum of all values in the specified ranges.
Before you start

Check that B41 and the referenced ranges contain the intended numeric values and no error values. If any referenced cells are merged, remember that the value is stored in the top-left cell of the merged area.

Solution 1Recommended

Subtract the sum of separate ranges from B41

Use SUM with each noncontiguous range as a separate argument.

1
Select the result cell

In Excel, click an empty cell where you want the result to appear.

2
Enter the formula

Type =B41-SUM(B13:B16,B19:B20,B23:B26,B29:B36) and press Enter.

3
Adjust the separators if needed

If Excel uses semicolons as argument separators, enter =B41-SUM(B13:B16;B19:B20;B23:B26;B29:B36) instead.

4
Check the references

Click the formula cell and review the ranges in the formula bar. Change them if your source values are in different cells.

Subtract the sum of separate ranges from B41
Keep ranges as separate arguments: Do not join the ranges with plus signs inside SUM unless you intend to use array arithmetic. Error values in referenced cells can cause the formula to return an error.
Calculate with WPS Spreadsheets

Subtract multiple ranges in WPS Spreadsheets

Use the same SUM formula in WPS Spreadsheets to subtract several separate ranges from a single cell.

  1. 1. Open your workbook: Open WPS Spreadsheets and choose Open to select your workbook.
  2. 2. Choose a result cell: Click an empty cell where you want to display the calculation.
  3. 3. Enter the formula: Type =B41-SUM(B13:B16,B19:B20,B23:B26,B29:B36) and press Enter. If your settings require semicolons, use them instead of commas.
  4. 4. Review and save: Check the cell references in the formula bar, then choose Save to keep your changes.
Sum noncontiguous ranges in one formulaOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interfaceWork with formulas in the free WPS Office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel reject commas in my formula?

Your regional settings may use semicolons as argument separators. Try =B41-SUM(B13:B16;B19:B20;B23:B26;B29:B36).

Can I add another range to the calculation?

Yes. Click the formula cell and add the range as another SUM argument, separated by a comma or semicolon. For example, add ,B38:B40 before the closing parenthesis if your Excel uses commas.

Why does the formula return an error?

Check B41 and each referenced range for error values. Also verify the cell references and use the argument separator accepted by your Excel settings.

Do merged cells affect the result?

They can. A merged area's value is stored in its top-left cell, so make sure the formula references that cell when it contains a value you want to include.