+ Reply to Thread
Results 1 to 5 of 5

Convert iterative but unique data from a column to corresponding rows

Hybrid View

Marcus2009 Convert iterative but unique... 12-26-2012, 03:11 PM
AlphaFrog Re: Convert iterative but... 12-26-2012, 03:45 PM
rcm Re: Convert iterative but... 12-26-2012, 03:48 PM
Marcus2009 Re: Convert iterative but... 12-26-2012, 04:46 PM
rcm Re: Convert iterative but... 12-26-2012, 05:12 PM
  1. #1
    Registered User
    Join Date
    12-26-2012
    Location
    WI,USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Convert iterative but unique data from a column to corresponding rows

    My inability to find a solution discussed previously is likely due to not searching the right key words; however this problem certainly has been discussed prior in the forum and the solution may be simple.

    Convert the following example columnar data to rows whereas A,D and G data are under the same heading as are B,E and H - etc,. I would use transpose; however there are 1000 records in the column.

    Data Example

    A
    B
    C

    D
    E
    F

    G
    H
    I

    Desired result

    A B C
    D E F
    G H I

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: Convert iterative but unique data from a column to corresponding rows

    This is one method.

    Sub Trans()
        Dim c As Range, i As Long
        Application.ScreenUpdating = False
        For Each c In Range("A1", Range("A" & Rows.Count).End(xlUp)).SpecialCells(xlCellTypeConstants).Areas
            i = i + 1
            Range("A" & i) = Application.Transpose(c)
        Next c
        Range("A" & i + 1, Range("A" & Rows.Count).End(xlUp)).ClearContents
        Application.ScreenUpdating = True
    End Sub

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Convert iterative but unique data from a column to corresponding rows

    Try the macro included in the file
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-26-2012
    Location
    WI,USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Convert iterative but unique data from a column to corresponding rows

    Thanks AlphaFrog and RCM for your suggestions.

    I just grabbed one macro which happened to be RCM's. I had to tweek it a bit to match my exact spreadsheet but the basic algorithm details were present in the code and provided me what I needed.

    I eventually did find a similar thread but it did not prove to be successful for the user but your code worked great.

    I appreciate the help.

    Sincerely,
    Marcus

  5. #5
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Convert iterative but unique data from a column to corresponding rows

    You are welcome Marcus2009 and happy holidays!!!

+ 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