Fix Excel AutoFill Skipping Rows in a Repeating Formula Pattern
Question details
The user needs to copy a repeating formula down a report without skipping source rows.

- 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.
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.
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.
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)))
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.
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 helper columns to build the source references
Use helper columns when you want to inspect the calculated source row and column numbers separately.
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. Open the workbook: Open WPS Spreadsheets, select Open, and choose the workbook containing the Database and report sheets.
- 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. 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. 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.

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.




