Subtract Multiple Excel Ranges from One Cell with SUM
Question details
Subtract the combined values of several noncontiguous ranges from one cell.

- 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.
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.
Subtract the sum of separate ranges from B41
Use SUM with each noncontiguous range as a separate argument.
In Excel, click an empty cell where you want the result to appear.
Type =B41-SUM(B13:B16,B19:B20,B23:B26,B29:B36) and press Enter.
If Excel uses semicolons as argument separators, enter =B41-SUM(B13:B16;B19:B20;B23:B26;B29:B36) instead.
Click the formula cell and review the ranges in the formula bar. Change them if your source values are in different cells.

Subtract multiple ranges in WPS Spreadsheets
Use the same SUM formula in WPS Spreadsheets to subtract several separate ranges from a single cell.
- 1. Open your workbook: Open WPS Spreadsheets and choose Open to select your workbook.
- 2. Choose a result cell: Click an empty cell where you want to display the calculation.
- 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. Review and save: Check the cell references in the formula bar, then choose Save to keep your changes.

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.




