How to Copy Alternate Rows in Excel (4 Ways)

We’ll use the following sample dataset to copy alternate rows from it.

Sample Data

Method 1 – Hold the Ctrl Key and Select to Copy Alternate Rows in Excel

Steps:

  • Hold your Ctrl key.
  • Select every second row. You can choose individual cells or the entire row (by clicking on the row number on the left).

Hold the Ctrl Key

  • Press Ctrl + C.

Hold the Ctrl Key

  • Paste the selection anywhere you want.

Hold the Ctrl Key


Method 2 – Apply the Go to Special Option to Copy Alternate Rows in Excel

Steps:

  • Enter a column next to your data set.
  • Type ‘X’ in the first row and leave the second row blank.

Apply the Go to Special Option to Copy Alternate Rows in Excel

  • Use the AutoFill tool to fill in how many cells you need to copy. This is done by selecting the first two cells and dragging down.
  • Select all the cells in the column.

Apply the Go to Special Option to Copy Alternate Rows in Excel

  • From the Editing option, select the Find & Select option.
  • Choose the Go To Special command.

Apply the Go to Special Option to Copy Alternate Rows in Excel

  • From the box, click on the Blanks option.
  • Press Enter.

Apply the Go to Special Option to Copy Alternate Rows in Excel

  • Only the blank cells get selected.

Apply the Go to Special Option to Copy Alternate Rows in Excel

  • To delete the blank cells, right-click and select Delete.

Apply the Go to Special Option to Copy Alternate Rows in Excel

  • Click on the Entire row option.
  • Press the Enter key.

Apply the Go to Special Option to Copy Alternate Rows in Excel

  • You will get all the alternate rows. You can copy them and paste them anywhere you want.

Method 3 – Use a Formula and the Filter Option to Copy Alternate Rows in Excel

Steps:

  • Use the following formula in cell D5.
=MOD(ROW(A1),2)=0

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • It will give your result as FALSE.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • Drag the formula down. We get alternating TRUE-FALSE values.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • Select the range and click on the Data tab.
  • Select the Filter option.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • Click on the Filter option.
  • Unselect FALSE.
  • Press the Enter key.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • All rows that don’t contain the value TRUE in that column will be hidden.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • Copy the cell value from the formula bar and paste it into the respective cell in the result column.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • AutoFill the rest of the cells.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • From the Filter option, choose Select All.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • Here’s the result.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • Choose the FALSE option from the Filter tab.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • Select the shown rows and delete them.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • From the Filter, choose the Select All option.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

  • Here’s the final result.

Use A Formula and the Filter Option to Copy Alternate Rows in Excel

Read More: Copy Excluding Hidden Rows in Excel


Method 4 – Run a VBA Code to Copy Alternate Rows in Excel

Steps:

  • Select the cells in the range.

Run A VBA

  • Press Alt + F11 to open the VBA window.
  • Click on the Insert option.
  • Select Module.

Run A VBA

  • Paste the following VBA code into the module.
Sub CopyAlternateRows()
Dim SelectionRng As Range
Dim alternatedRowRng As Range
Dim RowNumber, i As Long
Set SelectionRng = Selection
RowNumber = SelectionRng.Rows.Count
With SelectionRng
'select row number 1 to range variable
Set alternatedRowRng = .Rows(1)
'apply loop through each rows and add them to range variable
For i = 3 To RowNumber Step 2
Set alternatedRowRng = Union(alternatedRowRng, .Rows(i))
Next i
End With
'select the alternate rows
alternatedRowRng.Select
End Sub

Run A VBA

  • Save the program and press F5 to run it. You will get the alternate rows selected.

Run A VBA

  • Press Ctrl + C to copy, then paste the rows where you desire.

Run A VBA

Read More: Copy and Paste Thousands of Rows in Excel


Download the Practice Workbook


Related Articles


<< Go Back to Copy Rows | Copy Paste in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Bhubon Costa
Bhubon Costa

Bhubon Costa, B.Sc. in Naval Architecture & Marine Engineering from Bangladesh University of Engineering & Technology, has worked with the ExcelDemy since 2021. Currently, he has been working as a reviewer. Notably, he has written over 90 articles and led several VBA content development teams. He has a great passion for the fields of data analytics and data science. His areas of expertise include Excel VBA, Power Query, Pivot Table, Power BI, MySQL, PostgreSQL, machine learning, and Python... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo