MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 28th, 2002, 11:31 AM   #1
codyswan
New Member
 
Join Date: Mar 2002
Posts: 22
Default

I have some very large files (60-100 meg) where I want to get counts, sums, and averages for many sets of multiple criteria. I've previously used dsums, but each dsum takes up two rows and thus copying and editing formulas isn't as convenient. The dsum variety takes about 2 hours to calculate thousands of different dsums on a dataset. What is a faster alternative? Will sumifs take about the same amount of time and just be easier to deal with?

Thanx
codyswan is offline   Reply With Quote
Old Mar 28th, 2002, 11:33 AM   #2
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Have you tried using PivotTables?
Mark W. is offline   Reply With Quote
Old Mar 28th, 2002, 11:47 AM   #3
codyswan
New Member
 
Join Date: Mar 2002
Posts: 22
Default

Yes, I tried pivot tables. Unfortunately, many of the criteria have wildcard characters. One company may show up in the database as ABC Corp, ABC Corporation, ABC, ABC Inc, etc. The pivot tables treated them as different categories. Since I'm doing crosstabulations of at least two variables, I didn't see an efficient way of collapsing the categories.
codyswan is offline   Reply With Quote
Old Mar 28th, 2002, 12:46 PM   #4
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Quote:
On 2002-03-28 10:47, codyswan wrote:
Yes, I tried pivot tables. Unfortunately, many of the criteria have wildcard characters. One company may show up in the database as ABC Corp, ABC Corporation, ABC, ABC Inc, etc. The pivot tables treated them as different categories. Since I'm doing crosstabulations of at least two variables, I didn't see an efficient way of collapsing the categories.
Create a Grouped item or "map" all these variants to one name in separate column of your Database.
Mark W. is offline   Reply With Quote
Old Mar 28th, 2002, 06:50 PM   #5
Dave Hawley
Banned
 
Join Date: Feb 2002
Posts: 1,582
Default

Hi codyswan

I find you problem very interesting, in particular the fact you say that the Database functions are very slow to recalculate. I use this functions a lot with worksheets containing thousands of rows by 20 or so columns and have never run into a speed issue. Are you sure you do not have other functions that would be causing this, array formulas are normally a prime cause.

You also mention that editing them is awkward. I find these functions extremely convenient for this, hence my reason for using them. They do take a bit longer to set up (which is why so many people avoid them) but the benefit far outweighs this.


I have a Workbook you can download here:
http://www.ozgrid.com/download/default.htm that shows how these functions can be used in a very convenient way.
"DFunctionsWithValidation.zip" is the Workbook.

Dave Hawley is offline   Reply With Quote
Old Mar 29th, 2002, 09:35 AM   #6
codyswan
New Member
 
Join Date: Mar 2002
Posts: 22
Default

The database is about 40,000 records long by 25 columns. There are about 200,000 crosstabs to calculate on each database. Each cell in the crosstab has two conditions. Sometimes the conditions include wildcards.

I don't have any array formulas.

To answer certain questions, I have to go back in and write new dsums and dcounts.

I'm going to try pivot tables again with collapsed categories and see how long it takes.

thanks
codyswan is offline   Reply With Quote
Old Mar 29th, 2002, 09:58 AM   #7
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Hi codyswan:
You have already got some valuable insight from the masters here. Just a thought -- have you tried switching to MANUAL CALC, and calculate just what you need rather than calculate everything even if you want to calculate something very specific.
__________________
Regards!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
www.energyefficientbuild.com
Yogi Anand is offline   Reply With Quote
Old Mar 29th, 2002, 10:02 AM   #8
codyswan
New Member
 
Join Date: Mar 2002
Posts: 22
Default

Yes, Yogi, I've set the recalc to manual and only do a worksheet recalc (shift F9).

The pivottable is looking promising, but I'm running into problems with it having too many columns. Somewhere in there is a setting to get the pivottable to wrap.
codyswan is offline   Reply With Quote
Old Mar 29th, 2002, 10:24 AM   #9
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Hi codyswan:
How about going down to calculating at a range-level or even cell level. In the past when I was working with relatively large Lotus files, I would have CALC turned to manual, then I would force a calc on a cell by copying over itself. Excel does not facilitate that one can achieve that facility througn a one-liner in VBA.
Yogi Anand is offline   Reply With Quote
Old Mar 29th, 2002, 11:03 AM   #10
codyswan
New Member
 
Join Date: Mar 2002
Posts: 22
Default

I have it set so that the formulas are text when I bring in data. Then, I removed the text marker and they become formulas. To get a recalc of an individual formula, I just delete edit the cell, put in and delete a space on the end and hit enter. It recalcs just that cell.
codyswan is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:25 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes