Formula Errors

Change an Excel SUM Range When Copying a Formula Across Columns

John WilsonJohn Wilson Nov 22, 2026 871 views

Question details

The user wants a SUM formula to target the appropriate cells when it is copied across columns, while controlling which references change.

Change an Excel SUM Range When Copying a Formula Across Columns
Product
Microsoft Excel
Device & OS
not provided
Scenario
A SUM formula needs to be filled across a row so that each copy totals the corresponding column, or a specified range remains fixed.
Observed behavior
Relative references change when a formula is copied, while INDIRECT can complicate filling formulas across columns.
Before you start

Identify the first range to total and whether each copied formula should use its own column or the same fixed range. Check that the destination cells are available for the formulas.

Solution 1Recommended

Copy a SUM Formula Using Relative References

Use relative references when each formula should total the corresponding column.

1
Enter the first formula

In cell A5, enter =SUM(A1:A4) to total the values in A1 through A4.

2
Fill across the row

Select A5 and drag the fill handle at its lower-right corner across the destination cells. You can also copy A5 and paste it into those cells.

3
Check the copied formulas

Select B5 and look at the formula bar. It should show =SUM(B1:B4); each copy adjusts its relative column references.

Copy a SUM Formula Using Relative References
Formula text changes: Copying adjusts the references in the formula text. It preserves the formula's structure, not the exact text.
Work with SUM formulas in WPS

Fill SUM Formulas Across Columns in WPS Spreadsheets

Use relative references in WPS Spreadsheets to total each column as you fill a formula across, or add dollar signs to keep a range fixed.

  1. 1. Open your workbook: Open WPS Spreadsheets and select Open to choose your workbook.
  2. 2. Enter a SUM formula: Select A5 and enter =SUM(A1:A4) to total the first column.
  3. 3. Fill across: Select A5 and drag its fill handle across the cells where you want corresponding column totals.
  4. 4. Verify a formula: Select B5 and check the formula bar for =SUM(B1:B4). Use dollar signs, as in =SUM($A$1:$A$4), if the range must remain fixed.
Fill SUM formulas across columns with adjusted relative referencesUse absolute references to keep a SUM range fixedOpen and edit Microsoft Excel XLSX and XLS filesWork in a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does my SUM formula change when I copy it?

Excel adjusts relative references based on the new location. For example, copying =SUM(A1:A4) from A5 to B5 changes it to =SUM(B1:B4).

How do I keep the same range in every copied formula?

Add dollar signs to the range in the formula bar, as in =SUM($A$1:$A$4), before copying the formula.

Can I move a formula without copying it?

Select the formula cell, choose Cut, and paste it into the destination. Moving normally preserves its references, though Excel can update references when cells are moved.

Do I need INDIRECT to sum corresponding columns?

Usually not. Enter =SUM(A1:A4) in A5 and fill it across; relative references will adjust for each column.