How To Select Every Nth Row In Excel (With Example) (2024)

By stats writer / November 5, 2023

Table of Contents

How To Select Every Nth Row In Excel (With Example) (1)

When working with large datasets in Excel, it can be useful to select every nth row. This can be done by using the OFFSET function, which takes a range as an argument and returns a reference to a range that is offset from the original range. 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.

You can use the following basic formula to select every nth row in Excel:

=OFFSET($A$1,(ROW()-1)*n,0)

This formula selects every nth row.

Simply change the value for n in the formula to select specific rows.

For example, you can use the following formula to select every 3rd row:

=OFFSET($A$1,(ROW()-1)*3,0)

The following examples show how to use this formula in practice.

Example: Select Every Nth Row in Excel

Suppose we have the following list of values in Excel:

How To Select Every Nth Row In Excel (With Example) (2)

We can use the following formula to select every third row from the list:

=OFFSET($A$1,(ROW()-1)*3,0)

We will type this formula into cell C1 and then copy and paste it to the remaining cells in column C:

How To Select Every Nth Row In Excel (With Example) (3)

Notice that every third row has been selected from the list of original values:

How To Select Every Nth Row In Excel (With Example) (4)

If we change the value of n in the formula, we can select a different nth value.

=OFFSET($A$1,(ROW()-1)*5,0)

We will type this formula into cell C1 and then copy and paste it to the remaining cells in column C:

How To Select Every Nth Row In Excel (With Example) (5)

Notice that every fifth row has been selected from the list of original values:

How To Select Every Nth Row In Excel (With Example) (6)

How To Select Every Nth Row In Excel (With Example) (2024)
Top Articles
Latest Posts
Article information

Author: Mrs. Angelic Larkin

Last Updated:

Views: 6585

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Mrs. Angelic Larkin

Birthday: 1992-06-28

Address: Apt. 413 8275 Mueller Overpass, South Magnolia, IA 99527-6023

Phone: +6824704719725

Job: District Real-Estate Facilitator

Hobby: Letterboxing, Vacation, Poi, Homebrewing, Mountain biking, Slacklining, Cabaret

Introduction: My name is Mrs. Angelic Larkin, I am a cute, charming, funny, determined, inexpensive, joyous, cheerful person who loves writing and wants to share my knowledge and understanding with you.