Subtract the Sum of Cells Above in Excel
Question details
The user wants to subtract the sum of all cells above a row using an Excel formula that can be copied down.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Calculate a value in row 55 minus the total of the values in rows 1 through 54, with a range that expands when copied down.
- Observed behavior
- The desired formula keeps the first row of the SUM range fixed and ends the range immediately above the current row.
Identify the value to subtract from and the cells above it. Choose a separate cell for the result so the formula does not refer to itself.
Subtract an Expanding SUM Range in Excel
Use this formula when the starting value is in column A and you want to display the result in column B.
The reference A$1 fixes the starting row when the formula is copied down. The ending reference A54 adjusts to the row immediately above each new formula.
In Excel, select B55. Keep A55 as the value from which you want to subtract the total.
Type =A55-SUM(A$1:A54) in B55 and press Enter. Excel subtracts the sum of A1:A54 from A55.
Drag the fill handle from B55 down column B. In B56, the formula becomes =A56-SUM(A$1:A55).

Subtract Cells Above with WPS Spreadsheet
Use the same SUM formula in WPS Spreadsheet to subtract the values above a row and copy the calculation down.
- 1. Open your workbook: Open WPS Spreadsheet and select File > Open to choose your workbook.
- 2. Choose a result cell: Select B55, leaving the starting value in A55 and the values to sum in A1:A54.
- 3. Enter the formula: Type =A55-SUM(A$1:A54) in B55 and press Enter.
- 4. Fill down: Drag the fill handle down from B55 to apply the formula to additional rows.

Frequently Asked Questions
Why does Excel report a circular reference for this formula?
If you enter =A55-SUM(A$1:A54) in A55, the formula refers to its own cell. Enter it in B55 instead, or put the starting value in B55 and enter =B55-SUM(A$1:A54) in A55.
What does the dollar sign in A$1 do?
It fixes row 1 when you copy the formula down. The column is not fixed, so it can change if you copy the formula sideways.
What happens to the SUM range when I copy the formula down?
When =A55-SUM(A$1:A54) is copied from B55 to B56, it becomes =A56-SUM(A$1:A55). The range still starts at row 1 and ends immediately above the current row.
Can I put the result in the same column as the values above?
Yes. For example, put the starting value in B55 and enter =B55-SUM(A$1:A54) in A55. If you copy that formula down column A, the SUM range will include earlier formula results in column A.




