DSUM function and spreadsheet calculation speed?

JIM456

New Member
Joined
Mar 9, 2005
Messages
13
Hi...

I have a relatively small spreadsheet, however, it has a number of DSUM forumlas which are each looking at 20,000 rows and about 55 columns. This seems to be bogging down the calculation speed such that, even with virtually no data, the calculation time is about 30 seconds on a PC with 4GB RAM and an i7 processor! Any ideas on what type of formula I could use instead of the DSUM, or how I could possibly speed up the DSUM (which is really the best formula for this circumstance)?

Thanks Much,


Jim
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi...

I have a relatively small spreadsheet, however, it has a number of DSUM forumlas which are each looking at 20,000 rows and about 55 columns. This seems to be bogging down the calculation speed such that, even with virtually no data, the calculation time is about 30 seconds on a PC with 4GB RAM and an i7 processor!

Is your database definition 20,000 rows and 55 columns?

Are all the rows occupied? The highlighted comment suggests otherwise.

How many columns are used in the criteria?

Perhaps you could list a few of the formulae along with the respective criteria definitions.

Maybe we could then suggest a solution.
 
Upvote 0
Hi Mike..thanks for taking a look at this. Yes, we're using 20,000 rows by 55 columns or 1.1M cells. The criteria ranges use either 2 or 3 columns.

Here's a formula example:

=DSUM(DIRECT!$B$7:$BF$20000,11,$A$101:$K$107) ...where "DIRECT" is another tab with the database on it

Here's the criterial range:

eList Division Segment Proj. No. Program Name Category Contract Type Booking Type Data Fields Prior ITD
=C&D =Labor Onsite - Group
=C&D =Labor Onsite - TechOps
=C&D =Labor Onsite - Group SCIC
=C&D =Labor Onsite - TechOps SCIC
=C&D =Labor Onsite - Group: BusOps
=C&D =Labor Onsite - Group SCIC: BusOps
 
Upvote 0
In the database definition you're referencing 57 columns and your sum column is column 11.

Would it be worth limiting the database definition to those 11 columns assuming the criteria fields also reside in the first 11 columns?

Just thought I'd mention that as I predominantly use DCount and my database definition is 13 columns but I only reference six of those columns in the criteria fields.
 
Upvote 0
Unfortunately, the sum column changes in such that there is a different sum column for 36 different columns.
 
Upvote 0
What I was trying to suggest was that you might get a performance improvement by limiting the columns referenced, both for the database and the criteria.
Applying meaningful named ranges to the limited selections could be a hint as to the purpose of each DSUM.

This video :-
Excel Formula Efficiency 12: Fastest Formula In Excel - YouTube
gives some stats comparing use of different formulae, which you could find useful.

Good luck.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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