+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP performance issues

  1. #1
    Registered User
    Join Date
    01-11-2010
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    1

    VLOOKUP performance issues

    I designed a spreadsheet which uses a lot of VLOOKUPs and it takes a very long time to recalculate. If there is anything you can suggest to speed up the processing I would greatly appreciate it. I don't know if there is another way I could do this, but this just seemed to make sense and it works just the way we want it but it just takes too long.

    Here is what the spreadsheet is designed to do:

    We have data that is pasted into excel from another source. The data is broken up into account number, date, check number, and amount. Multiple payments from the same account can occur in one month so the data must be totaled. There is a custom function called concatif which works just like sum if but concatenates text. There are VLOOKUPs performed on the account number and the corresponding date, check number, and amount are inserted in the table.

    Thanks in advance for your help.

    I realized the vlookups were not the problem it was the VBA code.

    Here is the concatif funtion

    Please Login or Register  to view this content.
    Last edited by jbernhard; 01-12-2010 at 12:56 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: VLOOKUP performance issues

    Hi jbernhard,

    welcome to the forum. However ...

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    I'll add the tags for you this time, but I'll expect you to use them from now on.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VLOOKUP performance issues

    There's a minimal performance improvement by changing these formulas

    E3:
    =INDEX(N:N, MATCH(A3,M:M,0))

    D3: =INDEX(O:O, MATCH($A3,$M:$M,0))

    With 2000 of those CONCATIF() formula all trying to recalculate with every change to your sheet (UDFs like this tend to be volatile)... I would be tempted to switch to some sort of active macro.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: VLOOKUP performance issues

    hi,

    To add to JB's suggestion of using some sort of macro (I'm guessing to initiate the calculation process).
    Here is a link to some further discussion about design & calculation of UDF's on Charles Williams' site: http://www.decisionmodels.com/calcsecretsj.htm

    I suggest reading all of this link (esp the "Automatic and Function key Calculation slower than VBA calculation" section just over 1/2 way down) & the rest of the frames that are linked too.

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

+ 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