+ Reply to Thread
Results 1 to 6 of 6

Long calculation time under a small size file

  1. #1
    Registered User
    Join Date
    07-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2016
    Posts
    13

    Long calculation time under a small size file

    Dear All,

    I recently wrote an inventory excel file and regardless of the file size the calculation time seem ridiculously long (20-30 seconds). I have already recreated different visions of formulas in numbers of trial runs.

    • Could it be the number of formulas that increase the calculation time?
    • Could it be the number of conditions within the formulas that affect the time?
    • or Could it be the multiple locations of the look up value requested from different sheets?

    Attached file as an example of my file.

    Thanks in advance.
    Mike
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Long calculation time under a small size file

    Hi hellsaint- I think a big part of your problem is the use of full-column references, particularly with the LOOKUP function. I switched A:A to $A$2:$A$5000, and so forth, in columns C and D of your 'Dispatched' sheet. Seems to be quicker, especially on open.

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Attached Files Attached Files
    Last edited by leelnich; 06-05-2017 at 11:52 PM.

  3. #3
    Registered User
    Join Date
    07-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Long calculation time under a small size file

    Dear leelnich,

    Thanks a lot. It does shorten the time. I am so used to the full-column references which seems like a bad habit.

    Regards,
    Mike

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Long calculation time under a small size file

    Stay tuned, I'm working on a few formulae, too. Example: in Dispatched!D2 and down:
    =IF(ISBLANK(B2),"",(INDEX('Job#'!$E$2:$E$5000 &" under Job#: "&'Job#'!$F$2:$F$5000,MATCH(A2,'Job#'!$B$2:$B$5000,0))))

  5. #5
    Registered User
    Join Date
    07-30-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Long calculation time under a small size file

    About Dispatched!D2 and down, I planned to show the last entry from 'Job#' Sheet (Which might contain duplicated data) and that's why I used Lookup(2... instead of Index/Match. Mostly because I am not sure if I could have function:Index/Match return the last entry.

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Long calculation time under a small size file

    Ok, Try this. I finished the Range conversions and changed that one formula. Now it's really quick!

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Attached Files Attached Files

+ 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. [SOLVED] Charting small amounts of data over long time frames (possibly broken x axis)
    By bjsebeck in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 05-05-2015, 09:39 AM
  2. Large file size for small workbook - cache?
    By NMullis in forum Excel General
    Replies: 2
    Last Post: 04-01-2012, 06:58 AM
  3. Calculation takes long time
    By dorend in forum Excel General
    Replies: 10
    Last Post: 12-13-2011, 06:17 PM
  4. Ridiculously long calculation time
    By dbconfession in forum Excel General
    Replies: 1
    Last Post: 09-14-2009, 01:15 AM
  5. Anyway to make Big file size and slow file small and faster
    By sa02000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2009, 04:22 PM
  6. Replies: 1
    Last Post: 11-02-2005, 06:17 PM
  7. Problem with Long Calculation Time
    By albanshere in forum Excel General
    Replies: 2
    Last Post: 04-18-2005, 03:53 AM

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