Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel: Split Every Other Row? Easy Methods

· 7 min read · Home Tech

In this article
  1. Why Split Every Other Row?
  2. Method 1: Using the MOD Function and Filter
  3. Method 2: Using Go To Special (for Blank Rows)
  4. Method 3: Using a Helper Column with ISODD/ISEVEN
  5. Method 4: Using a Formula to Extract Rows to a New Location
  6. Method 5: Using the FILTER Function (Excel 365)
  7. Common Mistakes and Troubleshooting
  8. Frequently Asked Questions

This guide shows you how to separate every other row in Excel, whether you want to extract odd or even rows into a new list, delete them, or format them differently. The most reliable methods use Excel's built-in filtering, the MOD function, or the Go To Special feature, and all are explained step by step below.

Why Split Every Other Row?

Splitting every other row is a common task when your data alternates between two types of entries. For example, a spreadsheet might have a product name in one row and its price in the next, or a schedule with arrival times on odd rows and departure times on even rows. Extracting every other row lets you work with one set of data without disturbing the original layout. It is also used to clean up data that was merged from multiple sources, where every second row contains irrelevant or duplicate information.

You might also want to split rows to compare two groups, to create a chart from only one subset, or to send a list of names to a mail merge. The methods below give you flexibility: you can copy the rows to a new location, delete them, or simply highlight them for review.

Method 1: Using the MOD Function and Filter

This is the most flexible method because it lets you select odd or even rows and then copy, delete, or format them. It works by assigning a number to each row based on its position, then filtering to show only the rows you want.

  1. Insert a new column to the right of your data (or use an empty column).
  2. In the first data row of that column, enter the formula: =MOD(ROW(),2)
  3. Copy the formula down to cover all rows with data. The formula returns 0 for even-numbered rows and 1 for odd-numbered rows.
  4. Select the new column and turn on the filter (Data tab > Filter).
  5. Click the filter arrow in the new column and uncheck either 0 or 1, depending on which rows you want to see.
  6. Now only the rows you want are visible. You can copy them to a new sheet, delete them, or format them.

If your data starts on row 1, the MOD formula is straightforward. If your data starts on row 5, you might want to adjust the formula to =MOD(ROW()-4,2) so that the first data row is considered row 1. This makes your selection more intuitive.

Method 2: Using Go To Special (for Blank Rows)

If you already have blank rows separating your data, you can use the Go To Special feature to select the blank cells and then delete them, effectively splitting the data into contiguous blocks. This is not for extracting odd/even rows, but it is useful when your data has alternating blank rows that you want to remove.

  1. Select the entire range of your data, including the blank rows.
  2. Press F5 (or Ctrl+G) and click “Special…”.
  3. Choose “Blanks” and click OK. This selects all blank cells in the range.
  4. Right-click any selected blank cell and choose “Delete…”.
  5. In the dialog, select “Entire row” and click OK.

This method removes all blank rows, so your data becomes contiguous. It is not the same as extracting every other row, but it is a quick fix if you have a pattern of blank rows that you want to eliminate.

Method 3: Using a Helper Column with ISODD/ISEVEN

Excel’s ISODD and ISEVEN functions return TRUE or FALSE, which can be used in a filter or with conditional formatting. This is similar to the MOD function but can be more readable.

  • Enter =ISODD(ROW()) in a helper column to get TRUE for odd rows.
  • Enter =ISEVEN(ROW()) to get TRUE for even rows.
  • Then filter on TRUE or FALSE as described in Method 1.

This method is particularly nice if you want to use conditional formatting to highlight every other row. Select your data range, go to Home > Conditional Formatting > New Rule, choose “Use a formula to determine which cells to format”, and enter =ISODD(ROW()). Then set a fill color. This way you can visually separate rows without moving any data.

Method 4: Using a Formula to Extract Rows to a New Location

If you want to create a new list that contains only every other row without using filters, you can use formulas. This is useful when you want the result to update automatically if you change the original data.

Suppose your data is in column A, rows 1 to 10. To extract the odd rows (1, 3, 5, 7, 9) into column C, enter this formula in C1 and drag down:

=INDEX(A:A, ROW()*2-1)

For even rows, use:

