+ Reply to Thread
Results 1 to 3 of 3

Exact Match Lookups Slowing Down Calculations

  1. #1
    Registered User
    Join Date
    04-17-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    2

    Exact Match Lookups Slowing Down Calculations

    Hello Excel people..

    I have found lots of very helpful fixes and solutions over the years on this forum (thanks!), but this is my first actual post so I'm hoping you may be able to give me some suggestions.

    I have several large (100MB - 300MB) Excel files that retrieve MySQL data with ODBC connections. I am struggling with the time they take to recalculate (I've had to turn automatic calculation off) - the largest ones can take up to an hour to completely recalculate even on a high spec PC with loads of RAM etc.

    From what I have read the main speed issue is probably the amount of exact match lookups that get completed. I use INDEX(MATCH()) on multiple sheets, some of which have over 100,000 rows so I've been trying to replace these lookups with something less processor intensive.

    I understand that this would be an option to look for a value in column A and return the corresponding value in column B:

    Sort the data by column A ascending
    Check that the value to search for is in column A
    If so run a non-exact match (ascending) lookup to return the relevant value from the column B

    Since there are multiple sheets containing the lookup data and results I've been trying to carry out the sort using formulas (rather than the Data > Sort menu).

    I can easily sort the column A data in another column using SMALL(A:A,ROW()) in each cell. What I'm stuck on is how to keep the corresponding column B values alongside the original column A values (now that column A is sorted). This would be easy using an exact INDEX(MATCH()) lookup but as I mentioned, that is what I need to avoid.

    Can anyone see how I can do this, or have any better suggestions on how to speed up the calculations, probably by removing the exact match lookups?

    Thanks for your help!

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

    Re: Exact Match Lookups Slowing Down Calculations

    If you use formulas to sort, you'll be back in the same boat; the lookup will be fast and the sort will be slow.

    Why not sort from the UI?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-17-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    2

    Re: Exact Match Lookups Slowing Down Calculations

    Thanks for your speedy reply!

    Some things I had read suggested that where large data is concerned, sorting is quick and non-exact match lookups are also quick - but exact match lookups take much more processing power. Hence trying to go down this route, but that info may well not be true.

    I had avoided using the UI Sort as it would need to be done on multiple sheets, possibly pasting values each time as data I need to sort is already formulas referencing other sheets/cells. However maybe that is the way to go, possibly recording macro(s) to do it that way.

    I'm open to all suggestions!

+ 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. To Sort exact and partial exact match for a single column.
    By Jagdev in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-22-2014, 05:08 AM
  2. [SOLVED] Dynamic Ranges Slowing Workbook Calculations - Options to Remedy?
    By grant95783 in forum Excel General
    Replies: 4
    Last Post: 02-27-2014, 02:08 PM
  3. Calculations slowing performance
    By Dreamwine59 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2010, 06:58 PM
  4. slowing down a macro for calculations
    By pete_22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2009, 12:06 AM
  5. [SOLVED] Lookups-an exact match is not found
    By Mike O'Donnell, Columbia MD in forum Excel General
    Replies: 1
    Last Post: 05-13-2005, 10:06 PM

Tags for this Thread

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