+ Reply to Thread
Results 1 to 11 of 11

Transpose Large Amount of Data

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    34

    Transpose Large Amount of Data

    Hi,

    I currently have a code (written by Mike2579 on this forum) which checks column A values, if they're similar, then it will transpose all the corresponding data in column B. It works great, and the speed is fantastic, however, I'm not having any luck with changing the code so that it transposes the values in column C, instead of B. (Also I have over 300,000 lines of data I'm working with.) Please see the attached spreadsheet for further explanation.
    Any help is greatly appreciated.

    Thank you.


    The code is:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by engineerlady; 02-07-2013 at 10:17 PM.

  2. #2
    Registered User
    Join Date
    06-24-2004
    Posts
    78

    Re: Transpose Large Amount of Data

    I'm not expert by any means, but the part of the code where aArr= has the .offset(,1) at the end is directing it offset 1 column from "A" (which would be column B).

    so if you want to compare column A to C, just as it does with A to B, you would need to change that offset to (,2).

    you might have to change other part of the code, but that part is directing to column B

  3. #3
    Registered User
    Join Date
    06-24-2004
    Posts
    78

    Re: Transpose Large Amount of Data

    FYI by changing the palce of the comma to (1,) would offset by row, instead of column

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Transpose Large Amount of Data

    engineerlady,

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code in [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    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]

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,536

    Re: Transpose Large Amount of Data

    1) You need to edit your post and wrap vba code with the code tag.
    It's a MUST rule here.
    i.e
    [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code]

    2) See if the attached is what you wanted.

  6. #6
    Registered User
    Join Date
    01-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Transpose Large Amount of Data

    arlu 1201 thanks for bringing that to my attention.

  7. #7
    Registered User
    Join Date
    01-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Transpose Large Amount of Data

    GregJG, I have done your recommendation for changing the aArr= equation. I've also changed the offset values in the code to (,2) and it still does not work. Thanks for the suggestion.

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Transpose Large Amount of Data

    Mike's adjusted code

    Please Login or Register  to view this content.

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,536

    Re: Transpose Large Amount of Data

    engineerlady

    Sorry, but one of Admin here lost the file attached to my previous post. Not my fault.

  10. #10
    Registered User
    Join Date
    01-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Transpose Large Amount of Data

    AB33, Thank you so much for helping me with the code!! It works awesome! I appreciate you spending the time on it!

    jindon, No worries on your post, I'm sorry it got lost. Thanks for your work on it. I appreciate you trying to help.

    Have a great weekend!

  11. #11
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Transpose Large Amount of Data

    Engineerlady,
    You are welcome!

+ 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