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 18th, 2002, 07:16 PM   #1
confused
New Member
 
Join Date: Apr 2002
Posts: 5
Default

do this? I'm new to this board as well as excel. My problem is I'm trying to figure out a forumla that will give me a total time (hours & mins) but also use the date. such as, I have a job that starts on 4/8 1943 and ends on 4/9 2030. the forumla I have now only shows 47 mins. but such be 24hr 47 mins.
can anyone help me? TIA
confused is offline   Reply With Quote
Old Apr 18th, 2002, 07:27 PM   #2
brettvba
MrExcel MVP
 
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
Default

just a quick one if you change the dates around 8/4 and 9/4 then subtract the differece and format the cell to custom d-hhmm it will give you 1-47 any help?
brettvba is offline   Reply With Quote
Old Apr 18th, 2002, 07:29 PM   #3
brettvba
MrExcel MVP
 
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
Default

start 8/04/2002 19:43
stop 9/04/2002 20:30
1- 00:47
assuming 8/4 is in c2 and 9/4 is in c3
=c3-c2
then go into format cells
custom and enter d-hh:mm
brettvba is offline   Reply With Quote
Old Apr 18th, 2002, 08:03 PM   #4
confused
New Member
 
Join Date: Apr 2002
Posts: 5
Default

Brettvba, Thanks for the quick reply. I'll give you answer a shoot. However I was sorta thinking along the lines as the following setup.
B1= start Date
C1= start time
D1= end date
E1= end time

the current formula I'm using only figures out the total for C1 and E1
=(2400-C1)+(2400+E1)-(2400)

But I need to add the other two columns and get them into the formula. Hope you can help me?? TIA
confused is offline   Reply With Quote
Old Apr 18th, 2002, 08:12 PM   #5
brettvba
MrExcel MVP
 
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
Default

ok how about assuming your cells are in where you wanted b2 c2 etc

=SUM(D2-B2)+SUM(E2-C2)
and format the cell to
d" Day/s "hh:mm

that help?

[ This Message was edited by: brettvba on 2002-04-18 19:14 ]
brettvba is offline   Reply With Quote
Old Apr 18th, 2002, 08:25 PM   #6
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-04-18 18:16, confused wrote:
do this? I'm new to this board as well as excel. My problem is I'm trying to figure out a forumla that will give me a total time (hours & mins) but also use the date. such as, I have a job that starts on 4/8 1943 and ends on 4/9 2030. the forumla I have now only shows 47 mins. but such be 24hr 47 mins.
can anyone help me? TIA
Hi Friend:
No need to be confused. Let us say your start time 4/8 19:43 is in cell A2, and end time 4/9 20:30 is in cell B2, then in cell C2 put the formula:
=B2-A2 and format C2 as CUSTOM FORMAT [h]:mm:ss
and you wii see the result as 24:47:00

HTH

Please post back if it works for you ... otherwise explain a little further and let us take it from there!
[/quote]

_________________
Yogi Anand
Edit: Deleted reference to inactive web site from signature line

[ This Message was edited by: Yogi Anand on 2003-01-19 18:27 ]
Yogi Anand is offline   Reply With Quote
Old Apr 18th, 2002, 08:34 PM   #7
confused
New Member
 
Join Date: Apr 2002
Posts: 5
Default

I wish I could say that helped, but sorry it doesn't. Thanks for trying to help tho. What I really need is a formula that would add/subtact the two date columns together and add/subtact the two time columns and give me the total. my date columns are in dd-mm-yyyy format and my time is in hh:mm:ss format.
confused is offline   Reply With Quote
Old Apr 18th, 2002, 08:42 PM   #8
brettvba
MrExcel MVP
 
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
Default

sorry have i misunderstood are you after days and hours/minutes or just the total minutes or just hours/minutes if its days and hours/minutes my example works well
brettvba is offline   Reply With Quote
Old Apr 18th, 2002, 08:52 PM   #9
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-04-18 19:03, confused wrote:
Brettvba, Thanks for the quick reply. I'll give you answer a shoot. However I was sorta thinking along the lines as the following setup.
B1= start Date
C1= start time
D1= end date
E1= end time

the current formula I'm using only figures out the total for C1 and E1
=(2400-C1)+(2400+E1)-(2400)

But I need to add the other two columns and get them into the formula. Hope you can help me?? TIA
Use the formula

=D1-B1+E1-C1 ... CUSTOM format it as [h]:mm:ss to get the result 24:47:00

HTH

Yogi Anand

Yogi Anand is offline   Reply With Quote
Old Apr 18th, 2002, 09:12 PM   #10
confused
New Member
 
Join Date: Apr 2002
Posts: 5
Default

Yogi your the man .... Thanks a whole lot, I tried it out and was blown out of my chair ..lol. Again Thanks for the help..
confused 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 08:41 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