How to Select Every Other Row in Excel? - Earn & Excel (2024)

While working on Excel spreadsheets, some of the tasks are used commonly, such as selection, grouping, sorting out data, and so on. Talking about the selection task, you will tenderly need to use it while working with multiple formulas or other functions. You may have to use it to select one or more rows. Well, these are some of the general examples of selection. You might be needing to select data in every other row in Excel and for this, you can use the best ways mentioned below.

How to Select Every Other Row in Excel?

Here we have some useful tricks that you can follow to describe the possibility of how to select every other row in Excel. Let’s find it out:

  • With CTRL and Mouse Click
  • Using Conditional Formatting
  • Format Data as a Table
  • Go To Special hack
  • VBA (Automation)

Using CTRL and Mouse Click to Select Every Other Row

To select every other row in Excel, you can follow the easiest way of using CTRL and Mouse click. In this option, you will have to hold down the CTRL button right from your keyboard ((⌘ if you are using MAC) while selecting the number of rows.

When you click on the number of rows, you will see that the rows are being highlighted. You can simply select every other row and remember that such selections are known as the non-contagious range.

How to Select Every Other Row in Excel? - Earn & Excel (1)

In case, if you don’t want to keep the row highlighted and want to deselect it, click on it again. Apart from that, you can even apply individual cells and columns’ selection to perform your desired option. It will help you increase the speed and eventually you can select rows promptly. That’s why you can make changes in the rows setting all at once speedily.

Well, remember that it could be tiring at times, especially when you are having larger datasets because the selection of all the rows manually will surely bring pain to the fingers.

How to Select Every Other Row in Excel With Conditional Formatting?

When using conditional formatting, you are free to make changes in the cell while keeping the content structure in mind. To select every other row in Excel, you can use this flexible tool conveniently. Here, we have come up with an example in which we need to color the rows randomly starting from the first row.

Firstly, choose the data on which you want to apply a conditional formatting tool other than the header. After choosing, press on the Home tab > Conditional Formatting > New Rule.

How to Select Every Other Row in Excel? - Earn & Excel (2)

After that, you will see a dialog box named New Formatting Rule. Right from this dialog box, you have to choose the “Use a formula to determine which cells to format”. Choosing this option will let you add a formula to run the conditional formatting feature firmly. Now, you have to enter the formula in the box.

Here is the formula:

=MOD(ROW(B2),2)=0

How to Select Every Other Row in Excel? - Earn & Excel (3)

In the next step, where you need to color the alternate rows, you have to hit on the Format option. Fill and choose the color, now press OK.

How to Select Every Other Row in Excel? - Earn & Excel (4)

Once again click on OK to get out of the rules box of conditional formatting. You will the application of your rule instantly.

How to Select Every Other Row in Excel? - Earn & Excel (5)

Format Data as a Table

In Excel, most of the time people need to put data in a table format. Using tables in Excel comes up with loads of advantages. The most common one is that alternate colored rows are used to format data, which makes it attractive to others. When you need to change a range into a data table, firstly, you will have to choose the data and you have to choose the header as well.

How to Select Every Other Row in Excel? - Earn & Excel (6)

Using Filter with Go To Special Feature

In the given example, you will see another column named Row Even/Odd. It is added to use Filter with Go To Special feature while understanding how to select every other row in Excel. For even row, you will see TRUE and for odd rows, you will see False.

How to Select Every Other Row in Excel? - Earn & Excel (8)

Apart from that, you can even use the ISEVEN function. As given in the example, choose the F4 cell and apply your formula as mentioned below:

=ISEVEN(ROW())

Now, you will have to add the formula in the formula bar or else you can add it to the selected cell.

How to Select Every Other Row in Excel? - Earn & Excel (9)

Press ENTER key and the fourth row has an even number that’s why you will see TRUE.

How to Select Every Other Row in Excel? - Earn & Excel (10)

In the end, for all the other cells you may have to use the Fill Handle option to AutoFit formula.

How to Select Every Other Row in Excel? - Earn & Excel (11)

Once it is done, follow these steps:

Choose the range where you need to add the Filter. In this example, all the columns are selected.

Later on, open the Data tab and choose Filter.

How to Select Every Other Row in Excel? - Earn & Excel (12)

Furthermore, you can even try the CTRL + SHIFT + L keys right from your keyboard. These shortcut keys help you in applying the Filter to all the columns.

How to Select Every Other Row in Excel? - Earn & Excel (13)

To activate the Filter option, choose the Row Odd/Even column, from which you can select the TRUE value to Filter. Now, click OK.

How to Select Every Other Row in Excel? - Earn & Excel (14)

Keep in mind that when there are TRUE values, all the column values will be Filtered.

How to Select Every Other Row in Excel? - Earn & Excel (15)

Now is the time to choose the range where you need to apply this GO To Special Feature.

For this, go to the Home tab, and choose Find & Select option from the Editing group. And select Go To Special feature.

How to Select Every Other Row in Excel? - Earn & Excel (16)

You will see a dialog box, from which you need to choose the Visible cells only. Click OK and wind up the functioning.

How to Select Every Other Row in Excel? - Earn & Excel (17)

VBA Automation

Whenever you don’t like to go for tricky ways, the ultimate solution to any problem is in VBA. Visual basic for applications is a built-in programming language in Excel. Similar to other functions, you can use it to select every other row in Excel automatically of a given range.

In the VBA Editor, you may have to copy and paste the script into the new module. For a new module, you need to go to Developer and then Visual Basic. If the Developer option is not activated, you will not see it on the ribbon. That’s why you have to activate it first to make it functional.

In the VBA Editor, click on the Insert and then Module

Sub SelectEveryOtherRow()

DimuserRange As Range
DimalternateRowRange As Range
DimrowCount, i As Long

SetuserRange = Selection
rowCount = userRange.Rows.Count

WithuserRange
‘add row 1 of selected cells to the range variable
Set alternateRowRange = .Rows(1)

‘loop through every other row and add to range variable
Fori = 3TorowCountStep2
SetalternateRowRange = Union(alternateRowRange, .Rows(i))
Nexti

End With

‘select every other row
alternateRowRange.Select

End Sub

A selection of cells is needed to run this code. And the cells would be those you need to select every other row from first.

To Sum Up

In this post, you have found all the possible ways that can help in selection of every other row in Excel. Along with VBA coding, now the options are increased to select every other row in Excel. Try these different approaches to fulfill your needs.

How to Select Every Other Row in Excel? - Earn & Excel (2024)

FAQs

How do you get data from every other row in Excel? ›

If you are working with a small dataset, manually selecting every other or every nth row can be done using the Ctrl key. Here's how: Click on the first row you want to select, and then press and hold the Ctrl key on your keyboard. While holding the Ctrl key, click on every other row or on every nth row.

How do I make Excel fill every other row? ›

Select the range of cells that you want to format. Go to Home > Format as Table. Pick a table style that has alternate row shading. To change the shading from rows to columns, select the table, under Table Design, and then uncheck the Banded Rows box and check the Banded Columns box.

What is the formula to select every nth row in Excel? ›

To select every nth row, the OFFSET function is used in combination with the ROW function to create a dynamic range that is incremented by n for each row. An example would be: OFFSET(A1,(ROW()-1)*n,0). This formula will select every nth row starting from the first row.

How do I select every other row in sheets? ›

Enter =ISEVEN(ROW()) into the Value or formula field.

This formula will highlight all the even-numbered rows in the selected cell range. If the formula above highlights the wrong set of rows, try =ISODD(ROW()) . This will highlight all the odd-numbered rows in the selected range.

What is the offset function in Excel? ›

What is the OFFSET Function? The OFFSET Function[1] is categorized under Excel Lookup and Reference functions. OFFSET will return a range of cells. That is, it will return a specified number of rows and columns from an initial range that was specified.

How do I make Excel fill automatically? ›

Put the mouse pointer over the bottom right-hand corner of the cell until it's a black plus sign. Click and hold the left mouse button, and drag the plus sign over the cells you want to fill. And the series is filled in for you automatically using the AutoFill feature.

How do I select every other column in Excel? ›

The simplest way to select alternate columns in Excel is by utilizing the Ctrl key in combination with the mouse. Here's how you can do it: Press and hold the Ctrl key on your keyboard. While holding the Ctrl key, click on the header of every other column.

What is the MOD function in Excel? ›

The MOD function in Excel is used to find remainder after division of one number (dividend) by another (divisor). In mathematics, this operation is called the modulo operation or modulus, hence the name MOD.

What is the formula for alternate rows? ›

In the text box labeled "Format Values where this formula is true" enter the formula, "=Mod(Row(A1),2)-0" where A1 equals your top, leftmost cell in your desired selection. Click the "Format" button on the lower right side of the dialog box and select how you want to format the alternating rows.

How do you automatically apply formula to new rows? ›

To insert a new row, right-click on the cell and select Insert Row. We need to create the table to auto-fill the formula. To insert the table, select the data, then click on inset and select table to successfully auto-fill the formula in the empty cells.

What does every following alternate row mean? ›

Alternating row refers to every other row. We see this type instructions a lot when working with bilateral decreasing and increasing sleeves or neck lines. "Decrease 1 stitch at each end of next and every following alternating row" refers to decreasing 1 st at each end of the next row (usually the right side row).

How do I randomly select 20 rows in Excel? ›

How to randomly select in Excel with Randomize tool
  1. Select any cell in your table.
  2. Go to the Ablebits Tools tab > Utilities group, and click Randomize > Select Randomly:
  3. On the add-in's pane, choose what to select: random rows, random columns or random cells.
  4. Specify the number or percentage for the desired sample size.
Mar 17, 2023

What is the quickest function to select multiple cells that have formulas in Excel? ›

Use the Go To command to quickly find and select all cells that contain specific types of data, such as formulas. Also, use Go To to find only the cells that meet specific criteria,—such as the last cell on the worksheet that contains data or formatting.

How do I randomly select 25 rows in Excel? ›

By placing the RAND() function in a column co-located with your data, you will assign a random number to each row in your data-set or range. Once that is done, all you have to do is sort your data by the RAND() column and then select however many rows you need. It's that simple!

How do you select the nth row? ›

If you want to select NTH row, then you need to use LIMIT N-1, 1 in your query. Hopefully, the above query will help you fetch Nth row in MySQL.

How do I select every 1000 rows in Excel? ›

Type A1000 in the name box located on the left side just below the menu and you would be reaching the 1000th row in excel. Thereafter hold Ctrl + Shift + Right Arrow to select the entire row and the press Upper Arrow to select the entire range of cells till the 1000th row.

How do you find the nth item in a list in Excel? ›

The SMALL(List,n) function finds the nth smallest value in a list. Therefore, in our formula SMALL(IF(List=”a”,ROW(List)-MIN(ROW(List))+1),n) this finds the nth smallest item, so the third smallest value of {1,4,8,9} is 8.

Top Articles
Latest Posts
Article information

Author: Edwin Metz

Last Updated:

Views: 5372

Rating: 4.8 / 5 (78 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Edwin Metz

Birthday: 1997-04-16

Address: 51593 Leanne Light, Kuphalmouth, DE 50012-5183

Phone: +639107620957

Job: Corporate Banking Technician

Hobby: Reading, scrapbook, role-playing games, Fishing, Fishing, Scuba diving, Beekeeping

Introduction: My name is Edwin Metz, I am a fair, energetic, helpful, brave, outstanding, nice, helpful person who loves writing and wants to share my knowledge and understanding with you.