+ Reply to Thread
Results 1 to 5 of 5

Select every nth cell in a row

  1. #1
    Registered User
    Join Date
    06-28-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    3

    Question Select every nth cell in a row

    Hi all!

    I know this question was asked several times, however I couldn't find an answer, which I could use.

    I have some data in the 8th row, starting from column G (about 100 values).
    For example: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18.... with 1 being in cell G8


    I want to be able to have a column of values from the mentioned row, but with every 5th value as follows:
    1
    5
    10
    15
    20
    ...


    Is it possible to do this by writing formula in the first cell of that column and dragging it down?
    Also, does it matter where the formula will be placed?

    Thanks in advance...

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Select every nth cell in a row

    Put this in your first cell:

    =G8

    In the cell below it you can use this formula:

    =INDEX($G:$G,(ROWS($1:1)-1)*5+12)

    then copy down. Note that your first value is not in sequence (it would be 0 if it was), which is why you need a different formula for the first cell.

    Hope this helps.

    Pete

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Select every nth cell in a row

    I went with:

    Please Login or Register  to view this content.
    But you'll need to re-examine your pattern.

    1, 5, 10 is a pattern of +4, +5

    Instead of + 5 +5
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    06-28-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    3

    Re: Select every nth cell in a row

    Thanks! It took me a while to figure out how to properly apply the formula (I guess it is because in my excel I have letters horizontally and numbers vertically.

    So finally I used the folloring formula:
    =INDEX($8:$8,(ROWS($1:1)-1)*5+11)

    Also, could you please help me, what should be changed if I want the column to show numbers starting from 25 for example.

    Thank you so much for your time!

  5. #5
    Registered User
    Join Date
    06-28-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    3

    Re: Select every nth cell in a row

    Sorry, but I couldn't apply this formula and since it is a bit too complicated for such a newbie as me, I couldn't figure it out.


    Quote Originally Posted by daffodil11 View Post
    I went with:

    Please Login or Register  to view this content.
    But you'll need to re-examine your pattern.

    1, 5, 10 is a pattern of +4, +5

    Instead of + 5 +5

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Double Clicking Cell To Select Choice Data For Another Cell's Formula
    By Rondeez in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2015, 09:53 AM
  2. [SOLVED] Keeping cell active while user form running (not having to select cell twice)
    By clo2peter in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-26-2014, 06:40 AM
  3. Macro to Find Matching text in a cell and select a specif cell
    By Carolynsdesk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2013, 07:28 AM
  4. Replies: 4
    Last Post: 06-17-2013, 05:21 AM
  5. Find specific value in a cell, select the cell and copy all cells beneath
    By Mothman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2010, 03:26 AM
  6. Replies: 2
    Last Post: 12-09-2008, 12:44 AM
  7. Select Data from a cell, move down a number, select data
    By Kage_ in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-12-2007, 02:12 PM

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