Results 1 to 2 of 2

Transpose a variable number of columns to Rows

Threaded View

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    2

    Transpose a variable number of columns to Rows

    Hello,

    I would appreciate it if someone would provide me with some code that will transpose a variable number of date columns to rows.

    The first 7 columns in the attached file (the version that is 300 KB) will always contain the same type of data:

    Column 1: Title
    Column 2: Asset ID
    Column 3: MSO
    Column 4: MSO ID
    Column 5: SD/HD
    column 6: Network
    Column 7: Content Type

    Columns 8 and beyond will contain a date. When the user select 10 Days, there will be 10 date columns; when the user selects 90 days, there will be 90 columns of dates.

    The attached file has on worksheet named Source and another named target. The Target worksheet contains a sample of how I would like to format the data.

    Ideally, it the cell contains a value of Zero, then a row would not be inserted.


    Thanks,

    Walt
    Attached Files Attached Files

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