+ Reply to Thread
Results 1 to 5 of 5

Working with large data files

  1. #1
    Registered User
    Join Date
    05-10-2019
    Location
    Houston, TX
    MS-Off Ver
    365
    Posts
    5

    Working with large data files

    I work with large excel files, some are around 150MB. If I add formulas to the file, just basic vlookups, the processing takes forever and usually freezes up excel, it will sometimes stop responding and I lose my changes. Other programs are not affected. I explained this to our IT person and they purchased additional RAM for my laptop, I now have 32GB of RAM. However, I don't believe it made any type of difference. Would it be the processor that I would need to improve? I guess I'm asking what type of machine / features do I need to make excel process formulas and data at a faster speed? I basically just use Adobe Standard, Excel and Outlook for 90% of my work. Any input is appreciated.

    Also, inserting subtotals isn't ideal either. I've attempted it and let it start to run and it would be under 10% complete after 5 minutes or so.

    I have 64-bit Office. CPU / Memory in task manager stay below 40% while excel is processing the data.


    Thank you!

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

    Re: Working with large data files

    Not much to go on. You say that you are using basic VLOOKUP()s without any detail. If these basic lookups are linear "exact match" lookups (4th argument of VLOOKUP() is FALSE or 0), then you need to know that basic exact match lookups are very slow on large data sets. When the topic comes up, I see dramatic improvements by doing what is needed to switch to much more efficient binary "approximate match" lookups (4th argument of VLOOKUP() is TRUE or 1 or omitted). This means sorting the main database, but there are potentially significant performance improvements to be made.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    05-10-2019
    Location
    Houston, TX
    MS-Off Ver
    365
    Posts
    5

    Re: Working with large data files

    Ok, then not much I can do. I use FALSE in the vlookup string. For example, I am looking up this value: Katy, TX 77449. The lookup table is sorted. I am looking up sales tax rates based off of city, state and zip code so it really has to be an exact match. Thanks for the reply.

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

    Re: Working with large data files

    it really has to be an exact match.
    I can't remember where I read it, but somewhere I read that over a database as small as like 50 or 100 rows, it is faster for the computer to do two binary searches than it is to do one linear search. In other words, this:
    =IF(VLOOKUP(lookup_value,lookup_table,1,TRUE)=lookup_value,VLOOKUP(lookup_value,lookup_table,5,TRUE),NA())
    on a large data base is faster than:
    =VLOOKUP(lookup_value,lookuptable,5,FALSE)

    Even if exact match is a necessary part of the algorithm, I would expect that there are significant performance gains to be realized by exploring better search algorithms than VLOOKUP's linear exact match algorithm.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Working with large data files

    Without understanding or seeing your workbooks, it may be hard to provide you with an alternative solution. Maybe a sample workbook of a before and after scenario? Only need a half dozen or so records to demonstrate what you are trying to do.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Large CSV files data change.
    By Xerobacter in forum Excel General
    Replies: 3
    Last Post: 06-16-2018, 12:50 PM
  2. Working with Large Data in Excel vs. Access
    By casper3043 in forum Excel General
    Replies: 1
    Last Post: 01-27-2014, 12:56 AM
  3. Gathering data from a large number of files
    By InterstateRentals in forum Excel General
    Replies: 4
    Last Post: 12-07-2013, 12:20 PM
  4. Working with large sets of data
    By Bishonen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 06:19 AM
  5. Extracting Data from Large Excel Files
    By ammarkhan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2010, 02:03 AM
  6. Excel crashing when working with large files
    By theradpotato in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-05-2010, 01:40 PM
  7. [SOLVED] working with large text files
    By mark in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-12-2005, 12:05 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