Results 1 to 5 of 5

Formating Data - columns to rows

Threaded View

  1. #1
    Registered User
    Join Date
    12-23-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    10

    Formating Data - columns to rows

    I have a large data set consisting of two columns with repeat row names but unique row values. Here is a small example:

    A	1
    A	2
    A	3
    A	4
    A	5
    A	6
    A	7
    B	8
    B	9
    B	10
    B	11
    B	12
    B	13
    B	14
    C	15
    C	16
    C	17
    C	18
    C	19
    C	20
    C	21
    I would like to convert this to a few rows with multiple columns. Like this:

    A	1	2	3	4	5	6	7
    B	8	9	10	11	12	13	14
    C	15	16	17	18	19	20	21
    I tried to record a macro, but I could not figure out how to get the macro to not only select the range of cells from B1:B7 but also from B8:B14 when I click on B8. The macro always reverted to B1:7.

    Here is my example macro:

    Sub Macro2()
    '
    ' Macro1 Macro
    '
    
    '
        Range("B1:B7").Select
        Selection.Copy
        Range("D2").Select
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
    End Sub

    Thank you for your help.
    Last edited by JBeaucaire; 12-23-2013 at 05:40 PM. Reason: Added code tags, please read and follow the Forum Rules, link in the menu bar above. Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel 2010- Copy Conditional Formating from a row with 4 columns to all rows
    By dudeshane01 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2013, 12:45 AM
  2. Compress columns and rewrite as rows
    By The Mathguy in forum Excel General
    Replies: 2
    Last Post: 10-19-2013, 01:25 PM
  3. [SOLVED] Duplicate rows data formating
    By santosh_vjit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2013, 10:41 AM
  4. Formating Cell Rows and Columns?
    By bnd10706 in forum Excel General
    Replies: 1
    Last Post: 10-10-2012, 01:08 PM
  5. conditional formating of group of columns and rows
    By Madhav in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-08-2005, 03:06 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