+ Reply to Thread
Results 1 to 3 of 3

Transposing column information into multiple rows

  1. #1
    Registered User
    Join Date
    02-25-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Transposing column information into multiple rows

    Hi,

    I'm new to Macros. I'm trying to analyze the time spent by each system for a defect if the defect spans across multiple systems. I have the information stored as single row for each defect where in each system is represented as a column header.

    Can some one help to put this defect details in multiple rows. Say defect1 spans across 3 systems then I need 3 rows for the defect1 with the system names separated and their corresponding time spent.Only if the time spent has a value ( non empty) then the row should be created for that system.
    Enclosing the sample xls with the current view and desired output.

    The Multiple app column is the count of applications the defect has traversed. The first 2 columns ( Defect Id, Project No) should be repeated and based on the multiple app count the next 2 columns ( Sys working on defect, time spent) should be transposed. These details are needed in a separate (new) worksheet.
    Attached Files Attached Files
    Last edited by lgomathi; 02-25-2011 at 06:47 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,359

    Re: Transposing column information into multiple rows

    Hi Igomathi and welcome to the forum.
    Find the attached with the following code
    Please Login or Register  to view this content.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-25-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Thumbs up Re: Transposing column information into multiple rows

    Thanks for your help. It worked like Magic. I extended this code to read more systems in columns till DB by increasing the col counter.

    For ColCtr = 5 To 109.

    Thanks Again.
    Gomathi

+ 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