How to Extract Every 3rd Row in Excel
In this article
To extract every 3rd row in Excel, use a formula that returns only rows where the row number is divisible by 3, then filter or copy the results. The cleanest approach is a helper column with =MOD(ROW(),3)=0 to flag every third row, followed by AutoFilter or a dynamic array formula such as =FILTER(A2:A100,MOD(ROW(A2:A100),3)=0). This works in Excel for Microsoft 365, Excel 2021, and Excel 2019 (FILTER requires Microsoft 365 or Excel 2021).
This guide covers both the manual helper-column method and the modern formula method, plus how to copy the extracted rows to a new location without breaking references.
What You'll Need
- Excel for Microsoft 365, Excel 2021, Excel 2019, or Excel 2016 (FILTER requires Microsoft 365 or Excel 2021).
- A worksheet with data arranged in rows, with a header row if you plan to use AutoFilter.
- An empty column to the right of your data for the helper formula (or an empty area if you use a dynamic array formula).
Step-by-Step
Method 1: Helper column plus AutoFilter (works in all Excel versions)
- Click the header of the first empty column to the right of your data. For example, if your data ends in column F, click cell G1.
- Type a header such as
Every3rdin G1 and press Enter. - In G2, enter the formula
=MOD(ROW(),3)=0. This returns TRUE for rows 3, 6, 9, and so on, and FALSE for all other rows. - Press Enter. The cell shows TRUE or FALSE.
- Copy G2 down to the last row of your data. You can double-click the fill handle (the small square at the bottom-right of the cell) to fill down automatically, or drag it.
- Select your entire data range including the helper column, then go to the Data tab and click Filter. Drop-down arrows appear in the header row.
- Click the drop-down arrow in the helper column header, uncheck FALSE (or uncheck everything except TRUE), and click OK. Only every third row remains visible.
- Select the visible rows, copy them (Ctrl+C), and paste them into a new sheet or location. Excel pastes only the visible cells when you copy a filtered range.
- Delete the helper column from the original sheet when you are done.
Method 2: Dynamic array FILTER formula (Microsoft 365 and Excel 2021)
- Click an empty cell where you want the extracted rows to appear, such as H2 on the same sheet or A2 on a new sheet.
- Enter a formula like
=FILTER(A2:F100,MOD(ROW(A2:F100),3)=0). Replace A2:F100 with your actual data range. - Press Enter. Excel spills the every-third-row results into the cells below and to the right automatically.
- If you want to start counting from row 1 instead of row 3, change the divisor logic: use
=FILTER(A2:F100,MOD(ROW(A2:F100)-2,3)=0)to return rows 2, 5, 8, and so on. - To copy the spilled results as static values, select the spilled range, press Ctrl+C, then right-click the destination and choose Paste Values.
Method 3: Extract every 3rd row starting from a specific row
- Decide which row is your first target (for example, row 2).
- In a helper column, enter
=MOD(ROW()-2,3)=0in the first data row and fill down. This flags rows 2, 5, 8, and so on. - Filter on TRUE as in Method 1, or use
=FILTER(A2:F100,MOD(ROW(A2:F100)-2,3)=0)in Microsoft 365 or Excel 2021.
Common Mistakes
- Counting from the header row. If row 1 is a header,
=MOD(ROW(),3)=0flags rows 3, 6, 9. If you want to start at the first data row (row 2), offset the formula as shown in Method 3. - Forgetting to fill the helper formula all the way down. A partially filled column filters incorrectly. Double-click the fill handle or drag to the last row.
- Pasting filtered data without filtering first. Copying an unfiltered range pastes hidden rows too. Apply the filter, then copy only visible cells.
- Using FILTER in an older Excel version. FILTER is not available in Excel 2019 or earlier; use the helper-column method instead.
- Leaving the helper column in the final output. Delete it after copying the results so your extracted table stays clean.
Tips
- Use
=MOD(ROW(),3)=1to extract rows 1, 4, 7, and so on, or=MOD(ROW(),3)=2for rows 2, 5, 8. - If your data has blank rows, filter on TRUE still works because the formula checks row position, not cell content.
- For large datasets, Method 2 (FILTER) is faster and updates automatically when the source data changes.
- Convert your source range to an Excel Table (Ctrl+T) so formulas and filters expand automatically as you add rows.
- To extract every nth row with a variable n, put the number in a cell (for example, K1) and use
=MOD(ROW()-1,$K$1)=0.
Troubleshooting
- The filter shows no TRUE values. Check that the formula references the correct row and that you filled it down. Also confirm the cell format is General, not Text.
- FILTER returns #CALC! or #VALUE!. The range sizes in the formula must match, and the workbook must be saved in a format that supports dynamic arrays (.xlsx).
- Copied rows include hidden ones. Use Home > Find & Select > Go To Special > Visible cells only before copying, or copy directly from the filtered view.
- Pasted results show #REF! errors. Use Paste Values instead of a normal paste to avoid broken references.
- Every third row looks wrong after sorting. The helper formula recalculates on sort, so re-apply the filter after sorting the source data.
Frequently Asked Questions
Can I extract every 3rd row without a helper column?
Yes, in Microsoft 365 or Excel 2021 use the FILTER function with MOD and ROW. In older versions, a helper column is the simplest reliable method.
Does this work on Excel for Mac?
Yes. The formulas and filter steps are the same on Excel for Mac, though menu labels may differ slightly by version.
How do I extract every 3rd row starting from row 1?
Use =MOD(ROW(),3)=1 in a helper column, or =FILTER(A2:F100,MOD(ROW(A2:F100),3)=1) in Microsoft 365 or Excel 2021.
Will the extracted rows update if I change the source data?
With the FILTER method, yes, the results update automatically. With the helper-column method, you need to re-copy the filtered rows after changes.
Can I extract every 3rd row from multiple columns at once?
Yes. Apply the helper formula to one column and filter the whole table, or use FILTER with a multi-column range such as A2:F100.