+ Reply to Thread
Results 1 to 7 of 7

convert a single row fo data with repeating columns to multiple output rows

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    17

    convert a single row fo data with repeating columns to multiple output rows

    I am trying to convert a single row of data with repeating columns to multiple output rows

    Sample Attached.
    Attached Files Attached Files
    Last edited by jmewebb; 12-05-2012 at 05:38 PM. Reason: added sample workbook

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: convert a single row fo data with repeating columns to multiple output rows

    jmewebb, welcome to the forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: convert a single row fo data with repeating columns to multiple output rows

    See the attached
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-26-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: convert a single row fo data with repeating columns to multiple output rows

    It is close to working but I am running into two issues.

    1. It is not returning all of the names. It is putting the correct number of projects in the rows just not adding all names. I have six columns of names if that makes any difference.
    2. The original list has 1533 rows and I copied the project formula down to the 4000+ row. However, it cuts the projects off at 1521 and will not list the remaining 12 projects.

    I appreciate your help!

  5. #5
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: convert a single row fo data with repeating columns to multiple output rows

    to fill Project Name write at A2 (array formula)
    {=IFERROR(INDEX(Current!$A$1:$A$3;TRUNC(SMALL(IF(LEN(Current!$B$2:$D$3)>1;ROW(Current!$B$2:$D$3)*100+COLUMN(Current!$B$2:$D$3));ROW(1:1))/100));"")}
    copy down

    to fill Resource write at B2 (array formula)
    {=IFERROR(INDEX(Current!$A$1:$D$3;TRUNC(SMALL(IF(LEN(Current!$B$2:$D$3)>1;ROW(Current!$B$2:$D$3)*100+COLUMN(Current!$B$2:$D$3));ROW(1:1))/100);MOD(SMALL(IF(LEN(Current!$B$2:$D$3)>1;ROW(Current!$B$2:$D$3)*100+COLUMN(Current!$B$2:$D$3));ROW(1:1));100));"")}
    copy down
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-26-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: convert a single row fo data with repeating columns to multiple output rows

    The Project Name worked but I couldn't get the Resources to work. The cells remain blank. I have six columns of Resources, would that make a difference?

    Thank you!
    Last edited by jmewebb; 12-05-2012 at 11:14 PM.

  7. #7
    Registered User
    Join Date
    03-26-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: convert a single row fo data with repeating columns to multiple output rows

    I added an updated sample with the same number of columns as my spreadsheet.
    Attached Files Attached Files

+ 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