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 24th, 2002, 02:14 AM   #1
Mudface
MrExcel MVP
 
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
Default

Is there a way to group data in 6 hourly intervals? At the moment my data is grouped in days, but I'd like a bit more detail. Thanks for any help.
Mudface is offline   Reply With Quote
Old May 24th, 2002, 03:33 AM   #2
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-05-24 01:14, Mudface wrote:
Is there a way to group data in 6 hourly intervals? At the moment my data is grouped in days, but I'd like a bit more detail. Thanks for any help.
How is your Time/Date Column(s) Formatted?

I think you may need to add another column to your data with a formula that distingishes which 6 hour segment the Time/Dates fall.

Could you post a few lines of the(se) columns so I can I see which way would be best.
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old May 24th, 2002, 03:37 AM   #3
Mudface
MrExcel MVP
 
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
Default

Thanks, Ian. The Time/ Date column are formatted as hh:mm dd/mm/yy. Data is/ was recorded every 10 minutes, but there are some gaps (of a few hours or so) where the plant was off-line. Example data of the first few columns is as shown, minus the column headings: -


00:10 23/04/02 37.8 187.1 6.6
00:20 23/04/02 50.4 180.6
00:30 23/04/02 48.9 184.2 6.7
00:40 23/04/02 36.4 183.7 6.6
00:50 23/04/02 36.4 184.8 7.6
01:00 23/04/02 37.2 185.9 7.6
01:10 23/04/02 37.5 186.3 7.6
01:20 23/04/02 37.8 186.8 7.6
01:30 23/04/02 38.7 187.4 7.1
01:40 23/04/02 37.6 187.6 7.2
01:50 23/04/02 37.1 187.5 7.1
02:00 23/04/02 37 187.1 7.1
02:10 23/04/02 37.2 186.8 7.1

nb time and date is in the same column.


[ This Message was edited by: Mudface on 2002-05-24 02:38 ]
Mudface is offline   Reply With Quote
Old May 24th, 2002, 04:26 AM   #4
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Here a starter for ten.

I've added a Column to the end of the data with the formula:

=VLOOKUP(TEXT(A2,"h:mm")+0,{0;0.25;0.5;0.75},1)

to separate the 6hr segments. The following is the result I get when use in a pivot table.

Microsoft Excel - Book2___Running: xl97 : OS = Windows (32-bit) NT 4.00
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp
J51=

A
B
C
D
E
F
G
H
I
J
1
Date/TimeField1Field2Field3Segment




