+ Reply to Thread
Results 1 to 14 of 14

Excel seep up calculating time

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    33

    Question Excel seep up calculating time

    Hi,

    I'm developing a tool for a client and it's taking about 2 to 3 seconds to calculate after any change on it.

    I don't know much about how excel calculates, for example, when I change some value, does it calculate all the sheets or just the one I'm on?

    So, I have a database and my formulas looks like this:
    Please Login or Register  to view this content.
    I thought this was the better way to get the data because it kind of "transform" the database into a binary.
    I thought maybe the sheet "Resultado" was the one ******* everything up, because it has almost 400 cells doing this calculations, but when I deleted it, nothing changed.

    Mardelle.xlsx

    My goal is to make calculation as fast as possible.

    I was introduced to PowerPivot, it would help me in this case? I don't know much about it, but if the solution is it, I can learn.

    I have a i7-3770K 3.5GHz with 16GHz of memory, my client probably have something worst.

    Thank you all for helping.

  2. #2
    Registered User
    Join Date
    02-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Excel seep up calculating time

    I would like to avoid Macros if possible.
    Last edited by heuder; 10-12-2015 at 07:01 AM.

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

    Re: Excel seep up calculating time

    There are some array formulas like =SUM(IF(ISERROR(E212:P212);0;E212:P212)) which can be replaced by =IFERROR(SUM(E212:P212);0)

    Array formulas slow things down

  4. #4
    Registered User
    Join Date
    02-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Excel seep up calculating time

    Thank you for the help, but I may face NA() values on the sum range.
    If I have NA() values on range, I need to sum the other values. That's why I'm using ={SUM(IF(ISERROR(E212:P212);0;E212:P212))}

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

    Re: Excel seep up calculating time

    I don't know much about how excel calculates, for example, when I change some value, does it calculate all the sheets or just the one I'm on?
    Excel's calculation engine should build a "dependency tree" that identifies only those cells that need to be calculated based on a given change. This may be informative: http://www.decisionmodels.com/calcsecrets.htm

    I thought this was the better way to get the data because it kind of "transform" the database into a binary.
    I'm not sure what you mean by "better". The problem that I often see with these mega array formulas is that they create a lot of duplicated effort. This is a good formula, but, when you have 400 copies of this formula, you end up with hundreds of cells performing the exact same calculation. For example, it appears that the "loja" and "ano" are the same for each copy of every similar function. This creates an extra processing load on the spreadsheet.

    I would suggest that the most effective way to speed up this spreadsheet is to rethink these array formulas and see if you can eliminate or reduce this duplicated effort. For example, I would probably try to move the "loja" and "ano" parts of the conditional sum into helper columns in the "dados" sheet.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  6. #6
    Registered User
    Join Date
    02-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Excel seep up calculating time

    As a matter of fact I think I can remove something from the formula.

    I don't know what you mean by "helper columns in the "dados" sheet"

    Loja is the "Store", my client has 8 stores and he can choose which store data will show.
    Ano is "Year", which is also another "filter".

    On sheet "Resultado", which is kind of a Income Statement, my client can choose by "Store" and "Year".

    What about PowerPivot, does anyone know something about it?

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

    Re: Excel seep up calculating time

    If you are interested in a pivot table type solution, that will probably be the easiest and fastest. Unfortunately, I am not familiar with pivot table utilities, but others here are.

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

    Re: Excel seep up calculating time

    Quote Originally Posted by heuder View Post
    Thank you for the help, but I may face NA() values on the sum range.
    If I have NA() values on range, I need to sum the other values. That's why I'm using ={SUM(IF(ISERROR(E212:P212);0;E212:P212))}
    Yes sorry about that. Perhaps the AGGREGATE function then =AGGREGATE(9,6,e212:p212)

  9. #9
    Registered User
    Join Date
    02-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Excel seep up calculating time

    Quote Originally Posted by MrShorty View Post
    I would suggest that the most effective way to speed up this spreadsheet is to rethink these array formulas and see if you can eliminate or reduce this duplicated effort. For example, I would probably try to move the "loja" and "ano" parts of the conditional sum into helper columns in the "dados" sheet.
    I tried to remove some part of the formula but it actually got worst.

    Please Login or Register  to view this content.
    So, the part I deleted was the part responsible for returning "" when there was no data under the filters, by deleting it, it would return 0 instead, which is not ideal because there are some values that are 0.

    In case of a new store, for example, the data could start in the middle of the year, if that was when the store started its activities. In that case the formula helps.
    But when I'm asking for some data that I know exist, that part is useless.

    Anyway, I prefer to leave it the way it was. Don't know where else I can rethink formulas.


    Quote Originally Posted by Pepe Le Mokko View Post
    Yes sorry about that. Perhaps the AGGREGATE function then =AGGREGATE(9,6,e212:p212)
    That worked and it seems to be making a difference. Thank you, didn't know this function.

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

    Re: Excel seep up calculating time

    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding.

  11. #11
    Registered User
    Join Date
    02-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Excel seep up calculating time

    Well, on my Database I don't have values that can be calculated, like Income, Profit, etc.
    I'm guessing if I added this values on my database I would save a lot of calculations on my formulas.

    I'll try that.

  12. #12
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Excel seep up calculating time

    It would be helpful if you could add columns to dados to calculate the year and month separately - then you could use SUMIFS rather than SUMPRODUCT. Also, you don't need to use syntax like Table1[DATA]:[DATA]] when just Table1[DATA] does the same thing.

    You don't need Power Pivot here - regular pivot tables could do what you need. You could even keep the Resultados sheet as it is and return the data from the pivot tables using GETPIVOTDATA formulas which should be a lot more efficient.
    Remember what the dormouse said
    Feed your head

  13. #13
    Registered User
    Join Date
    02-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Excel seep up calculating time

    Thank you. Usually I use syntax like Table1[DATA]:[DATA]] because I will use the same formula on different columns.

  14. #14
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Excel seep up calculating time

    OK, but:
    1. It's unnecessary. I know it allows you to fill formulas across without altering, but you can do that with copy/paste or selecting all the cells before typing the formula and then pressing Ctrl+Enter.
    2. It will add an element of volatility. If you change any item in your table, your formula will recalculate even if the item you changed is not in that column. This will likely impact the calculation times.

+ 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. Calculating time in Excel
    By skysim in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-22-2015, 07:38 PM
  2. [SOLVED] Excel calculation for adding time and calculating remaining time
    By mark888 in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 01-12-2015, 12:55 PM
  3. [SOLVED] Excel calculation for adding time and calculating remaining time
    By mark888 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2015, 06:38 AM
  4. calculating Elapsed Time in Excel
    By lveitz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-11-2013, 11:10 AM
  5. Calculating Time in Excel
    By jo15765 in forum Excel General
    Replies: 2
    Last Post: 11-30-2011, 08:11 PM
  6. Excel Formulas for Calculating Straight, Over Time & Double Time in Cost Estimating
    By redhairredhair in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2010, 09:06 PM
  7. Calculating time and pay in excel
    By wobbleman in forum Excel General
    Replies: 1
    Last Post: 12-06-2005, 07:10 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