+ Reply to Thread
Results 1 to 6 of 6

Get data from a list to evry nth row

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Get data from a list to evry nth row

    In sheet1 I have a data table.
    Data listed in B colum starting from 11th row to 30th row

    In sheet2 I want to make 30 data tables , which every table contains 20 rows.
    B3 cell will get data from Sheet1 B11 cell
    B23cell will get data from Sheet1 B12 cell
    B43cell will get data from Sheet1 B13 cell
    and will go on for 30 table.

    Which kind of a formula I can use for B3 cell in Sheet 2.(Because I will copy first table(B3) to B23 and B43, B63,B83.....)

    Shortly every 20th cell will get Sheet1 rows in order(B11,B12,B13.....B30)

  2. #2
    Registered User
    Join Date
    07-31-2012
    Location
    Buffalo, United States
    MS-Off Ver
    MS Office 2007, 2010, 2013
    Posts
    59

    Re: Get data from a list to evry nth row

    Try this:

    [WRONG]=INDIRECT("B"&(10+ROUNDDOWN((ROW(B23)-ROW($B$3)/20),0)))[WRONG]
    Last edited by jackgan; 05-12-2014 at 10:23 AM.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Get data from a list to evry nth row

    Try this in B3 copied down

    =IFERROR(INDEX(Sheet1!$B$11:$B$56,MOD((ROWS($A$1:$A1)-1),20)*20+INT(ROWS($A$1:$A1)/20)+1),"")
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    07-31-2012
    Location
    Buffalo, United States
    MS-Off Ver
    MS Office 2007, 2010, 2013
    Posts
    59

    Re: Get data from a list to evry nth row

    Disregard the previous one and try this to enter in cell B3:

    =INDIRECT("Sheet1!B"&(11+ROUNDDOWN((ROW(B3)-ROW($B$3)/20),0)))

  5. #5
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Get data from a list to evry nth row

    Quote Originally Posted by ChemistB View Post
    Try this in B3 copied down

    =IFERROR(INDEX(Sheet1!$B$11:$B$56,MOD((ROWS($A$1:$A1)-1),20)*20+INT(ROWS($A$1:$A1)/20)+1),"")
    Does that work for you?
    Thanks a lot.
    Worked very good.

  6. #6
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Get data from a list to evry nth row

    Quote Originally Posted by jackgan View Post
    Disregard the previous one and try this to enter in cell B3:

    =INDIRECT("Sheet1!B"&(11+ROUNDDOWN((ROW(B3)-ROW($B$3)/20),0)))
    Thanks for reply, but did NOT work.
    ChemistB reply is OK.

+ 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. Replies: 3
    Last Post: 04-22-2014, 03:30 PM
  2. Replies: 2
    Last Post: 10-24-2013, 10:11 AM
  3. Replies: 0
    Last Post: 01-09-2013, 11:44 AM
  4. [SOLVED] How to find Column with a header that has a variable that changes evry week
    By JMG14 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-08-2012, 08:20 AM
  5. [SOLVED] copy range of cells automatically to different range evry hr
    By Sarangsood in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-24-2011, 03:46 AM

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