Function Problems

Sum All Values Above the Current Row in Excel

Kushani NimanthikaKushani Nimanthika Dec 2, 2026 868 views

Question details

The user wants a formula that sums values above the current row and can be copied downward.

Sum All Values Above the Current Row in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Values are listed in a column, and each result should include the values in preceding rows.
Observed behavior
The starting row should remain fixed while the end of the summed range moves down with the formula.
Before you start

Identify the column containing the values and the first row to include. Place results in a separate column so the formula does not include its own cell.

Solution 1Recommended

Sum preceding rows with a mixed reference in Excel

Use this formula when values are in column A and you want a result for each row in column B.

1
Select the first result cell

Click cell B6 to calculate the sum of values in column A above row 6.

2
Enter the SUM formula

Type =SUM(A$1:A5) in B6 and press Enter. The $ keeps the starting row fixed at row 1.

3
Copy the formula down

Drag the fill handle at the lower-right corner of B6 downward. In B7, the formula becomes =SUM(A$1:A6), including the values above row 7.

Sum preceding rows with a mixed reference in Excel
Include the current row instead: For a running total that includes the value on the result row, enter =SUM(A$1:A5) in B5 and copy it downward.
WPS Spreadsheets

Sum preceding rows in WPS Spreadsheets

Use the same SUM formula and mixed reference in WPS Spreadsheets to calculate values above each result row.

  1. 1. Open your spreadsheet: Open WPS Spreadsheets and select File > Open to choose your workbook.
  2. 2. Select a result cell: With values in column A, click B6 to sum the values above row 6.
  3. 3. Enter the formula: Type =SUM(A$1:A5) in B6 and press Enter.
  4. 4. Fill the formula down: Drag the fill handle from B6 down the result column to update the ending row in each formula.
Copy a mixed-reference SUM formula down a columnOpen and save Microsoft Excel XLSX filesUse familiar spreadsheet formulas and fill controls
microsoft office alternative - wps office

Frequently Asked Questions

What does the dollar sign in A$1 do?

The dollar sign fixes row 1 when you copy the formula. The column reference remains relative, so it can change if you copy the formula sideways.

How do I include the value in the current row?

Enter =SUM(A$1:A5) in B5 and drag the fill handle down. Each result includes the value in column A on the same row.

Can I put the formula in the same column as the values?

A single total can be placed below the values, such as =SUM(A1:A5) in A6. For copied row-by-row results, use a separate column to avoid including a formula in its own range.

What if my values start on row 2?

Change the fixed starting reference to A$2. For example, enter =SUM(A$2:A5) in B6 to sum rows 2 through 5, then copy it down.