Formula Errors

Fix Excel AutoFill Skipping Rows in a Repeating Formula Pattern

Aamir Naveed AkramAamir Naveed Akram Nov 22, 2026 868 views

Question details

The user needs to copy a repeating formula down a report without skipping source rows.

Fix Excel AutoFill Skipping Rows in a Repeating Formula Pattern
Product
Microsoft Excel
Device & OS
not provided
Scenario
A report alternates between two columns on a Database worksheet, using each source row for two consecutive report rows.
Observed behavior
Excel AutoFill infers an unintended sequence when formulas with alternating source references are copied down.
Before you start

Check the source sheet name, the two source columns, and the first source row. The example below uses Database columns R and AV, starts with source row 3, and places the first formula in report row 4.

Solution 1Recommended

Use INDEX to control the alternating source references

Use one formula when each source row should supply two consecutive report rows, first from column R and then from column AV.

The formula calculates the source row from the report row and uses an odd-or-even check to alternate between columns R and AV. It returns a blank when the referenced source cell is blank.

1
Enter the formula

On the report sheet, select the destination cell in row 4 and enter: =IF(INDEX(Database!R:AV,INT(ROW(A4)/2+1),1+IF(ISODD(ROW(A4)),30,0))="","",INDEX(Database!R:AV,INT(ROW(A4)/2+1),1+IF(ISODD(ROW(A4)),30,0)))

2
Copy the formula down

Select the formula cell and drag its fill handle down the report. The references should follow Database!R3, Database!AV3, Database!R4, Database!AV4, and so on.

3
Check the results

Compare the first few report cells with columns R and AV on the Database sheet. If your sheet name, columns, or starting rows differ, adjust the formula before filling it down.

Use INDEX to control the alternating source references
Hidden rows are still included: INDEX reads source cells whether their rows are hidden or filtered. Strikethrough formatting also does not exclude a row; use an explicit status field and filter the source data by that field if those records should be omitted.
Work with formulas in WPS Spreadsheets

Build the alternating formula in WPS Spreadsheets

Use INDEX, ROW, and ISODD in WPS Spreadsheets to control which source row and column each report cell uses, then fill the formula down.

  1. 1. Open the workbook: Open WPS Spreadsheets, select Open, and choose the workbook containing the Database and report sheets.
  2. 2. Enter the formula: On the report sheet, select the destination cell in row 4 and enter: =IF(INDEX(Database!R:AV,INT(ROW(A4)/2+1),1+IF(ISODD(ROW(A4)),30,0))="","",INDEX(Database!R:AV,INT(ROW(A4)/2+1),1+IF(ISODD(ROW(A4)),30,0)))
  3. 3. Fill and verify: Drag the cell's fill handle down, then compare the results with Database!R3, Database!AV3, Database!R4, and Database!AV4.
  4. 4. Save the workbook: Select Menu > Save or Save As and choose the Excel XLSX format if you need to continue using the file in Excel.
Control alternating source references with a single formulaOpen and save Microsoft Excel XLSX filesUse a familiar spreadsheet interface and fill handleWork with spreadsheet formulas in a free office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does AutoFill skip source rows when I drag alternating formulas?

AutoFill may infer a sequence from the selected formulas rather than repeat the intended pair of references. Enter one INDEX formula that calculates the source row and column, then drag its fill handle down.

Which cells does the example formula reference first?

When entered in report row 4 and filled down, it references Database!R3, Database!AV3, Database!R4, and Database!AV4 in that order.

Will the formula exclude hidden or filtered Database rows?

No. INDEX still reads hidden and filtered rows. Add a status column to identify records to include, then create the report from data filtered by that status.

Can the formula automatically ignore struck-through rows?

The formula does not inspect strikethrough formatting. Mark those records with a value in a status column and use that value to filter the data included in the report.

Can I use the same formula if my source columns are different?

Yes. Change Database!R:AV to cover your source columns and adjust the two column positions used by INDEX. Also adjust the row calculation if your report or source starts on a different row.