=INDEX(A:A, ROW()*2)

This works because ROW()*2-1 gives 1, 3, 5, … and ROW()*2 gives 2, 4, 6, … when you fill down. If your data starts on a different row, adjust the formula accordingly. For example, if data starts on row 2, use =INDEX(A:A, ROW()*2) for the first even row, etc.

This method is powerful because it creates a dynamic link to the original data. However, it only works well for single columns. For multiple columns, you can use the same INDEX approach with a column offset, or use the FILTER function if you have Excel 365.

Method 5: Using the FILTER Function (Excel 365)

If you have Excel 365 or Excel 2021, the FILTER function is the cleanest way to split every other row. It returns an array of the rows that meet a condition, and it updates automatically.

  1. Create a helper column with the formula =MOD(ROW(),2) as in Method 1.
  2. In a new location, enter: =FILTER(A1:B10, MOD(ROW(A1:B10),2)=1) for odd rows, or =FILTER(A1:B10, MOD(ROW(A1:B10),2)=0) for even rows.
  3. Press Enter. Excel spills the results into adjacent cells.

Note that the FILTER function requires the row numbers to be relative to the start of the data. The formula above works if your data starts in row 1. If it starts in row 5, you need to adjust the MOD part to =MOD(ROW(A1:B10)-4,2) to align the first data row with 1.

Common Mistakes and Troubleshooting

  • Off-by-one errors: The most common mistake is misidentifying which rows are odd and which are even. Always check the row numbers in your sheet. If you are not sure, use the MOD function to display 0 or 1 and verify.
  • Filtering hides rows but doesn’t delete them: If you copy visible rows after filtering, only the visible rows are copied. But if you delete them, make sure you have a backup because the deletion affects the entire row, not just the visible cells.
  • Using the wrong formula for the starting row: If your data starts on row 3, =MOD(ROW(),2) will return 1 for row 3 (odd), but you might want row 3 to be considered the first row. Adjust the formula to =MOD(ROW()-2,2) to make row 3 return 0.
  • Dragging formulas incorrectly: When using INDEX with ROW(), make sure you drag down, not across, and that the reference to column A is absolute if you copy across columns.
  • FILTER function not available: If you get a #NAME? error, your Excel version does not support FILTER. Use the MOD and filter method instead.

Frequently Asked Questions

How do I delete every other row in Excel?

To delete every other row, first add a helper column with the formula =MOD(ROW(),2) to mark rows as 0 or 1. Then filter on that column to show only the rows you want to delete (e.g., filter on 0 to see even rows). Select all visible rows, right-click, and choose “Delete row”. Finally, clear the filter and delete the helper column. Always save a backup before deleting.

Can I split every other row without a helper column?

Yes, you can use the FILTER function in Excel 365 with a formula that directly references the row numbers, like =FILTER(A1:B10, MOD(ROW(A1:B10),2)=1). This does not require a visible helper column. Alternatively, you can use the Go To Special method if you have blank rows, but that is for a different scenario.

How do I copy every other row to a new sheet?

Use the helper column and filter method: add a column with =MOD(ROW(),2), filter to show only the rows you want, select the visible data, press Ctrl+C, go to the new sheet, and paste. Then clear the filter on the original sheet. This copies only the visible rows.

What if my data has headers? How do I split every other row starting from row 2?

If your data starts in row 2 (row 1 is headers), adjust the formula to =MOD(ROW()-1,2) so that row 2 returns 0 (even) and row 3 returns 1 (odd). Then filter on the helper column. This way the header row is not included in the split.

Can I split every other row in Google Sheets the same way?

Yes, the MOD function and filter work identically in Google Sheets. The FILTER function also exists in Google Sheets, but the syntax is slightly different: =FILTER(A1:B10, MOD(ROW(A1:B10),2)=1) works the same. The main difference is that Google Sheets uses the same formula syntax, so you can apply the same methods.

Why does my MOD formula return 1 for row 2?

MOD(2,2) returns 0, not 1. If you are seeing 1 for row 2, you might have accidentally typed =MOD(ROW(),2)+1 or the row number is not what you think. Check the actual row number by looking at the row header. Also, ensure the formula is not referencing a different cell that contains a value other than a row number.