Function Problems

Copy an Excel INDEX Formula Across Columns and Increment References

Steve KSteve K Dec 2, 2026 869 views

Question details

Automatically increase the INDEX column number when a formula is copied to the right.

Copy an Excel INDEX Formula Across Columns and Increment References
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet looks up a value in a food database and needs to return successive source columns as the formula is copied across.
Observed behavior
The desired result is for the INDEX column number to advance from 7 to 8, 9, and onward in adjacent columns.
Before you start

Check that the Food Database sheet contains lookup values in A3:A500 and data in A3:ZZ500. In the destination sheet, confirm that B3 contains the lookup value, C3 contains the multiplier, and D3 is the first output cell.

Solution 1Recommended

Use COLUMN to increment the INDEX column number

Use this formula when the first result belongs in D3 and should come from the seventh column of the source range.

COLUMN(D3)-COLUMN($D3)+7 returns 7 in D3. When copied right, the first reference moves while the anchored column D remains fixed, producing 8, 9, and so on.

MATCH finds the first exact match in the database's column A. INDEX returns the value from the corresponding row and calculated column, and the formula multiplies it by C3.

1
Enter the formula

Select D3 and enter =IFERROR(SUM(INDEX('Food Database'!$A$3:$ZZ$500,MATCH($B3,'Food Database'!$A$3:$A$500,0),COLUMN(D3)-COLUMN($D3)+7)*$C3),"").

2
Copy across

Select D3 and drag its fill handle to the right across the desired output columns. The INDEX column number increases by one in each copied cell.

3
Check the results

Click the copied cells and inspect their formulas in the formula bar. Verify that the results correspond to columns G, H, and I of the Food Database sheet.

Use COLUMN to increment the INDEX column number
Blank results: IFERROR returns a blank for errors, including a missing match or an INDEX column number outside the source range. Remove IFERROR temporarily if you need to inspect an error.
Work with formulas in WPS Spreadsheets

Increment INDEX References Across Columns in WPS Spreadsheets

Open your workbook in WPS Spreadsheets and use the same INDEX, MATCH, and COLUMN formula to return successive database columns as you fill right.

  1. 1. Open the workbook: In WPS Spreadsheets, use Open to select the workbook containing the Food Database sheet.
  2. 2. Enter the formula: Select D3 on the destination sheet and enter =IFERROR(SUM(INDEX('Food Database'!$A$3:$ZZ$500,MATCH($B3,'Food Database'!$A$3:$A$500,0),COLUMN(D3)-COLUMN($D3)+7)*$C3),"").
  3. 3. Fill to the right: Select D3 and drag the fill handle across the columns where you want results.
  4. 4. Save the workbook: Use File > Save or Save As to save the updated workbook in an Excel-compatible format.
Fill an INDEX formula across columns with an automatically incrementing column numberOpen and edit Microsoft Excel XLSX and XLS workbooksUse familiar spreadsheet formulas and a familiar worksheet interfaceWork with spreadsheets using the free WPS Office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does the INDEX column number increase when I copy the formula?

In COLUMN(D3)-COLUMN($D3)+7, D3 is a relative reference that moves to E3, F3, and so on when copied right. The column in $D3 stays fixed, so the result increases by one.

How do I start with a different source column?

Change the final 7 in COLUMN(D3)-COLUMN($D3)+7 to the desired position within the INDEX range. For example, use 5 to start with column E when the range begins in column A.

What if my first formula is not in D3?

Replace D3 and $D3 in the COLUMN expression with the first output cell and its column-anchored version. For example, a formula starting in F3 can use COLUMN(F3)-COLUMN($F3)+7.

Why does the formula return a blank?

IFERROR hides formula errors by returning an empty string. Check that B3 appears in Food Database!A3:A500 and that the calculated INDEX column is within A3:ZZ500; remove IFERROR temporarily to see the underlying error.