+ Reply to Thread
Results 1 to 7 of 7

Transpose and Merge headings

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    14

    Transpose and Merge headings

    Im having a formatting issue on some data. I have a list of repeated names with dated results. I want to merge the single name above the dated results on a new page.

    I have attached an example for a more complete explanation. Thank you for your help!!
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Transpose and Merge headings

    Give this a try

    Please Login or Register  to view this content.
    Last edited by mike7952; 10-01-2012 at 09:10 PM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    08-28-2012
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Transpose and Merge headings

    Hi Mike, thank you for your help on the previous post "transpose and merge headings" it is working beautifully. I would like to add a coulumn to it and unsure how to add make it work. We have added "Cumm BOE" on the right of BOE in the "Results" page after the macro is ran. This function simply adds monthly production month 1 to month 2, month three and keeps a running tabulation of cummulative production so it is easy to line graph. We will then graph this on an additional page called "ProductionGraph". The additional data for Cumm BOE will be sourced from the "MasterData" page. My ultimate goal is to combine 3-4 macros to make a simple click from a raw data download and make it all appear in a prodution report format. Any advise would be helpful.

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Transpose and Merge headings

    Not sure what your wanting see if this works. If not upload another example with the Cumm BOE data

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-28-2012
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Transpose and Merge headings

    Mike I am getting a runtime error "13" the debug directs me to this code below , specifically the first line

    For i = 2 To UBound(a)
    x = Join(Array(a(i, 1), a(i, 2), a(i, 3)), ",")
    If Not .Exists(x) Then
    .Item(x) = Join(Array(a(i, 6), a(i, 7), a(i, 8), a(i, 9), a(i, 10)), ",")
    Else
    .Item(x) = .Item(x) & "," & Join(Array(a(i, 6), a(i, 7), a(i, 8), a(i, 9), a(i, 10)), ",")
    End If
    Next

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Transpose and Merge headings

    Im not sure has your workbook data structure changed from the uploaded example? Try the attached

    ExampleWB.xlsm

  7. #7
    Registered User
    Join Date
    08-28-2012
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Transpose and Merge headings

    no nothing has changed but.... It mysteriously started working.

    Thank You

+ 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