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 Feb 22nd, 2002, 05:50 PM   #1
StacyRenee79
New Member
 
Join Date: Feb 2002
Posts: 5
Default

I've been trying to create a formula to add my drivers hours. I enter them by
day, and need a total for the week.

Here is how they are keyed in:
Monday Tuesday WednesdayThursday Friday TOTAL
9.50 9.50 8.15 9.23 8.50 6.08

Now when adding these times, if two times added together equal or go over 60
then I have to add 40.

Example 9.50 + 9.50 = 1900 "but I need to add 40" so my total should be 19.40
Same with 9.23 + 9.40 = 18.63 "but I need to add 40" so my total should be 19.03
But with 8.15 + 8.15 = 16.30 then that's fine

I have a formula that works but it will not return my FALSE value. Here is the
formula I have:

=IF(SUM(A1:B1)>0.6,SUM(A1:B1)+.40,SUM(A1:B1))

I've probably got you all confused, I know I am.

Is there something wrong with that formula?

Can you help???
StacyRenee79 is offline   Reply With Quote
Old Feb 23rd, 2002, 10:59 AM   #2
Anne Troy
MrExcel MVP
 
Anne Troy's Avatar
 
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
Default

Hi!

You will want to post your question in the correct forum. This is where people can test their signatures and things like that. Click on the link:

http://www.mrexcel.com/board/viewforum.php?forum=2&1830

and post your question there. Just copy/paste it. Then, I'll take a look and many others will too!

Welcome to MrExcel!
__________________
~Anne Troy
Anne Troy is offline   Reply With Quote
Old Feb 24th, 2002, 01:02 AM   #3
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-02-22 16:50, StacyRenee79 wrote:
I've been trying to create a formula to add my drivers hours. I enter them by
day, and need a total for the week.

Here is how they are keyed in:
Monday Tuesday WednesdayThursday Friday TOTAL
9.50 9.50 8.15 9.23 8.50 6.08


Supposing that A2:F2 houses the keyed in hours,

in G2 enter: =SUM(A2:F2)

And, this is important, custom format G2 as [hh]:mm.

To custom format a cell,

activate the cell;
activate Format|Cells;
choose Custom on the Number tab;
enter in the Type box:

[hh]:mm
Aladin Akyurek is offline   Reply With Quote
Old Feb 24th, 2002, 06:19 AM   #4
StacyRenee79
New Member
 
Join Date: Feb 2002
Posts: 5
Default

Quote:
On 2002-02-24 00:02, Aladin Akyurek wrote:
Quote:
On 2002-02-22 16:50, StacyRenee79 wrote:
I've been trying to create a formula to add my drivers hours. I enter them by
day, and need a total for the week.

Here is how they are keyed in:
Monday Tuesday WednesdayThursday Friday TOTAL
9.50 9.50 8.15 9.23 8.50 6.08


Supposing that A2:F2 houses the keyed in hours,

in G2 enter: =SUM(A2:F2)

And, this is important, custom format G2 as [hh]:mm.

To custom format a cell,

activate the cell;
activate Format|Cells;
choose Custom on the Number tab;
enter in the Type box:

[hh]:mm
Thanks but nope doesn't work!
StacyRenee79 is offline   Reply With Quote
Old Feb 24th, 2002, 06:48 AM   #5
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-02-24 05:19, StacyRenee79 wrote:
Quote:
On 2002-02-24 00:02, Aladin Akyurek wrote:
Quote:
On 2002-02-22 16:50, StacyRenee79 wrote:
I've been trying to create a formula to add my drivers hours. I enter them by
day, and need a total for the week.

Here is how they are keyed in:
Monday Tuesday WednesdayThursday Friday TOTAL
9.50 9.50 8.15 9.23 8.50 6.08


Supposing that A2:F2 houses the keyed in hours,

in G2 enter: =SUM(A2:F2)

And, this is important, custom format G2 as [hh]:mm.

To custom format a cell,

activate the cell;
activate Format|Cells;
choose Custom on the Number tab;
enter in the Type box:

[hh]:mm
Thanks but nope doesn't work!
What result do you get?
Aladin Akyurek is offline   Reply With Quote
Old Feb 24th, 2002, 12:20 PM   #6
StacyRenee79
New Member
 
Join Date: Feb 2002
Posts: 5
Default

Quote:
On 2002-02-24 05:48, Aladin Akyurek wrote:
Quote:
On 2002-02-24 05:19, StacyRenee79 wrote:
Quote:
On 2002-02-24 00:02, Aladin Akyurek wrote:
Quote:
On 2002-02-22 16:50, StacyRenee79 wrote:
I've been trying to create a formula to add my drivers hours. I enter them by
day, and need a total for the week.

Here is how they are keyed in:
Monday Tuesday WednesdayThursday Friday TOTAL
9.50 9.50 8.15 9.23 8.50 6.08


Supposing that A2:F2 houses the keyed in hours,

in G2 enter: =SUM(A2:F2)

And, this is important, custom format G2 as [hh]:mm.

To custom format a cell,

activate the cell;
activate Format|Cells;
choose Custom on the Number tab;
enter in the Type box:

[hh]:mm
Thanks but nope doesn't work!
What result do you get?
I get an off the wall result.
StacyRenee79 is offline   Reply With Quote
Old Feb 24th, 2002, 01:32 PM   #7
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

[/quote]

I get an off the wall result.
[/quote]

No wonder. I disregarded the fact that you enter times not as true times.

In G2 enter:

=(SUM(A2:F2)/24)*24

Format G2 as General.

For the values you provided:

{9.5,9.5,8.15,9.23,8.5,6.08}

I get:

50.96

Is this what you're looking for?
Aladin Akyurek is offline   Reply With Quote
Old Feb 24th, 2002, 06:30 PM   #8
StacyRenee79
New Member
 
Join Date: Feb 2002
Posts: 5
Default

Yeah I can do that but anything over 60 min. I need 40 added to that, in order for the value to be accurate.

Ex. 9.50 + 9.50 = 19.00 but time wise you have to add 40 for the correct hours. You can't add 50min. and 50min. to get 100min. It's actually 1 hour 40 min.
StacyRenee79 is offline   Reply With Quote
Old Feb 24th, 2002, 06:55 PM   #9
Derek
Board Regular
 
Join Date: Feb 2002
Location: Perth Australia
Posts: 1,567
Default

Hi
If you are trying to add up time, you really need to separate your hours and minutes with a colon instead of a dot. If you then format your cells as Aladin suggests [hh]:mm you can just add them up and get the correct answer.
You can use the edit, replace function to change your dots to colons.
Derek
Derek is offline   Reply With Quote
Old Feb 24th, 2002, 07:09 PM   #10
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-02-24 17:30, StacyRenee79 wrote:
Yeah I can do that but anything over 60 min. I need 40 added to that, in order for the value to be accurate.

Ex. 9.50 + 9.50 = 19.00 but time wise you have to add 40 for the correct hours. You can't add 50min. and 50min. to get 100min. It's actually 1 hour 40 min.
I don't believe I understand the logic you're using:

9.50 is often used as another notation for

9:30

2 x 9:30 = 19:00 (or, in decimal notation, 19.00)

By the way, it would help getting a direct answer, e.g., to what the result of 9.50 + 9.50 should be.
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 02:31 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