How to Fill an Excel Formula Every Sixth Row
Question details
The user needs to insert a formula at six-row intervals in a spreadsheet, incrementing its references accordingly while leaving the intervening rows completely blank.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Automating the placement of formulas across spaced intervals (every sixth row) to accommodate specific data layouts or multi-row spilled arrays.
- Observed behavior
- Standard AutoFill populates every consecutive row instead of skipping rows. The user seeks a dynamic array or VBA method to bypass manual copy-pasting for every sixth row.
Evaluate whether your data layout can accommodate a single dynamic spill formula or if you must use a VBA script to insert distinct formulas into hardcoded cells.
Use a Dynamic-Array Formula (Spill Formula)
Leverage modern dynamic array capabilities to generate the spaced output with a single formula, avoiding the need for manual drag-and-drop or AutoFill.
Instead of filling formulas into individual cells, a single array formula can calculate the results and automatically insert the required blank rows between them. This approach is highly efficient and keeps your worksheet clean.
Click on the cell where you want the first formula result to appear.
Enter a dynamic array combination using functions like REDUCE, SEQUENCE, and VSTACK (e.g., =REDUCE(TAKE(input,5),SEQUENCE(100),LAMBDA(p,q,VSTACK(p,TAKE(input+q,5)))) depending on your logic) to generate the data and spacing simultaneously.
Press Enter. The formula will automatically spill down the column, spacing the calculated results exactly as defined in the array logic.

Use a VBA Script with a Step Loop
Write a VBA macro that loops through target rows using the 'Step 6' parameter to insert formulas precisely every sixth row.
Automate Complex Formulas with WPS Spreadsheet
WPS Spreadsheet smoothly handles complex dynamic arrays and VBA macros, allowing you to automate repetitive tasks like filling formulas at specific intervals without hassle.
- 1. Open your file: Launch WPS Spreadsheet and open your existing Excel workbook containing the spaced data.
- 2. Apply Array Formulas: Enter your dynamic array formulas directly into the formula bar; WPS seamlessly processes the output and spills the results.
- 3. Run Macros: Access the Developer tab to open the VBA Editor and execute your Step loops or macro scripts flawlessly.

Frequently Asked Questions
Why does standard AutoFill not work for skipping rows?
The standard drag-and-drop AutoFill increments row references sequentially for every single row. It cannot automatically leave 5 blank rows between formulas unless a highly specific custom pattern is selected and dragged, which is often unreliable for formulas.
How can I avoid the #SPILL! error when using array formulas?
A #SPILL! error occurs when the dynamic array formula does not have enough empty cells below or next to it to display the results. Clear any data, spaces, or formatting in the intervening rows to resolve this.
Can I use the 'Step' function outside of VBA?
No, 'Step' is a specific syntax keyword used exclusively in VBA For loops. However, you can achieve a similar effect in standard spreadsheet formulas using the MOD and ROW functions to evaluate whether a row is an Nth row.




