+ Reply to Thread
Results 1 to 6 of 6

Transposing Data from Row to 2 Column format

  1. #1
    Registered User
    Join Date
    06-23-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2003
    Posts
    9

    Transposing Data from Row to 2 Column format

    Hello all,

    Heres my problem:

    I have to break down these flight routes from row format to 2 column format.

    Example:

    Data:
    1 2 3
    YQQ YVR YQQ

    Result wanted:
    1 YQQ YVR
    2 YVR YQQ

    The difficulty here is that the data sample does not have the extra "YVR" embedded in the row.

    I have attached a test worksheet with my preferred results.
    Thanks for the help guys!

    Test worksheet.xlsx
    Last edited by cwc12; 07-11-2011 at 12:26 PM.

  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: Transposing Data from Row to 2 Column format

    Please provide the abbreviation codes required for all airlines in your database.

    CM = CENTRAL MOUNTAIN
    AC = AIR CANADA
    WJ = WESTJET
    etc...
    _________________
    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 JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Transposing Data from Row to 2 Column format

    This will do it, just add to the section of the code with the first 5 letters of the airline name and the abbreviation pairs starting at line 25....

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-23-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Transposing Data from Row to 2 Column format

    Thanks for the help! works perfectly!

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Transposing Data from Row to 2 Column format

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  6. #6
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Transposing Data from Row to 2 Column format

    Alternative:

    Please Login or Register  to view this content.



+ 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