+ Reply to Thread
Results 1 to 4 of 4

How to select every nth row

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to select every nth row

    Hi everybody, this is the first time I have used Excel so my knowledge is pretty non existent!

    So here is what I need -

    I have rented a mailing list that consists of names and addresses of 5000 people.

    I would like to take 1000 of those names and addresses to do a test mailing.

    (The file is in .csv)

    So I would like to for example select every 10th row or every 6th row (the selection number is not important)

    I know I can do this by clicking on the row number then holding down Ctrl and clicking the the next row number i want,
    but going through 5000 rows this is going to be time consuming.

    Just wondered if there was an easier way to do this?

    Any help with this would be much appreciated,

    Thanks,
    Colin

  2. #2
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: How to select every nth row

    an easy way to do this without VBA is filtering. If your data is in cells A1:B5000 or whatever, put an "A" in cell C1, then for every 10th, highlight C1 to C9. Once you have selected those cells, there should be a small box in the lower right corner of your selection, double click that box and you will have an "A" in every 10th box then go to your data tab and select filter, then filter column C by "A" then copy the data out. Let me know if this help and makes sense.
    Regards,
    amotto

    If I helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to select every nth row

    or in a spare column say col H
    put the number you want in H1 say every 5th then put 5
    in h2
    =IF(MOD(ROWS($A$1:A1),$H$1)=1,"select","") fill that down to last row
    now filter data by col h on select
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to select every nth row

    yet another double post by me

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1