+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : How to transfer column values to rows?

  1. #1
    Registered User
    Join Date
    11-21-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    How to transfer column values to rows?

    i have data like:
    X Y
    1 32
    1 25
    1 28
    1 34
    2 12
    2 23
    2 12
    2 35
    3 22
    3 20
    3 21
    4 11
    4 30

    Desired Output:
    1 32 25 28 34
    2 12 23 12 35
    3 22 20 21
    4 11 30

    Any Help?
    Last edited by __LENITH__; 11-21-2010 at 09:12 AM.

  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: How to get desired output?

    Here's a macro for merging rows of data to one row matching for column A.
    You could just drop your two column data set into the sample sheet provided on that page (sheet Part 2) and run the macro to get your output.
    _________________
    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 teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to get desired output?

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST

  4. #4
    Registered User
    Join Date
    11-21-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to transfer column values to rows?

    Thanks JB, That worked like charm . Othjer macros over there were also very interesting. Rep Added.

+ 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