+ Reply to Thread
Results 1 to 2 of 2

Transpose Data in every 2nd row (sorta) to column on right [easy if you know how to code]

  1. #1
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Transpose Data in every 2nd row (sorta) to column on right [easy if you know how to code]

    Hello All,

    Please open my Spreadsheet so you know what I am talking about As simple as the task is it may seem complicated if you do not open the spreadsheet first

    I have a list of Medical Clinics in Quebec, Canada that I need cleaned up but can't figure out a code for this. It is pretty simple if you are proficient with VBA Right now the list contains Clinic name in column A and the associated address shows in the row underneath it, the next row after the address is now a new clinic name and like the previous the address is underneath it, and so on. I would simply like to transpose the address for each Clinic Name and place it in column B and alligning it, at the same time have the region headers like I have already there (view Sheet 1). The problem why I can't do it is because eventually the list breaks as we move on to another region.

    The Sheet titled "Sheet2" is where the Data is. The sheet titled "Sheet 1" is my vision of what I would like to do.

    Does anyone know a code that won't break at the region changes and paste all the data aligned on the next sheet like I have done manually?

    I appreciate your help tremendously!
    Attached Files Attached Files
    Last edited by lougs7; 11-08-2016 at 01:56 PM.

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

    Re: Transpose Data in every 2nd row (sorta) to column on right [easy if you know how to co

    Try this...

    Please Login or Register  to view this content.
    It assumes the addresses start with a number. It misses those that don't.
    Last edited by AlphaFrog; 11-08-2016 at 03:12 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Any Easy VBA to do the transpose?
    By NeedForVBA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2016, 09:20 AM
  2. What is a function that will sorta and place random data in a table?
    By mpkelly6 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-29-2015, 12:37 PM
  3. Easy Way To Transpose 3 Colums of Data?
    By wings1080 in forum Excel General
    Replies: 17
    Last Post: 02-03-2015, 04:56 PM
  4. [SOLVED] Text to Column with Single Column Transpose - VBA code help
    By i2rule in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-13-2014, 05:09 PM
  5. [SOLVED] How to transpose the datas of part code and supplier into row and column
    By PRADEEPB270 in forum Excel General
    Replies: 1
    Last Post: 10-12-2012, 06:58 AM
  6. [SOLVED] Easy Transpose Macro
    By ebdmbfan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2012, 03:38 PM
  7. Easy way to transpose address info from one long column into neatly sorted rows.
    By hhhava in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2012, 03:26 AM

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