Closed Thread
Results 1 to 7 of 7

Moving Repeating Data from Rows to Columns (Not Transpose)

  1. #1
    Registered User
    Join Date
    09-20-2016
    Location
    Washington
    MS-Off Ver
    2013
    Posts
    2

    Moving Repeating Data from Rows to Columns (Not Transpose)

    Not sure if this is the appropriate place to post this, but I don't know what category the solution is under!
    Is it possible to use an automatic function or formula to move 4 repeating data sets into separate columns?

    What I have: (All in one column, separate rows)

    (Last Name)
    (First Name)
    (Number)
    (Type)

    (Last Name 2)
    (First Name 2)
    (Number 2)
    (Type 2)

    Over and over for 40000+ rows.

    What I need:
    (Last Name) (First Name) (Number) (Type)
    (Last Name 2) (First Name 2) (Number 2) (Type 2)
    (etc.)

    Essentially, I need to extract every 5th row's cell and put it in a different column, for each of the 4 items, 40,000 times, and I really don't want to do that.
    Any type of help is appreciated!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Moving Repeating Data from Rows to Columns (Not Transpose)

    Assuming:

    1) Data is in column A starting at A1 (no header)
    2) Every 5th cell is blank
    3) D1:G1 are the headers for you new table (First, Last, Number, Type)

    Put this formula in D2, copy to the right and down until you start seeing zeros:

    =INDEX($A:$A,ROW($A1)*5-4+COLUMN(A$1)-1)
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Moving Repeating Data from Rows to Columns (Not Transpose)

    Hi
    If your data is in A2:A40000 use in B2 and copy right and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Moving Repeating Data from Rows to Columns (Not Transpose)

    Try it this way
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Registered User
    Join Date
    09-20-2016
    Location
    Washington
    MS-Off Ver
    2013
    Posts
    2

    Re: Moving Repeating Data from Rows to Columns (Not Transpose)

    Thanks, JBeaucaire!

    The formula worked perfectly, no problems!

  6. #6
    Registered User
    Join Date
    11-27-2014
    Location
    Sweden
    MS-Off Ver
    2003
    Posts
    8

    Re: Moving Repeating Data from Rows to Columns (Not Transpose)

    Hi there.
    I have a follow-up question on this to fully understand it:
    How would this look like if it was no empty row every 5th?
    What in the function fixes that? I tried to do it, but got an error every time.
    =INDEX($A:$A,ROW($A1)*5-4+COLUMN(A$1)-1)

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,737

    Re: Moving Repeating Data from Rows to Columns (Not Transpose)

    Administrative Note:

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Transpose Columns to Rows While Repeating Data in First Column to Each Row
    By leoxanigm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2015, 06:54 AM
  2. Replies: 7
    Last Post: 02-05-2015, 03:20 PM
  3. getting data from columns to rows without using transpose
    By rachbendy in forum Excel General
    Replies: 6
    Last Post: 07-15-2012, 09:41 AM
  4. Transpose columns of data in rows
    By Absar in forum Excel General
    Replies: 4
    Last Post: 09-14-2010, 09:10 PM
  5. transpose data from columns into rows
    By levycraig in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-14-2010, 07:26 AM
  6. Data in columns to rows (not transpose...)
    By titus.hanke in forum Excel General
    Replies: 13
    Last Post: 12-01-2008, 09:43 AM
  7. Transpose data from rows into columns
    By greaseman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-03-2006, 03:52 PM

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