+ Reply to Thread
Results 1 to 2 of 2

Moving data from two columns into multiple columns

  1. #1
    Registered User
    Join Date
    07-08-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Moving data from two columns into multiple columns

    Hello,

    I have a spreadsheet with two columns, with an ID number in the first column and the data point in the second column, and the different ID numbers are separated by a blank row.

    For example:

    ID Value
    1 A
    1 B
    1 C

    2 A
    2 B

    3 C



    What I would like to do is transfer the data into multiple columns, with the first row as the ID number and each subsequent row containing the values for that ID.

    For example:

    ID 1 2 3
    Value 1 A A A
    Value 2 B B
    Value 3 B


    Any help at all would be greatly appreciated, thank you!!

  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 data from two columns into multiple columns

    'COLUMNS TO ROWS
    Here's a macro for merging columns of data to one row matching for column A. There's a sample workbook too you could drop your data into and test it out.
    Last edited by JBeaucaire; 12-27-2019 at 10:36 PM.
    _________________
    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!)

+ 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