+ Reply to Thread
Results 1 to 6 of 6

Tranpose columns to Rows

  1. #1
    Registered User
    Join Date
    03-05-2008
    Posts
    1

    Tranpose columns to Rows

    Hi

    I am after a way to get data to move from a column to a row. I can use the transpose command but I want multiple rows cut form the 1 column eg

    column A
    dog1
    dog2
    dog3

    cat1
    cat2
    cat3

    I would like :-

    dog1 dog2 dog3
    cat1 cat2 cat3

    Thanks for your help

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Welcome beardiebeardie ,

    Does the data always follow the pattern of

    three data rows,
    one blank,
    three data rows,
    one blank
    ....?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    03-05-2008
    Posts
    4

    Cool

    Dear,
    Use VBA programming to move the corredponding rows to colums seperating them whenever a space is encountered...

    Please Login or Register  to view this content.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    This will copy each colum & transpose to Sheet 2

    Option Explicit

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    This will work on the existing sheet, deleting the original data when finished
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-05-2008
    Posts
    4

    Smile

    Hi Roy,
    I think both the codes that you have provided work fine but do not place the data in the next row, whenever a break occurs (i.e. a blank row is encountered)...

    original data:-

    a
    b
    c

    a
    b
    c

    a
    b
    c


    Output of your code results is some thing like:-

    abc abc abc


    whereas it should be:-

    abc
    abc
    abc


    no doubt your code is an optimal one but if you could manipulate the data in the required fashion it may be halpful to Beardie

+ 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