R
Rodney POWELL
If it is satisfactory to recalc on demand, I'll suggest a VBA procedure to handle the work of your SUMPRODUCT function.
This way you can leave autocalc = True and Excel won't be trying to churn through this big spreadsheet.
If you are only adding sales data once a week -- you can probably eliminate your worksheet formulas
-- maybe edit the table as reqd then execute a subroutine that uses VBA for the calc and only returns the values to your table.
... It's a common problem -- Hope It Helps,
- Rodney POWELL
Microsoft MVP - Excel
Beyond Technology
Spring, Texas USA
www.BeyondTechnology.com
I have a large spreadsheet of sales data. 2 months of data is about 10k
lines. I need to build a summary page that shows sales for each region, by
item and month. On the data page I have columns for these fields. On my
summary page I have a matrix for each region, with items down the left and
months across the top. I then use sumproduct to populate the matrix, eg:
=SUMPRODUCT(--(Data!$A$2:$A$10593=1),--(Data!$D$2:$D$10593=$A44),--(Data!$F$2:$F$10593=$A$42),Data!$I$2:$I$10593)
Col A is month #
Col D is Item
Col F is Region
Col I is Sales
The problem I am having is that Excel takes at least 2-3 minutes to make
this calculation (and I only have one of 5 regions set up.) Each week I will
be adding sales info to the Data page because I have to also provide a
rolling 4 week summary, and it is very frustrating to sit and wait anytime
something changes. Is there a more efficient way (other than sumproduct with
the '--' syntax) to summarize the data? At this point, I have calculation
set to manual, but whenever I test my macros or formulas I have to get up and
take a walk.
I'm using Excel 2003 on Win XP (Home Edition)
I have 256MB of memory and a 1.7G Intel Celeron chip
This way you can leave autocalc = True and Excel won't be trying to churn through this big spreadsheet.
If you are only adding sales data once a week -- you can probably eliminate your worksheet formulas
-- maybe edit the table as reqd then execute a subroutine that uses VBA for the calc and only returns the values to your table.
... It's a common problem -- Hope It Helps,
- Rodney POWELL
Microsoft MVP - Excel
Beyond Technology
Spring, Texas USA
www.BeyondTechnology.com
I have a large spreadsheet of sales data. 2 months of data is about 10k
lines. I need to build a summary page that shows sales for each region, by
item and month. On the data page I have columns for these fields. On my
summary page I have a matrix for each region, with items down the left and
months across the top. I then use sumproduct to populate the matrix, eg:
=SUMPRODUCT(--(Data!$A$2:$A$10593=1),--(Data!$D$2:$D$10593=$A44),--(Data!$F$2:$F$10593=$A$42),Data!$I$2:$I$10593)
Col A is month #
Col D is Item
Col F is Region
Col I is Sales
The problem I am having is that Excel takes at least 2-3 minutes to make
this calculation (and I only have one of 5 regions set up.) Each week I will
be adding sales info to the Data page because I have to also provide a
rolling 4 week summary, and it is very frustrating to sit and wait anytime
something changes. Is there a more efficient way (other than sumproduct with
the '--' syntax) to summarize the data? At this point, I have calculation
set to manual, but whenever I test my macros or formulas I have to get up and
take a walk.
I'm using Excel 2003 on Win XP (Home Edition)
I have 256MB of memory and a 1.7G Intel Celeron chip