+ Reply to Thread
Results 1 to 4 of 4

Please Help! Macro to move cells from columns to rows?

  1. #1
    Registered User
    Join Date
    05-25-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Please Help! Macro to move cells from columns to rows?

    So I have a list of thousands of names and occupations; however, they are not in the format that I would like. I was hoping someone could help me out with a VBA macro. My list currently looks like this:

    Column A Column B Column C Column D Column E
    Name 1 Name 2 Name 3
    -----------------------------------------------------BLANK ROW------------------------------------------
    Occupation 1 Occupation 2 Occupation 3

    I'd ulitmately like the information to look like the following

    Column A Column B
    Name 1 Occupation 1
    Name 2 Occupation 2
    Name 3 Occupation 3

    I hope someone can please help me with this, I can do it by cut and paste. But, that would take me hours and hours of just clicking the mouse. I've included an attachment excel example in case someone doesn't understand what I'm trying to do. Oh, and I use Excel 2007 in case you need that information. Any help will be tremendously appreciated.

    Excel Forum Help Question.xlsx

    Sean

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Please Help! Macro to move cells from columns to rows?

    Try this and see if it is what you want.
    Attached Files Attached Files
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Registered User
    Join Date
    05-25-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Please Help! Macro to move cells from columns to rows?

    Dave,

    Thanks for the help. It isn't exactly what I'm looking for because I didn't explain my situation perfectly. After the first three names and occupations, the columns reset so that Name 4 is now under Name 1 column. See attached spreadsheet so you can see what I mean. Thanks for your help in advance.

    Excel Forum Help Question.xlsx

    Sean

  4. #4
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Please Help! Macro to move cells from columns to rows?

    Ok, I am looking at your next workbook and can't help seeing another problem coming up after I do the next macro due to there being only two sets of data equaling 6 names in totall. Unless of coarse the maximun amount of names is 6. So I am going to go ahead and do it on the assumption that will be more than 6 names at any given time.

    Try this
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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