+ Reply to Thread
Results 1 to 9 of 9

Merge multiple duplicate rows into columns - more than 65536 rows

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    SM, Ro
    MS-Off Ver
    Excel 2007
    Posts
    7

    Merge multiple duplicate rows into columns - more than 65536 rows

    I am using this code to merge duplicate columns into rows.

    Please Login or Register  to view this content.
    And it's working very well, but now I have to manage more than 71000 positions.
    Up to 65536 it's ok but for bigger values (I've changed the number in the code) doesn't work.
    Is there a workaround for that?

  2. #2
    Administrator arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,147

    Re: Merge multiple duplicate rows into columns - more than 65536 rows

    When you say it doesnt work, what do you mean?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Guru
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,122

    Re: Merge multiple duplicate rows into columns - more than 65536 rows

    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,122

    Re: Merge multiple duplicate rows into columns - more than 65536 rows

    Or
    change the variable
    Please Login or Register  to view this content.
    in to
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-13-2012
    Location
    SM, Ro
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Merge multiple duplicate rows into columns - more than 65536 rows

    I get a run-time error 9, subscript out of range and a debuger highlight for row: sNames(nIndex, 2) = vInput(i, 2)


    For the initial code, I get moved only first row into column.

  6. #6
    Forum Guru
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,122

    Re: Merge multiple duplicate rows into columns - more than 65536 rows

    If this does not work, we need to see your data

    Please Login or Register  to view this content.
    Last edited by AB33; 04-05-2013 at 09:17 AM.

  7. #7
    Registered User
    Join Date
    12-13-2012
    Location
    SM, Ro
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Merge multiple duplicate rows into columns - more than 65536 rows

    This is working indeed, a big thanks for your tips!

  8. #8
    Administrator arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,147

    Re: Merge multiple duplicate rows into columns - more than 65536 rows

    a3des,

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

  9. #9
    Registered User
    Join Date
    12-13-2012
    Location
    SM, Ro
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Merge multiple duplicate rows into columns - more than 65536 rows

    I have already added reputation to helper but I admit I didn't found where to mark as solved. Sorry about that, I will be more carefull in the future!

+ 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