How to Select Every Other Row in Excel: 6 Easy Methods

The following dataset is about the sales information of a certain tech shop. It has four columns: Sales Rep, Region, Product, and Sales. These columns show the total sales information for a particular product by a sales representative.

Sample Dataset to Select Every Other Row in Excel


Method 1 – Using Conditional Formatting to Mark Selectable Cells

Steps:

  • Choose the B4:E13 cell range.
  • Open the Home tab.
  • Go to Conditional Formatting and select New Rule.

Selecting Conditional Formatting Select Every Other Row in Excel

  • A dialog box will pop up.
  • Select Use a formula to determine which cells to format.
  • Use the following formula in the Format values where this formula is true box:

Type the formula

=MOD(ROW(B4),2)=0
  • Select the format of your choice.
  • Click OK.

Writing Formula in the Conditional Formatting Box to Select Every Other Row in Excel

  • The MOD(ROW(),2)=0 function will highlight every 2nd row starting from the first.

Using Conditional Formatting to Select Every Other Row in Excel

  • Select the first highlighted row then hold the CTRL key and select the other highlighted rows.

Select Alternate Rows Using Conditional Formatting

 


Method 2 – Using the Highlight Feature

Case 1 – EVEN Rows

Steps:

  • Select the cell range.
  • Open the Home tab.
  • Go to Conditional Formatting and select New Rule

Choosing Conditional Formatting Options to Select Every Other Row in Excel

  • A dialog box will be on the screen.
  • Select Use a formula to determine which cells to format.
  • Use the ISODD function:
=ISODD(ROW())
  • You can select the Format of your choice.
  • Click OK.

Writing Conditional Formatting Formula to Select Every Other Row in Excel

  • It will highlight odd rows.

Using Highlight to Select Every Other Row in Excel

  • Hold the CTRL key and select the highlighted rows.

Selecting Every Other Odd Row


Case 2 – EVEN Rows

Steps:

  • Select the cell range that you want to highlight.
  • Open the Home tab.
  • Go to Conditional Formatting and select New Rule.

Selecting New Rule Command from the Conditional Formatting Option to Select Every Other Row in Excel

  • A dialog box will pop up.
  • Choose Use a formula to determine which cells to format.
  • Insert the following formula in the box.
=ISEVEN(ROW())
  • Choose the Format of your choice.
  • Click OK.
  • Writing Formula to Perform Conditional Formatting to Select Every Other Row in ExcelThe EVEN rows will be highlighted.

Using Highlight to Select Every Other Row in Excel

  • Hold the CTRL key and select the highlighted rows.

Selecting Every Other Row

 


Method 3 – Manually Selecting Rows

Steps:

  • Select the row number.

Using Keyboard and Mouse to Select Every Other Row in Excel

  • It will select the Entire Row.

Selecting Rows to Select Every Other Row in Excel

  • Hold the CTRL key and select the rest of the rows of your choice.

Selecting Every Other Row in Excel Using Mouse and Keyborad


Method 4 – Utilizing the Table Format

Steps:

  • Select a range of rows to insert a Table.
  • Open the Insert tab and select Table.

Inserting Table to Select Every Other Row in Excel

  • A dialog box showing the selected range will pop up.
  • Select My table has headers.
  • Click OK.

Selecting Data Range for Table to Select Every Other Row in Excel

  • The selected ranges will be converted into a Table.
  • Every other row has a different fill color to highlight every other row.

Using Table Format to Select Every Other Row in Excel

  • Manually select the rows while holding Ctrl.

Select Every Other Row in Excel


Method 5 – Using a Filter with Go To Special

We added a new column in the dataset name Row Even/Odd. This column will show TRUE for even rows and FALSE for odd rows.

Sample dataset with Extra Column to Select Every Other Row in Excel

Steps:

  • Select the F4 cell and insert the following formula:
=ISEVEN(ROW())

Inserting Formula in Extra Column to Select Every Other Row in Excel

  • Press Enter.
  • This will show TRUE for row number 4 as it is an even number.

Getting Result from Inserted Formula to Select Every Other Row in Excel

  • Use the Fill Handle to AutoFill formula for the rest of the cells.

Using ISEVEN Function

  • Select the range where you want to apply the Filter.
  • Select all the columns.
  • Open the Data tab and select Filter.

Using Filter with Go To Special

You also can use the CTRL+SHIFT+L keyboard shortcut.

  • The Filter will be applied to all columns.

Using Filter with Go To Special

  • Select the drop-down for the helper column header.
  • Select the TRUE value to Filter.
  • Click OK.

Filtering True and False Values

  • All the column values will be Filtered where the value is TRUE.

Filtered Rows

  • Select the range where you want to apply Go To Special.
  • Open the Home tab and go to Find & Select, then select Go To Special

Using Filter with Go To Special

  • A dialog box will be on the screen.
  • Select the Visible cells only.
  • Press OK.

Using Filter with Go To Special

  • The visible cells are selected.
  • Open the Data tab and select Filter.

Removed Filtered from Rows

  • It will show the selected values along with all values by removing Filter.

Using Filter with Go To Special


Method 6 – Applying VBA

Steps:

  • Open the Developer tab and select Visual Basic.

Opening Visual Basic Window

  • A window for Microsoft Visual Basic for Applications will pop up.
  • Click on Insert and select Module.

Inserting Module in VBA

  • A new Module will be opened.

New Module in VBA

  • Insert this code to select every other row in the Module.
Sub SelectEveryOtherRow()
Dim userRange As Range
Dim OtherRowRange As Range
Dim rowCount, i As Long
Set userRange = Selection
rowCount = userRange.Rows.Count
With userRange
Set OtherRowRange = .Rows(1)
For i = 3 To rowCount Step 2
Set OtherRowRange = Union(OtherRowRange, .Rows(i))
Next i
End With
OtherRowRange.Select
End Sub

VBA Code

  • Save the code and go back to the worksheet.
  • Select the range where you want to apply the VBA.
  • Open the View tab and select View Macros.

Using Macros to Run VBA

  • A dialog box will pop up.
  • Select the Macro name SelectEveryOtherRow.
  • Click Run.

Running VBA Code

  • Every other row will be selected from the first row.

Selecting Every Other Row Using VBA

 


Download the Practice Workbook


Related Articles


<< Go Back to Select Row | Rows in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Shamima Sultana
Shamima Sultana

Shamima Sultana, BSc, Computer Science and Engineering, East West University, Bangladesh, has been working with the ExcelDemy project for 2 years. She has written over 75+ articles and reviewed 1000+ articles for ExcelDemy. She has also led several teams with Excel VBA and Content Development works. Currently, she is working as the Project Manager and oversees the day-to-day work, leads the services team, allocates resources to the right area, etc. Her work and learning interests vary from Microsoft... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo