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 May 13th, 2002, 05:18 AM   #1
SubZero
New Member
 
Join Date: May 2002
Posts: 8
Default

I have a spreadsheet consisting of 5 columns.
ColumnA displays dates in a downward fashion. A2=01/10/2001, A2=02/10/2001 etc. The next four columns display sales activity for that day, eg meetings arranged etc. In this column a number is inserted eg 2.
I currently have a totals row at the end of each month but would like to have a seperate table using the countIf or Sumif function. I have tried using the formula (this is not the formula just explaining what i have done!) SUMIF A1:A90 is less than or equal to 31/10/2001 then SUM the meetings in A1:A90 hoping that in that cell I would get the results for october 2001, however excel does not appear to recognise I want all the info for all dates before OCt 31st 2001, any ideas?
I would also have additional cells in the new table to do the same formula but for Nov 1 2001:Nov 30 2001 etc. In this case I would need to conditions, If a2:a90 > NOV 01 2001 but < DEC 1 2001
Thanks Folks
SubZero is offline   Reply With Quote
Old May 13th, 2002, 06:17 AM   #2
eliW
Board Regular
 
eliW's Avatar
 
Join Date: Mar 2002
Posts: 1,805
Default

One of the possibilities is to Autofilter by date, using custom filter in which you put your starting and ending dates.
Then use the SUBTOTAL formula to count or sum every column you want in the filtered time range.
Eli
eliW is offline   Reply With Quote
Old May 13th, 2002, 06:44 AM   #3
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-05-13 04:18, SubZero wrote:
I have a spreadsheet consisting of 5 columns.
ColumnA displays dates in a downward fashion. A2=01/10/2001, A2=02/10/2001 etc. The next four columns display sales activity for that day, eg meetings arranged etc. In this column a number is inserted eg 2.
I currently have a totals row at the end of each month but would like to have a seperate table using the countIf or Sumif function. I have tried using the formula (this is not the formula just explaining what i have done!) SUMIF A1:A90 is less than or equal to 31/10/2001 then SUM the meetings in A1:A90 hoping that in that cell I would get the results for october 2001, however excel does not appear to recognise I want all the info for all dates before OCt 31st 2001, any ideas?
I would also have additional cells in the new table to do the same formula but for Nov 1 2001:Nov 30 2001 etc. In this case I would need to conditions, If a2:a90 > NOV 01 2001 but < DEC 1 2001
Thanks Folks
In G2 enter and copy down as far as needed:

=MONTH(A2)

Enter from I2 on the month numbers 1 to 12.

In H2 enter and copy down:

=SUMIF($G$2:$G$100,I2,$B$2:$B$100)


Aladin Akyurek is offline   Reply With Quote
Old May 13th, 2002, 06:57 AM   #4
SubZero
New Member
 
Join Date: May 2002
Posts: 8
Default

Thanks guys, both suggestions work well, But wanting the simplest way of entering as least data as possible the Month function works well, if combined with the year function it will work indefinately... Obviously as aladin suggested I will have to manually enter the values that the formula creates as excel won't sum a formula but i can make a macro to copy the formula and paste values on cell entry, unless there is another way? ideally i didn't want to use VB or macros, and having additional formulas i would have to. Thats why I was hoping it could be done in one formula? Cheers for the help so far guys.
SubZero 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 03:43 AM.


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