2
23/04/02 00:1037.8187.16.6:alert('=VLOOKUP(TEXT(A2,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00




3
23/04/02 01:5050.4180.66.6:alert('=VLOOKUP(TEXT(A3,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00




4
23/04/02 03:3063174.16.6:alert('=VLOOKUP(TEXT(A4,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00




5
23/04/02 05:1075.6167.66.6:alert('=VLOOKUP(TEXT(A5,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00
Date/TimeSegmentDataTotal
6
23/04/02 06:5088.2161.16.6:alert('=VLOOKUP(TEXT(A6,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00
23-Apr0:00Sum of Field14158
7
23/04/02 08:30100.8154.66.6:alert('=VLOOKUP(TEXT(A7,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00


Sum of Field2334.2
8
23/04/02 10:10113.4148.16.6:alert('=VLOOKUP(TEXT(A8,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00


Sum of Field379.2
9
23/04/02 11:50126141.66.6:alert('=VLOOKUP(TEXT(A9,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00

6:00Sum of Field12016
10
23/04/02 13:30138.6135.16.6:alert('=VLOOKUP(TEXT(A10,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 12:00


Sum of Field2612.8
11
23/04/02 15:10151.2128.66.6:alert('=VLOOKUP(TEXT(A11,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 12:00


Sum of Field352.8
12
23/04/02 16:50163.8122.16.6:alert('=VLOOKUP(TEXT(A12,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 12:00

12:00Sum of Field11776.6
13
23/04/02 18:30176.4115.66.6:alert('=VLOOKUP(TEXT(A13,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 18:00


Sum of Field2323.1
14
23/04/02 20:10189109.16.6:alert('=VLOOKUP(TEXT(A14,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 18:00


Sum of Field339.6
15
23/04/02 21:50201.6102.66.6:alert('=VLOOKUP(TEXT(A15,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 18:00

18:00Sum of Field12721.6
16
23/04/02 23:30214.296.16.6:alert('=VLOOKUP(TEXT(A16,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 18:00


Sum of Field2248.8
17
24/04/02 01:10226.889.66.6:alert('=VLOOKUP(TEXT(A17,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00


Sum of Field352.8
18
24/04/02 02:50239.483.16.6:alert('=VLOOKUP(TEXT(A18,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00
23-Apr Sum of Field1

10672.2
19
24/04/02 04:3025276.66.6:alert('=VLOOKUP(TEXT(A19,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00
23-Apr Sum of Field2

1518.9
20
24/04/02 06:10264.670.16.6:alert('=VLOOKUP(TEXT(A20,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00
23-Apr Sum of Field3

224.4
21
24/04/02 07:50277.263.66.6:alert('=VLOOKUP(TEXT(A21,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00
24-Apr0:00Sum of Field12305.8
22
24/04/02 09:30289.857.16.6:alert('=VLOOKUP(TEXT(A22,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00


Sum of Field250.1
23
24/04/02 11:10302.450.66.6:alert('=VLOOKUP(TEXT(A23,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00


Sum of Field339.6
24
24/04/02 12:5031544.16.6:alert('=VLOOKUP(TEXT(A24,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 12:00

6:00Sum of Field13427.2
25
23/04/02 00:10327.637.66.6:alert('=VLOOKUP(TEXT(A25,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00


Sum of Field2-115.2
26
23/04/02 01:50340.231.16.6:alert('=VLOOKUP(TEXT(A26,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00


Sum of Field352.8
27
23/04/02 03:30352.824.66.6:alert('=VLOOKUP(TEXT(A27,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00

12:00Sum of Field1919.8
[B]
28:alert('=VLOOKUP(TEXT(A30,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00

00/01/00 12:00
Total Sum of Field1

17325
34
23/04/02 15:10441-20.96.6:alert('=VLOOKUP(TEXT(A34,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 12:00
Total Sum of Field2

1392.5
35
23/04/02 16:50453.6-27.46.6:alert('=VLOOKUP(TEXT(A35,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 12:00
Total Sum of Field3

330
36
23/04/02 18:30466.2-33.96.6:alert('=VLOOKUP(TEXT(A36,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 18:00




37
23/04/02 20:10478.8-40.46.6:alert('=VLOOKUP(TEXT(A37,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 18:00




38
23/04/02 21:50491.4-46.96.6:alert('=VLOOKUP(TEXT(A38,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 18:00




39
23/04/02 23:30504-53.46.6:alert('=VLOOKUP(TEXT(A39,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 18:00




40
24/04/02 01:10516.6-59.96.6:alert('=VLOOKUP(TEXT(A40,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00




41
24/04/02 02:50529.2-66.46.6:alert('=VLOOKUP(TEXT(A41,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00




42
24/04/02 04:30541.8-72.96.6:alert('=VLOOKUP(TEXT(A42,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00




43
24/04/02 06:10554.4-79.46.6:alert('=VLOOKUP(TEXT(A43,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00




44
24/04/02 07:50567-85.96.6:alert('=VLOOKUP(TEXT(A44,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00




45
24/04/02 09:30579.6-92.46.6:alert('=VLOOKUP(TEXT(A45,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00




46
24/04/02 11:10592.2-98.96.6:alert('=VLOOKUP(TEXT(A46,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 06:00




47
24/04/02 12:50604.8-105.46.6:alert('=VLOOKUP(TEXT(A47,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 12:00




48
23/04/02 00:10617.4-111.96.6:alert('=VLOOKUP(TEXT(A48,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00




49
23/04/02 01:50630-118.46.6:alert('=VLOOKUP(TEXT(A49,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00




50
23/04/02 03:30642.6-124.96.6:alert('=VLOOKUP(TEXT(A50,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00




51
23/04/02 05:10655.2-131.46.6:alert('=VLOOKUP(TEXT(A51,%22h:mm%22)+0,{0;0.25;0.5;0.75},1)')>00/01/00 00:00




Sheet1

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

The above image was automatically generated by [HtmlMaker V1.27]
If you want FREE SOFT, 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


It doesn't look that pretty but I hope you get the idea.

Is this what you needed?

_________________
Share the wealth!!
Ian Mac

[ This Message was edited by: Ian Mac on 2002-05-24 03:27 ]
Ian Mac is offline   Reply With Quote
Old May 24th, 2002, 04:31 AM   #5
Mudface
MrExcel MVP
 
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
Default

Excellent, cheers Ian , I'll give that a whirl. Strange that you can group by days, no problem, but there's no (automatic) facility for what you've done above, in '97 at least.
Mudface 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:08 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