#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default SUMPRODUCT

I have a workbook with 2,600 SUMPRODUCT formulas, each looking for 5
conditions as follows:

=SUMPRODUCT((PLANS!$A$5:$A$25000=TEXT($A9,"#"))*(P LANS!$B$5:$B$25000=$A$4)*(PLANS!$E$5:$E$25000=$D$3 )*(PLANS!$F$5:$F$25000=D$4)*(PLANS!$K$5:$K$25000=$ E$3),PLANS!$H$5:$H$25000)

The sheets "PLANS" is an external database that refreshes from the company
server. The problem is that opening the file takes a long time. How can I
speed up the process? Tony.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default SUMPRODUCT

to speed up the opening the file, if data is not being refreshed too
frequently, you might want to set calculation to manual. Then press F9 when
you want to take the time to recalculate everything.

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Tony7659" wrote:

I have a workbook with 2,600 SUMPRODUCT formulas, each looking for 5
conditions as follows:

=SUMPRODUCT((PLANS!$A$5:$A$25000=TEXT($A9,"#"))*(P LANS!$B$5:$B$25000=$A$4)*(PLANS!$E$5:$E$25000=$D$3 )*(PLANS!$F$5:$F$25000=D$4)*(PLANS!$K$5:$K$25000=$ E$3),PLANS!$H$5:$H$25000)

The sheets "PLANS" is an external database that refreshes from the company
server. The problem is that opening the file takes a long time. How can I
speed up the process? Tony.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default SUMPRODUCT

I 'm not sure whith the amount of data you have if any method is going to be
quicker. If you set the workbook for manual calucaltion the workbook will
open quickly but the manual calculation will take a long time. If you open
the workbook often but only need to do the update infrequently this is a good
option.

Sumproduct is know for being slow. Writing a macro may speed things up but
I don't know for sure.

I fyou could sort the data then you don't have to use Sumproduct and a macro
will definitely be quicker. I would sort the 5 criteria using two sorts
since excel doesn't support more than 3 items in a sort a one time. First do
2 columns sort and then repeat the sort for the other 3 columns. Now all
your data wil be together. I can then write a simple macro which will add up
the different groups that wil run much quicker that sumproduct. I can even
create a new worksheet where the summary results will be placed.

"Tony7659" wrote:

I have a workbook with 2,600 SUMPRODUCT formulas, each looking for 5
conditions as follows:

=SUMPRODUCT((PLANS!$A$5:$A$25000=TEXT($A9,"#"))*(P LANS!$B$5:$B$25000=$A$4)*(PLANS!$E$5:$E$25000=$D$3 )*(PLANS!$F$5:$F$25000=D$4)*(PLANS!$K$5:$K$25000=$ E$3),PLANS!$H$5:$H$25000)

The sheets "PLANS" is an external database that refreshes from the company
server. The problem is that opening the file takes a long time. How can I
speed up the process? Tony.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default SUMPRODUCT

Hello,

I suggest to have a look at my UDF Pstat:
http://sulprobil.com/html/listfreq.html

Regards,
Bernd
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Sumproduct ceemo Excel Worksheet Functions 3 February 28th 06 09:15 PM
sumproduct help JR Excel Worksheet Functions 0 February 27th 06 02:57 PM
sumproduct Rob Excel Worksheet Functions 2 February 5th 06 07:41 PM


All times are GMT +1. The time now is 03:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"