+ Reply to Thread
Results 1 to 6 of 6

Excel takes over an hour to calculate !!!

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Excel takes over an hour to calculate !!!

    I am trying to 'graph' various traffic data in excel.
    Unfortunately I cannot post all of my workbook as it is over 10mb. I even had to disconnect the sheet with pivot tables and 'ultimately' the graph I am trying to achieve. (I have attached a screenshot to try and show pivot tables and chart etc)

    My data source is a text file which I import and is usually around 120,000 rows, which can take forever to 'calculate'.

    Richard Buttery very kindly offered me a solution to an issue I was having generating 85th percentile data in my chart (Richards work is highlighted in yellow).

    However, having done some research it seems that using COUNTIF(S) on a large amount can have performance issues (people seem to be annoyed at 15-20 seconds) so an hour seems a tad excessive and I'm not convinced that this is the root cause of my issues.

    Clearly there is something not right with the way I have constructed my 'report'.

    dynamic traffic chart.xlsxChart Sheet.JPG

    Wonder if anyone can give performance optimising advice?

    Many thanks

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Excel takes over an hour to calculate !!!

    there is not enought data in the file to advice
    do you have smth like =date() in it? if Yes then OFFSET is not the best choice
    it's not very good to define dimention of your UDN every time with COUNT(UDN column)

    looked here?
    http://www.decisionmodels.com/calcsecrets.htm

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excel takes over an hour to calculate !!!

    Hi,

    The first thing I'd do is change the named ranges. At the moment whole columns are being included in the name definition. e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You should limit that to just the number of rows necessary. e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or probably better the dynamic version
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    10-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Excel takes over an hour to calculate !!!

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    The first thing I'd do is change the named ranges. At the moment whole columns are being included in the name definition. e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You should limit that to just the number of rows necessary. e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or probably better the dynamic version
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks again for your expertise Richard. I've removed a lot of 'unused' name ranges which seems to have helped things quite a lot.

    Using FORMULA]=OFFSET(Data!$O$2,,,COUNT(Data!$O1:$120000),1)[/FORMULA]
    is discounted as the number of rows varies greatly for each txt file that is imported.

    I'm not sure I understand the differences using COUNT and COUNTA in the context you mentioned and how COUNTA makes the selection 'dynamic' whereas COUNT returns whole columns. I was under the impression the difference was COUNT returns numbers and COUNTA returns any character?

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excel takes over an hour to calculate !!!

    Hi,

    Apologies, quite correct.

    I'm so used to using COUNTA in the Offset function rather than COUNT that it seemed odd to me and I'd incorrectly thought it was counting all the cells in a column. Ignore my mistake.

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Excel takes over an hour to calculate !!!

    Perhaps replacing OFFSET which is volatile with an INDEX function might speed thing up also =INDEX($O$2:INDEX(O:O,MATCH(9.9999999E307,O:O)))


    PS also please avoid quoting entire posts, the thread gets messy and difficult to read
    Last edited by Pepe Le Mokko; 11-25-2015 at 01:38 PM.

+ 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] Excel takes along time to calculate
    By TonyL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-03-2014, 03:43 PM
  2. Checking time it takes to excel to calculate
    By Alexander_Golinsky in forum Excel General
    Replies: 3
    Last Post: 05-06-2012, 07:07 PM
  3. [SOLVED] Excel takes along time to calculate
    By TonyL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  4. Excel takes along time to calculate
    By TonyL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. [SOLVED] Excel takes along time to calculate
    By TonyL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. Excel takes along time to calculate
    By TonyL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. Excel takes along time to calculate
    By TonyL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. Excel takes along time to calculate
    By TonyL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-30-2005, 08:05 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