+ Reply to Thread
Results 1 to 6 of 6

Moving data from one sheet to new sheet - not in sequential order

  1. #1
    Registered User
    Join Date
    07-24-2018
    Location
    U.S.
    MS-Off Ver
    2016
    Posts
    5

    Moving data from one sheet to new sheet - not in sequential order

    Hi Everyone,

    Need help please!

    I have a list of data on one sheet... imagine column A has data in each row 1-4

    On a seperate sheet I need to pull that data and insert every 6 rows....

    For example:
    Sheet 1 A1 would go to Sheet 2 A1
    Sheet 1 A2 would go to Sheet 2 A7
    Sheet 1 A3 would go to Sheet 2 A13
    Sheet 1 A4 would go to Sheet 2 A19

    Any thoughts on a formula that I could drag down over houndreds of cells?

    Thank you for your help!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,450

    Re: Moving data from one sheet to new sheet - not in sequential order

    Try =IF(MOD(ROW(),6)=1,INDEX(Sheet1!$A$1:$A$20,(ROW()-1)/6+1),"")
    starting in A1 sheet 2 and drag down as needed
    Adapt ranges to your needs

  3. #3
    Registered User
    Join Date
    07-24-2018
    Location
    U.S.
    MS-Off Ver
    2016
    Posts
    5

    Re: Moving data from one sheet to new sheet - not in sequential order

    Attached is an example of what I am looking to do...

    I need the data shown on sheet 2 to move to the corresponding columns on sheet 1

    Sheet 2 row 2 column a should move to sheet 1 row 2 column B

    Sheet 2 row 3 column a should move to sheet 1 row 8 column B

    Sheet 2 row 4 column a should move to sheet 1 row 14 column B

    I want to set up a formula to move all the data from all columns of sheet 2 into their corresponding place on sheet 1 and be able to drage this down so it applies to a full workbook of data.

    Thank you for your help!
    Attached Files Attached Files

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,450

    Re: Moving data from one sheet to new sheet - not in sequential order

    Have you read post #2? You can easily adapt it
    Will there be any other changes to your initial request?
    Basic courtesy would be to at least acknowledge my answer !

  5. #5
    Registered User
    Join Date
    07-24-2018
    Location
    U.S.
    MS-Off Ver
    2016
    Posts
    5

    Re: Moving data from one sheet to new sheet - not in sequential order

    Hi Pepe,

    I wasn't trying to be rude... I responed to your first message instructing me to attach a sample.

    When I tried your formula it did not work... I got an error message that said "you've entered too many arguments"

    Any other ideas? Could you try mocking up your formula in the sample I attached?

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,594

    Re: Moving data from one sheet to new sheet - not in sequential order

    This proposal employs a helper column (K) which may be moved and/or hidden for aesthetic purposes.
    Paste the following formula into K2 double click the fill handle to copy down to K36: =COUNTIFS(A$1:A2,A$1)
    The formula for cell B2 is: =INDEX('sheet 2 '!A$2:A$7,$K2)
    Once the formula is entered into cell B2 the fill handle may be dragged across to cell G2
    Select cells B2:G2 and press the Ctrl and c keys
    In turn select cells B8, B14, B20 etc. and press the Ctrl and v keys
    Note that you could eliminate the helper column by using following formula instead: =INDEX('sheet 2 '!A$2:A$7,COUNTIFS($A$1:$A2,$A$1))
    However that will require the COUNTIFS to calculate the value six times for each row, as opposed to once using the helper column, which is not an efficient use of computer resources.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Macro not moving row to different sheet and changing col order when cell changes
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-11-2016, 06:25 AM
  2. Moving Values From One Sheet to Another by With xlshiftdown is in Reverse Order
    By BoSonic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-27-2013, 05:05 PM
  3. Replies: 4
    Last Post: 10-14-2013, 10:15 AM
  4. Replies: 9
    Last Post: 04-04-2011, 12:03 AM
  5. Copy rows based on criteria into new sheet, but not in the same sequential order
    By kmsosaka in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-04-2010, 02:56 AM
  6. Moving rows to sequential position on another sheet
    By Jenno in forum Excel General
    Replies: 5
    Last Post: 08-15-2005, 04:48 AM
  7. data from one sheet to several in sequential order!
    By firecord in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 06-22-2005, 12:10 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