+ Reply to Thread
Results 1 to 12 of 12

How to speed up slow processing issue

  1. #1
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    How to speed up slow processing issue

    I have a file that is not that large in size (31kb) but has a number of cells that incorporate lookup validations as well as sumproduct formulas. It is designed for inventory forecasting and is meant to be used by sales reps to add the quantity and product name of what they think their client will order for the upcoming year. I saved the file in *.xlsb and it does not have any macros or array's, but I can't figure out how to speed up the processing. Every time I add a new number in the quantity or backfill column (or add a new row) it takes about 15-30 seconds to recalculate. It is quite madenning. Any insight or tips would be welcomed. Note I use a Mac and have excel version 15.15.

    Test Beta Inventory System v2.1.xlsb

    My goal is to ultimately upload it to Google docs so the sales reps can work on the file in a collaborative effort. That said, I am not sure Google docs will even accept or retain the formulas from an xlbs. file.

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to speed up slow processing issue

    Try deleting the named range 'Image', it doesn't look like its being used anywhere, and will be one point of slowdown.

    Although your main issue will be your sumproduct formula.

    =SUMPRODUCT(('Sales Rep Forecast Input'!$D$8:$D$49941+'Sales Rep Forecast Input'!$E$8:$E$49941)*(LEFT('Sales Rep Forecast Input'!G$8:G$49941,LEN($B8))=$B8))

    You only have data down to row 27, so why do you have formula that go to row 49941?

    That's 49927 rows more than you need, in 3 arrays per formula, 360 formula.

    53,921,160 calculations more than the 21,600 that you actually need.

    My laptop takes about 5 seconds to calculate with your ranges, reducing 49941 to 5000 (allowing for a lot of expansion) reduces it to less than 1 second, reducing it to 500 it becomes instant.
    Last edited by jason.b75; 10-23-2015 at 02:04 PM.

  3. #3
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: How to speed up slow processing issue

    I don't see where that named range is located. Where did you see it?

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to speed up slow processing issue

    Go to the Formulas tab, then Name Manager.

    Check back to my previous post as well, I've edited it with some additional observations.

  5. #5
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: How to speed up slow processing issue

    Thank you. I forgot about the Named Ranges as I rarely use them. That said, I didn't realize those three name ranges were even in the file so I deleted all three.

    In regards to the the data extending down to down 49941 I just used a large range number to cover any new rows/records that a sales rep added. I wanted to be sure it would calculate. In reality, I will not need more than about 1000 rows, if that. I did not think about the fact the large range could cause a slow down. I will make adjustments to mine to see how much faster I can make it on my Mac. I will respond with an update shortly.

    Thank you!

  6. #6
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: How to speed up slow processing issue

    That was it!! I just reduced the size of the range and it eliminated the processing issue. Thank you!!

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to speed up slow processing issue

    Try this formula instead, longer but faster, without reducing number of rows.

    =SUMIF('Sales Rep Forecast Input'!G$8:G$49941,$B8&"*",'Sales Rep Forecast Input'!$D$8:$D$49941)+SUMIF('Sales Rep Forecast Input'!G$8:G$49941,$B8&"*",'Sales Rep Forecast Input'!$E$8:$E$49941)

    Still has a slight delay, but much quicker than sumproduct. Reducing it to around 10000 rows will be almost instant.

  8. #8
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: How to speed up slow processing issue

    Thank you. Actually, just reducing the number of rows made the calculations instant so I am good to go. Thanks again!

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to speed up slow processing issue

    You're welcome!

    Even though you don't need it now, it could always be good to keep in mind if you need something similar in future.

    Dynamic named ranges are also a good thing to consider when you don't know how many rows you will need.

  10. #10
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: How to speed up slow processing issue

    Indeed. As far as Dynamic Named Ranges, I did not think about that for this project, which will be important since we will be adding rows on the fly. I have not done this before so will experiment. I will also use it for another project I am working on with the same issue.

  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to speed up slow processing issue

    Here's an example for you, making your original formula dynamic.

    This is just one of many ways to create dynamic ranges.
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: How to speed up slow processing issue

    Thank you!

+ 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. Issue with VBA Save Email to Hard Disk Processing Slow
    By gingank in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2015, 04:41 AM
  2. Speed up the processing
    By robtuby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2014, 11:41 AM
  3. Username Code help - Slow processing speed
    By JBurton1986 in forum Excel General
    Replies: 6
    Last Post: 02-21-2014, 06:53 AM
  4. Excel processing speed
    By tony.nz in forum Excel General
    Replies: 2
    Last Post: 11-13-2009, 03:42 PM
  5. Increasing Processing Speed
    By boylejob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2008, 02:19 AM
  6. Processing speed
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2008, 02:21 PM
  7. [SOLVED] speed of processing
    By Chas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2006, 09:20 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