Formula Errors

Fill Excel Formulas Across Columns While Changing Source Rows

Chanuka GeekiyanageChanuka Geekiyanage Nov 20, 2026 869 views

Question details

Fill formulas across a table while keeping a source column or range fixed and advancing through source rows.

Fill Excel Formulas Across Columns While Changing 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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the formula

Select A3 on the destination sheet and enter =INDEX(Sheet4!$D$2:$D$50,COLUMN(A3)-COLUMN($A3)+1).

2
Fill to the right

Select A3 and drag its fill handle to the right. The first cell returns Sheet4!D2, the next returns D3, and so on.

3
Adjust the references

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 INDEX and COLUMN to advance source rows when filling right
Stay within the source range: D2:D50 contains 49 rows, so fill the example across no more than 49 cells. Extend the fixed source range if you need more results.
WPS Spreadsheet

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. 1. Open the workbook: Open WPS Spreadsheet and select Open to choose your workbook.
  2. 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. 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. 4. Fill across: Select A3 and drag the fill handle to the right to return successive values from the source range.
Fill across while advancing through a fixed source columnUse familiar spreadsheet formulas and the fill handleOpen and edit Microsoft Excel XLSX filesWork with spreadsheets in a free office suite
microsoft office alternative - wps office

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.