+ Reply to Thread
Results 1 to 2 of 2

Max string size / best way to loop through 200k rows

  1. #1
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Max string size / best way to loop through 200k rows

    Hi all,

    I know I'm cheating a bit by stating two questions in the topic, but they're related.

    I have two workbooks - one with 9,000 rows, another with 200,000 rows.
    On the 9,000 rows, I need to find if they're available in the one with the 200,000 rows and if so, copy a value from there to the 9,000row sheet.

    For quick comparison, I tried to do the following:
    Please Login or Register  to view this content.
    however, then the following then gives me 63,749 (the number of rows in Sheet1 in Workbook ("A") = 194,544)
    Please Login or Register  to view this content.
    And I can't for the love of god not figure out why.

    The essence of my code:

    Please Login or Register  to view this content.
    However, this takes forever, even though it's only 9K rows....
    Any suggestions?

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

    Re: Max string size / best way to loop through 200k rows

    Transpose function works correctly only 2^16, 65536 rows.
    Not reading much of your code, I would use array and dictionary co compare/output.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] extract multi-letter string bits from string depending on size and case
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-18-2017, 10:41 PM
  2. VBA on workbook with 200k + rows. Help me speed up processing
    By nobodyukno in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-15-2017, 12:31 PM
  3. Loop through a string and find the character/string need
    By dluhut in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-15-2014, 11:51 AM
  4. Loop through all occurrences of a string within a string
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2013, 10:16 AM
  5. [SOLVED] Edit Recorded Macro to filter column with about 200k rows based on a list of values.
    By rocksan in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-19-2012, 03:35 AM
  6. Replies: 0
    Last Post: 10-26-2011, 06:35 AM
  7. Determine last row for file that contains over 200K rows.
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-14-2011, 02:11 PM

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