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 23rd, 2002, 03:37 PM   #1
Mitch
New Member
 
Join Date: Feb 2002
Posts: 7
Default

I am kind of new with excel. I have developed a weekly time sheet. in the Cell H, I have it to where it totals per day hours, exe) 8:45(h.mm), I would like to add a cell I to automatically notice that after 8 hours to put in the overtime hours after 8 hours into cell I.

Also, weekends are automatic overtime.

Does anyone know what kind of funtion to put into to achieve this.

Thanks, wish I had found this forum a couple of days ago, I was going nuts with a certain funtion and took me 2 days to figure it out!

[ This Message was edited by: Mitch on 2002-02-23 14:38 ]

[ This Message was edited by: Mitch on 2002-02-23 15:01 ]
Mitch is offline   Reply With Quote
Old Feb 23rd, 2002, 03:46 PM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

The link asks for username & password. What is up?
Aladin Akyurek is offline   Reply With Quote
Old Feb 23rd, 2002, 03:53 PM   #3
Mitch
New Member
 
Join Date: Feb 2002
Posts: 7
Default

I am not sure, I re-set permission on the file, cleared my cache and didn't get a password prompt.

Try it again and if there is a prompt, just hit ok and if it doesn't show up, let me know so I can track down why it is doing that.

Thanks
Mitch
Mitch is offline   Reply With Quote
Old Feb 23rd, 2002, 03:55 PM   #4
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,064
Default

Hi

First all my friends check your private messages from me

Hi Mate not to happy hear i have gone to your link and some download went and my virus checker or should i say CHECKERS tripped and went MAD !

Whats happening... Aladin report passwords i report VIRUS and sugget no one touches the link..

Please explain poss this post needs removing otherwise..

Rdgs

__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old Feb 23rd, 2002, 04:04 PM   #5
Mitch
New Member
 
Join Date: Feb 2002
Posts: 7
Default

I don't know what you are saying when you say this contains a virus, I just put this up and I don't rum macros or anything. I took the link off and checked it with my virus checker and did not receive anything, I am not sure why you are receiving an error, oh well, just put up to let someone see what I was trying to do, I don't want anyone getting the intention that I am putting viruses out there.

Thanks
Mitch
Mitch is offline   Reply With Quote
Old Feb 23rd, 2002, 04:28 PM   #6
Mitch
New Member
 
Join Date: Feb 2002
Posts: 7
Default

=MIN(H17,1+TIME(40,0,0)) . This formula, which assumes a 40-hour week, returns the smaller of two values: the total number of hours worked, or 40 hours. This formula subtracts the number of regular hours from total hours to yield the number of overtime hours.

I want this to work after 8 hours, does anyone know how I can impliment this.

Thanks
Mitch is offline   Reply With Quote
Old Feb 23rd, 2002, 05:04 PM   #7
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

Quote:
On 2002-02-23 15:28, Mitch wrote:
=MIN(H17,1+TIME(40,0,0)) . This formula, which assumes a 40-hour week, returns the smaller of two values: the total number of hours worked, or 40 hours. This formula subtracts the number of regular hours from total hours to yield the number of overtime hours.

I want this to work after 8 hours, does anyone know how I can impliment this.

Thanks
Mitch,

I forgat a bit the lay-out of your worksheet.

In I3 enter (I think it was row 3 where your data for regular days start):

=IF(AND(H3,H3>"8:00"+0),H3-"8:00"+0,0)

and copy down.

Note. The above is not meant for Saturday and Sunday entries.

I also noticed that you check whether there is an entry before you do a substraction. A good thing to do. However, you can shorten the formulas that do such checking like in

=IF(A1,B1-A1,0)

Aladin

[ This Message was edited by: Aladin Akyurek on 2002-02-23 23:18 ]
Aladin Akyurek is offline   Reply With Quote
Old Feb 23rd, 2002, 06:06 PM   #8
Mitch
New Member
 
Join Date: Feb 2002
Posts: 7
Default

Ok, It didn't work. Let me explain better!

Here is a sample layout:

A17
Monday

b17 (IN)
7:30 A

C17 (OUT)
11:30 A

D17 (TOTAL HOURS)
4:00

E17 (IN)
12:30 P

F17 (OUT)
5:30 P

G17 (TOTAL HOURS)
5:00

H17 (TOTAL REGULAR HOURD)
9:00

I17 (OVERTIME HOURS)
------>THIS IS WHERE I NEED TO FIGURE WHAT FUNCTION TO PUT THAT WILL ADD THE 1 HOUR OVERTIME

Hope this explaines better, thanks
Mitch

[ This Message was edited by: Mitch on 2002-02-23 17:14 ]
Mitch is offline   Reply With Quote
Old Feb 23rd, 2002, 11:14 PM   #9
Andrew XJ
Board Regular
 
Join Date: Feb 2002
Location: Singapore
Posts: 77
Default

The following are the sample formulas for your cells.

C17
=Sum(C17,-B17)

F17
=SUM(F17,E17)

G17
=SUM(C17,F17)

for the rows following you can just use auto fill(select A17:I17 and drag to row 18 and following rows needed)

Hope this helps you
Andrew XJ is offline   Reply With Quote
Old Feb 24th, 2002, 12:25 AM   #10
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

Quote:
On 2002-02-23 17:06, Mitch wrote:
Ok, It didn't work. Let me explain better!

Here is a sample layout:

A17
Monday

b17 (IN)
7:30 A

C17 (OUT)
11:30 A

D17 (TOTAL HOURS)
4:00

E17 (IN)
12:30 P

F17 (OUT)
5:30 P

G17 (TOTAL HOURS)
5:00

H17 (TOTAL REGULAR HOURD)
9:00

I17 (OVERTIME HOURS)
------>THIS IS WHERE I NEED TO FIGURE WHAT FUNCTION TO PUT THAT WILL ADD THE 1 HOUR OVERTIME

Hope this explaines better, thanks
Mitch

[ This Message was edited by: Mitch on 2002-02-23 17:14 ]
In I17 enter:

IF(AND(H17,H17>"8:00"+0),H17-"8:00"+0,0)

Custom format I17 as [hh]:mm

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 10:37 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