+ Reply to Thread
Results 1 to 7 of 7

Speed/Efficiency Problem

  1. #1
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    Talking Speed/Efficiency Problem

    Hi,

    The attached workbook has a sample (the actual data is very, very large) of data. Basically I have some VBA that is concatenating all of the unique values that match for every unique VisitorID. The calculations are taking way too long and need to find a better, more efficient way of getting to the same data.

    The calculations are in columns I:M and the raw data is in columns A:F. I need to dynamically (this data is changing all the time) perform this calculation.

    When you open the file, you will notice that the calculations do not take very long. I have cut the data down from about 100,000 rows to a much smaller sample for you.

    Thanks so much for any help you can provide me!
    John
    Attached Files Attached Files
    Last edited by John Bates; 05-29-2010 at 09:08 PM. Reason: Solved

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Speed/Efficiency Problem

    Can it be assumed that col A is sorted?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    Re: Speed/Efficiency Problem

    Yes, the Data Warehouse sorts it by the first column, which will always be VisitorID (DW Only).
    Thanks so much for taking some time to help me this!!

    Thanks,
    John

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Speed/Efficiency Problem

    Is what this does actually what you want done?

  5. #5
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    Re: Speed/Efficiency Problem

    Basically, yes. Ultimately, I'm trying to consolidate every value in the data for every unique VisitorID. I'm prepping the data for some statistic analysis and I need every row to be a unique record based on a single instance of a unique VisitorID. (this is only one step in the prep).

    I don't have to have the count part on the front (I can determine that by the number of "|"s in the cell's result).

    I could have just the concatenated values for every unique VisitorID.

    Thanks!

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Speed/Efficiency Problem

    In I3 and copy down and across,

    =CatUnique($A$2:$A$100000, $H3, B$2:B$100000)

    Please Login or Register  to view this content.
    Last edited by shg; 05-29-2010 at 08:29 PM.

  7. #7
    Forum Contributor
    Join Date
    07-02-2008
    Location
    Utah
    Posts
    171

    Re: Speed/Efficiency Problem

    This is freakin' amazing!!! You are my new hero!! This is 1,000 times faster than the way I was doing it before. Thank you so much!

    BTW, I'm fairly good in Excel but I lack the VBA knowledge. Any suggestions for learning VBA (books, websites, etc.)?

    Thanks,
    John

+ 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