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 Apr 13th, 2002, 02:49 PM   #1
Eddie G.
Board Regular
 
Join Date: Feb 2002
Location: OKC
Posts: 98
Default

I am banging my head against the wall with this....and I need help..... I will try to explain this correctly:

I have a bus timing sheet where I track the arrival time and departure time of buses at airport curbs. I get the calculated time by subtracting the latest departure time from the latest arrival time (arrival intervals are recorded:
EXAMPLE

ARRIVAL DEPARTURE TIMING
10:00:00 10:00:05
10:01:00 10:02:00 0:00:55
10:03:00 10:05:00 0:01:00
10:03:00 10:04:00 ########
10:06:00 10:08:00 0:02:00

The timing is derived for example by subtracting the latest arrival time from the last departure time examplecell E5-cell F4). The problem is, when two or more buses arrive at the same time the ##### occurs. I need the timing formula to search above, and if ###### exists, then for the above example, change the calculation to (cell E5-cell F3). In other words, find the latest departure time in the departure column to subtract. I hope this makes sense.
Eddie G. is offline   Reply With Quote
Old Apr 13th, 2002, 02:56 PM   #2
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

when you subtract times values must be a positive value, or Excel returns ######
Brian from Maui is offline   Reply With Quote
Old Apr 13th, 2002, 03:05 PM   #3
Eddie G.
Board Regular
 
Join Date: Feb 2002
Location: OKC
Posts: 98
Default

correct brian, the dilemna as outlined in the example, is if a second bus arrives while another is already there, and the latter leaves before the first one, then the #### occurs. what I need is a formula that looks for the last departing bus time in the daparture column.
Eddie G. is offline   Reply With Quote
Old Apr 13th, 2002, 03:50 PM   #4
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Quote:
On 2002-04-13 13:49, Eddie G. wrote:
I am banging my head against the wall with this....and I need help..... I will try to explain this correctly:

I have a bus timing sheet where I track the arrival time and departure time of buses at airport curbs. I get the calculated time by subtracting the latest departure time from the latest arrival time (arrival intervals are recorded:
EXAMPLE

ARRIVAL DEPARTURE TIMING
10:00:00 10:00:05
10:01:00 10:02:00 0:00:55
10:03:00 10:05:00 0:01:00
10:03:00 10:04:00 ########
10:06:00 10:08:00 0:02:00

The timing is derived for example by subtracting the latest arrival time from the last departure time examplecell E5-cell F4). The problem is, when two or more buses arrive at the same time the ##### occurs. I need the timing formula to search above, and if ###### exists, then for the above example, change the calculation to (cell E5-cell F3). In other words, find the latest departure time in the departure column to subtract. I hope this makes sense.
Eddie,

From your example, E5-F3 will still be negative. If you want departure intervals, subtract times in column F. If you want first in, first out with no regard to bus A,B,C...etc Column F should be sorted
Brian from Maui is offline   Reply With Quote
Old Apr 13th, 2002, 06:30 PM   #5
Eddie G.
Board Regular
 
Join Date: Feb 2002
Location: OKC
Posts: 98
Default

I finally figured the darn thing out by myself

=sum(e5-max(f1:f4)) and so on with max being adjustable to look for the latest departure time as far up as I want in the departure column.
Eddie G. is offline   Reply With Quote
Old Apr 13th, 2002, 07:58 PM   #6
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Eddie,

Would this work:

A1 - first departure time
B1 - second arrival time
C1 - B1-A1

Then you wouldn't have to adjust your range.
I've used your examples, but there maybe other criteria which might not give you the desired times.
Brian from Maui is offline   Reply With Quote
Old Apr 14th, 2002, 12:08 AM   #7
nisht
Board Regular
 
Join Date: Feb 2002
Location: Ahmedabad Gujarat
Posts: 303
Default

Against the name of luanne download the file
'Ship Time'

he had similar problem like you.. it was related to ships.. you can study the formula there and still if you have difficulty you can write to me
nisht@pexcel.com
nishith desai
http://www.pexcel.com
nisht is offline   Reply With Quote
Old Apr 14th, 2002, 12:09 AM   #8
nisht
Board Regular
 
Join Date: Feb 2002
Location: Ahmedabad Gujarat
Posts: 303
Default

Against the name of luanne download the file
'Ship Time'

http://www.pexcel.com/guestdownload.htm

he had similar problem like you.. it was related to ships.. you can study the formula there and still if you have difficulty you can write to me
nisht@pexcel.com
nishith desai
http://www.pexcel.com
nisht 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 10:04 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