Fill Excel Formulas Across Columns While Changing Source Rows
Question details
Fill formulas across a table while keeping a source column or range fixed and advancing through source rows.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants to copy a formula across cells without manually changing each reference to a value in a fixed source column.
- Observed behavior
- Each cell filled to the right should return the next row from the fixed source range.
Identify the source sheet and range, the first destination cell, and the direction in which you want to fill. The example uses Sheet4!D2:D50 as the source and A3 as the first destination cell.
Use INDEX and COLUMN to advance source rows when filling right
Use this method to return consecutive rows from a fixed source range as you fill a formula across columns.
INDEX returns a value from the fixed range, while COLUMN calculates a row position that increases as the formula moves right.
Select A3 on the destination sheet and enter =INDEX(Sheet4!$D$2:$D$50,COLUMN(A3)-COLUMN($A3)+1).
Select A3 and drag its fill handle to the right. The first cell returns Sheet4!D2, the next returns D3, and so on.
If your source or starting cell differs, edit the formula in the first destination cell. For example, if it starts in C3, replace COLUMN(A3)-COLUMN($A3) with COLUMN(C3)-COLUMN($C3), then fill right.

Use a mixed reference when filling down
Use a mixed reference if the destination cells run down a column rather than across a row.
Fill formulas across a fixed source range in WPS Spreadsheet
Use INDEX, COLUMN, and mixed references in WPS Spreadsheet to pull consecutive source rows into cells across a table.
- 1. Open the workbook: Open WPS Spreadsheet and select Open to choose your workbook.
- 2. Check the source: Open the Sheet4 tab and confirm that the values you need are in D2:D50, or identify your own source range.
- 3. Enter the formula: Select A3 on the destination sheet and enter =INDEX(Sheet4!$D$2:$D$50,COLUMN(A3)-COLUMN($A3)+1), adjusting the sheet, range, and starting cell if needed.
- 4. Fill across: Select A3 and drag the fill handle to the right to return successive values from the source range.

Frequently Asked Questions
Why doesn't $D2 advance to the next row when I fill right?
A relative row changes when a formula is filled up or down, not left or right. Use INDEX with COLUMN to increase the source row position as you fill across.
What do the dollar signs in $D$2:$D$50 do?
They fix both the columns and rows of the source range, so the range remains D2:D50 when you copy the formula to other cells.
How do I adapt the formula if my first destination cell is C3?
Enter =INDEX(Sheet4!$D$2:$D$50,COLUMN(C3)-COLUMN($C3)+1) in C3, then drag the fill handle to the right.
How many cells can I fill with the D2:D50 example?
The range contains 49 rows, so the formula can return 49 values across. To return more, extend the fixed range in the formula before filling.




