+ Reply to Thread
Results 1 to 5 of 5

sheet slowing down

  1. #1
    Registered User
    Join Date
    11-29-2018
    Location
    Antwerp, Belgium
    MS-Off Ver
    MS Office 2016
    Posts
    9

    sheet slowing down

    Hi everyone,

    I have a sheet that has to vlookup information from another sheet but it slows down my file terribly, especially in combination with macro's. Is there a trick to make it faster again? Unfortunately it isn't an option to have the data from the second sheet inserted on a separate tab of the first sheet since the people who handle the second sheet may not have access to the first one.

    I hope you understand what I'm trying to say? :-)

    Thanks for your help!

    Winoc

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: sheet slowing down

    a few things i can think of:
    1) use =Index(Match()) functions instead of vlookup.
    2) when using index match or vlookup make sure you aren't selecting the entire column of data. (ex. S:S instead use S1:S5000) <-- this saves on data that must be analyzed

    You want to use Index Match over vlookup for many reasons.
    1) in a vlookup your criteria column must be the first column. With index match your criteria column can be ANY column that you specify.
    2) When using index match your matching column can be only one column vs a vlooup you have a whole slew of columns in the array and you must indicate with a numbered value what column you are selecting.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: sheet slowing down

    I don't know about "tricks" to make this faster, but there are certainly some things to consider:

    1) Are you using slow, linear lookups (4th argument of VLOOKUP() is 0 or FALSE)? If so, change them to much more efficient binary lookups (4th argument of VLOOKUP() is 1, TRUE, or omitted. Also note that the lookup table must also be sorted in ascending order, if it isn't already). https://support.office.com/en-us/art...8-93a18ad188a1
    2) Eliminate duplicated effort. If you are doing the same lookup multiple times, use a helper column to perform the slow lookup step once, then use INDEX() functions to extract the needed information (see post #6 and post #13 here: https://www.excelforum.com/excel-for...ml#post4041181 ).
    3) Consider other tools/utilities (would this be faster as a filter? or maybe a utility like Get and Transform can extract the necessary information more efficiently?).
    4) Get rid of volatile functions (INDIRECT() OFFSET() are the big offenders).

    Does any of that help redesign your spreadsheet?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    10-18-2016
    Location
    Anywhere, MX
    MS-Off Ver
    2013
    Posts
    5

    Re: sheet slowing down

    When my spreadsheets start getting large and slowing down, I recreate them and it typically does the trick. Odd, but it seems to work.

  5. #5
    Registered User
    Join Date
    11-29-2018
    Location
    Antwerp, Belgium
    MS-Off Ver
    MS Office 2016
    Posts
    9

    Re: sheet slowing down

    this is very helpful, thanks! I also found a way in VBA to not show how Excel's running the macros and this helped an awful lot. I still think many of my VBA codes could be shortened but I just don't have the knowledge to do so :-)

+ 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. VBA Code slowing down active sheet
    By pchugh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2018, 01:53 AM
  2. [SOLVED] SUMPRODUCT & INDIRECTS slowing the sheet down?
    By CraigMcKee in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-28-2018, 05:37 AM
  3. Which Formulas are Slowing Down my Sheet?
    By HWScott in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-30-2016, 01:32 PM
  4. forum slowing down again?
    By FDibbins in forum The Water Cooler
    Replies: 3
    Last Post: 02-21-2014, 04:34 PM
  5. Calculate slowing sheet
    By antony moseley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-18-2010, 05:19 AM
  6. Slowing Down a Macro
    By tedd13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2006, 04:15 PM
  7. slowing down
    By nowfal in forum Excel General
    Replies: 3
    Last Post: 03-28-2006, 08:33 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