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 18th, 2002, 02:10 PM   #1
ch1
Board Regular
 
Join Date: May 2002
Posts: 54
Default

I have columns like below

01/02/2002 50
01/02/2002 25
01/05/2002 30
20/05/2002 60
01/06/2002 70 etc

I need to do a count of the qty's by date.

total before todays date
total within the next week
then every week after that

Any ideas??

I have tried datevalue, but it needs the actual date. I want it to look into the cell and recognise the date

something like cell A1:A10 < 17/05/2002


Thanks
ch1 is offline   Reply With Quote
Old May 18th, 2002, 02:17 PM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
Default

Quote:
On 2002-05-18 13:10, ch1 wrote:
I have columns like below

01/02/2002 50
01/02/2002 25
01/05/2002 30
20/05/2002 60
01/06/2002 70 etc

I need to do a count of the qty's by date.

total before todays date
total within the next week
then every week after that

Any ideas??

I have tried datevalue, but it needs the actual date. I want it to look into the cell and recognise the date

something like cell A1:A10 < 17/05/2002


Thanks
=SUMIF(A2:A10,"<"&TODAY(),B2:B10)

for a total before today.

=SUMIF((A2:A10,">=&TODAY(),B2:B10)-SUMIF(A2:A10,">"&TODAY()+7,B2:B10)

for a total within the next week.

Etc.




[ This Message was edited by: Aladin Akyurek on 2002-05-18 13:24 ]
Aladin Akyurek is offline   Reply With Quote
Old May 18th, 2002, 02:27 PM   #3
ch1
Board Regular
 
Join Date: May 2002
Posts: 54
Default

Thanks the first 1 works, but the second gives me everything in the future.

How do I split the future down to the ones in the next 7 days
and then a count of 7-14 days
and 14-21 days etc
ch1 is offline   Reply With Quote
Old May 18th, 2002, 02:27 PM   #4
Nimrod
MrExcel MVP
 
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
Default

Do you want to create an sheet that would show each week or do you just want to be able to enter a date and have the weeks total show in one cell ?
Nimrod is offline   Reply With Quote
Old May 18th, 2002, 02:27 PM   #5
ch1
Board Regular
 
Join Date: May 2002
Posts: 54
Default

Thanks the first 1 works, but the second gives me everything in the future.

How do I split the future down to the ones in the next 7 days
and then a count of 7-14 days
and 14-21 days etc
ch1 is offline   Reply With Quote
Old May 18th, 2002, 02:31 PM   #6
ch1
Board Regular
 
Join Date: May 2002
Posts: 54
Default

What I would like to show is

Overdue 200
next week 50
7 - 14 days 20
14 -21 days 30


Thanks
ch1 is offline   Reply With Quote
Old May 18th, 2002, 02:34 PM   #7
Nimrod
MrExcel MVP
 
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
Default

Have you thought of creating a Subtotal by week using the Toolbar..Data..subtotals command ?

1- if dates are in colmnA and Totals in colB
put the forumal =WEEKNUM(A1) in columnc.
2- goto Toolbar..Data..subtotals and Sum at each change of Column C
__________________

<MARQUEE>...........Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic...............The easiest thing to find is fault, don't be easy !.. --Anonymous--...</marquee>
Nimrod is offline   Reply With Quote
Old May 18th, 2002, 02:36 PM   #8
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
Default

Quote:
On 2002-05-18 13:31, ch1 wrote:
What I would like to show is

Overdue 200
next week 50
7 - 14 days 20
14 -21 days 30


Thanks
I edited my original post. Did you see it?
Aladin Akyurek is offline   Reply With Quote
Old May 18th, 2002, 02:37 PM   #9
ch1
Board Regular
 
Join Date: May 2002
Posts: 54
Default

Thanks to both, I will go and play


Many thanks
ch1 is offline   Reply With Quote
Old May 18th, 2002, 02:48 PM   #10
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
Default

Quote:
On 2002-05-18 13:37, ch1 wrote:
Thanks to both, I will go and play
Many thanks
Here an example regarding the SUMIF approach:

Microsoft Excel - aaSumif ch1.xls_______________Running: xl2000 : OS = Windows (32-bit) NT 5.00
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp
H12=
*ABCDEF
1******
22-Apr-0250*:alert('=TODAY()')>18-May-02:alert('=D2+7')>25-May-02:alert('=E2+7')>1-Jun-02
35-Apr-0225*:alert('=SUMIF(A2:A12,"%3C"&D2,B2:B12)')>105:alert('=SUMIF($A$2:$A$12,"%3E="&$D$2,$B$2:$B$12)-SUMIF($A$2:$A$12,"%3E"&E2,$B$2:$B$12)')>130:alert('=SUMIF($A$2:$A$12,"%3E="&$D$2,$B$2:$B$12)-SUMIF($A$2:$A$12,"%3E"&F2,$B$2:$B$12)')>190
47-May-0230****
520-May-0260****
625-May-0270****
730-May-0260****
84-Jun-0240****
912-Jun-0230****
1024-Jun-0220****
1130-Jun-0235****
127-Jul-0245****
Sheet1

To see the formula in the cells just click on the cells hyperlink

The above image was automatically generated by [HtmlMaker V1.22]
If you want this code, click here and Colo will email the file to you.
This code was graciously allowed to be modified: by Ivan F Moala All credit to Colo


Aladin
Aladin Akyurek 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 07:02 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