+ Reply to Thread
Results 1 to 3 of 3

Transfer data between sheets with a pattern.

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    Shreveport, Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    1

    Transfer data between sheets with a pattern.

    I have a list of data on sheet 1 that contains info sorted by type (ie. name, address, city, phone #, aDOB, etc). On sheet 2 I have a roster that lists Name, address, city, and gender, one on top of the other stacked 4 rows high. How do I create a pattern where when I copy the formula on sheet 2, it will follow the correct row order of sheet 1 without skipping data?
    example:
    sheet 1 column C = names D = address F = city K = DOB
    sheet 2 needs to look like this

    NAME
    ADDRESS
    CITY
    DOB
    NAME
    ADDRESS
    CITY
    DOB

    Whenever I use the offset function, it repeats but skips four rows every time. I could go in and type every formula by hand, but I have thousands of names and poor typing skills.
    Any help would be greatly appreciated.

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

    Re: Transfer data between sheets with a pattern.

    assuming data starts in c2
    =INDEX($C$2:$F$300,FLOOR(ROW(A4)/4,1),IF(MOD(ROW(A1),4)=0,4,MOD(ROW(A1),4))) nope that wont work i thought it said c:f
    Last edited by martindwilson; 09-04-2011 at 04:21 PM.
    "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

  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: Transfer data between sheets with a pattern.

    ok try this , the lookup names must match your column names on sheet 1
    =INDEX(Sheet1!$C$2:$K$1000,FLOOR(ROW(A4)/4,1),MATCH(LOOKUP(IF(MOD(ROW(A1),4)=0,4,MOD(ROW(A1),4)),{1,2,3,4},{"names","address","city","dob"}),Sheet1!$C$1:$K$1,0))
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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