Excel Takes Hours Calculating SUMIF's From Another Sheet Containing Lots Of Values

shoey88

New Member
Joined
Sep 11, 2012
Messages
6
Hi,

I am new to this forum and would really appreciate some help with a spreadsheet I am working on,

I have copied the two sheets onto a new workbook and uploaded it to here: Problem.xlsm

All the info on 'Sales Demand 2' gets pasted into that sheet automatically each week,

Please Refer To 'Sales Demand 2' Sheet

You can see that in Column A, BD, DF, FH, HJ, JL, LN, NP, PR, RT, TV are Product Codes,

Column A consists of the 'master list' of codes (all the codes that appear in Columns BD, DF, FH, HJ, JL, LN, NP, PR, RT, TV do appear in Column A)

The product codes in Columns BD, DF, FH, HJ, JL, LN, NP, PR, RT, TV are sub products of Column A,

The product codes in Columns A can appear more than once in each of the product code columns randomly (see example highlighted in yellow)

Please Refer To 'Sales Demand 3' Sheet

If you refer to the formulas between C2 and BB638 you can see that I am trying to get the totals for each week against the one instance of each code in the hope to getting a 'total demand' by week

This works and totals correctly but takes around 5 minutes to calculate, which is okay at this moment in time, but I have only input test data, hence why there are loads of '0's, so once the 'Sales Demand 2' tab becomes filled with numbers up to 7 decimal places I am concerned that it is going to be too slow to calculate a sales demand and deem the spreadsheet unworkable
Other Information

The programming I have written outside of this works in seconds and then this just takes forever and sometimes freezes when running with the other code,

I have set the 'Sales Demand 3' to enablecalculation = false and included with the workbook is a macro that turns it on and off so you can see how long it takes!

So what I am asking is... is there a quicker way to do this?


Many thanks

Jamie
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,216,118
Messages
6,128,939
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top