Results 1 to 9 of 9

Need VBA Sub for Transposing Data in Columns to Rows

Threaded View

Phoenix1975 Need VBA Sub for Transposing... 04-15-2013, 03:07 PM
AB33 Re: Need VBA Sub for... 04-15-2013, 03:15 PM
Phoenix1975 Re: Need VBA Sub for... 04-15-2013, 04:07 PM
AB33 Re: Need VBA Sub for... 04-15-2013, 04:21 PM
Phoenix1975 Re: Need VBA Sub for... 04-15-2013, 05:35 PM
AB33 Re: Need VBA Sub for... 04-15-2013, 05:41 PM
smiley1404 Re: Need VBA Sub for... 04-17-2013, 04:13 PM
AB33 Re: Need VBA Sub for... 04-17-2013, 04:23 PM
smiley1404 Re: Need VBA Sub for... 04-17-2013, 04:41 PM
  1. #1
    Registered User
    Join Date
    07-22-2012
    Location
    Austin, TX USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Need VBA Sub for Transposing Data in Columns to Rows

    I have a data file representing a list of orders along with products associated with those orders. The original data looked something like this:

    Order# | Product
    CD-23996 | 01. Database 02. Application 03. Middleware
    CD-23796 | 01. Internet Developer Suite 02. Programmer 03. Real Application Clusters 04. RAC Enterprise Edition
    CD-24117 | 01. Standard Edition 02. Application Server


    I inserted commas between the products and used text to columns on the source data to get something like this:

    Order# | Product1 | Product2 | Product3 | Product4
    CD-23996 | 01. Database | 02. Application | 03. Middleware
    CD-23796 | 01. Internet Developer Suite | 02. Programmer | 03. Real Application Clusters | 04. RAC Enterprise Edition
    CD-24117 | 01. Standard Edition | 02. Application Server

    Now I'm looking for some VBA code I can run that creates rows for each of the products broken out per order # given. So the output should look something like this:

    Order# | Product
    CD-23996 | 01. Database
    CD-23996 | 02. Application
    CD-23996 | 03. Middleware
    CD-23796 | 01. Internet Developer Suite
    CD-23796 | 02. Programmer
    CD-23796 | 03. Real Application Clusters
    CD-23796 | 04. RAC Enterprise Edition
    CD-24117 | 01. Standard Edition
    CD-24117 | 02. Application Server

    Would really appreciate the help!
    Last edited by Phoenix1975; 04-15-2013 at 05:38 PM. Reason: Thread is SOLVED

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