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 4th, 2002, 01:27 AM   #1
booiboa
New Member
 
Join Date: Apr 2002
Posts: 25
Default

I use a excelsheet for keeping track of hy projects. THere I have a row for budgeted hours, one for used hours, and one for hours left to use.
Every week I manually have to calculate how many days/hours there are left on the calendar, to see if we need more resources or not.

Is there a way to set starting date and stop date and get the total of working hours? Also so it automatically updates how many days/hours there are left by looking at todays date and stop date?

Any ideas anyone?
Thanks,
// Boo Engstrand //
booiboa is offline   Reply With Quote
Old Apr 4th, 2002, 02:33 AM   #2
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Try This, NOT very elegant, but may get you started,

1) put your start date/time in A1
2) End time in B1
3) in C1 put =NOW()
$) in D1 put =LEFT(B1-C1,FIND(".",B1-C1)-1)&" Days "&TEXT(RIGHT(B1-C1,LEN(B1-C1)-LEN(LEFT(B1-C1,FIND(".",B1-C1)-1))),"h:mm")&" Hours"

Note The start time is not important in the calculation BUT you can adapt the formula to return time elalaped.

Also, for the number of hours change the Format of the cell to Custom [h]:mm

hope this helps
_________________
Share the wealth!!
Ian Mac

[ This Message was edited by: Ian Mac on 2002-04-04 01:35 ]
Ian Mac is offline   Reply With Quote
Old Apr 4th, 2002, 03:42 AM   #3
booiboa
New Member
 
Join Date: Apr 2002
Posts: 25
Default

Thank you for your answer!!

Your formula got me the amount of days and hours between start and stop date. There is a function called workdays (or something). Is there anyway I can use that to eliminate weekends, holidays, and then multiply the result with 8 (working hours in a day)??

// Boo //
booiboa is offline   Reply With Quote
Old Apr 4th, 2002, 03:51 AM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-04 00:27, booiboa wrote:
I use a excelsheet for keeping track of hy projects. THere I have a row for budgeted hours, one for used hours, and one for hours left to use.
Every week I manually have to calculate how many days/hours there are left on the calendar, to see if we need more resources or not.

Is there a way to set starting date and stop date and get the total of working hours? Also so it automatically updates how many days/hours there are left by looking at todays date and stop date?

Any ideas anyone?
Thanks,
// Boo Engstrand //
Consider the following whic is in A1:E2.

{"budgeted hours","start date","end date","hours used","hours left";
90,37297,37312,90,0}

A2 houses total budgeted hours entered manually.

B2 houses the project start date entered manually.

In C2 enter:

=WORKDAY(B2,A2/8)

that computes a workday date on which the project ends (that is, budgeted hours will have to be used). Note that a working day counts 8 work hours.

In D2 enter:

=IF(TODAY()>C2,A2,NETWORKDAYS(B2,TODAY())*8)

that computes hours used up to today.

In E2 enter:

=A2-D2

which computes the hours left at any moment in time.

Note. WORKDAY as well as NETWORKDAYS are available thru the Analysis Toolpak (which you can activate via Tools|Add-Ins, if needed). Also, these two functions allow you to take a pre-specified set of holidays. Consult the Help file for this feature.

Aladin
Aladin Akyurek is offline   Reply With Quote
Old Apr 4th, 2002, 04:37 AM   #5
booiboa
New Member
 
Join Date: Apr 2002
Posts: 25
Default

Hi Aladin,

Worked fine!!
My calculator gives you his regards too!!

Thanks for your help. Most appreciated!
// Boo //
booiboa is offline   Reply With Quote
Old Apr 4th, 2002, 05:00 AM   #6
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

I realise you have a answer but I thought I throw this idea into the pot, I like the idea of putting a target number of hours into the mix.
going along those lines

in A1 target hours
B1 Start Date
C1 =WORKDAY(B1,A1/8)
And D1 =IF(C1use a less than signNOW(),"Overdue by "&(NETWORKDAYS(NOW(),C1)+1)*(NETWORKDAYS(NOW(),C1)+1)&IF((NETWORKDAYS(NOW(),C1)+1)*(NETWORKDAYS(NOW(),C1)+1)=1," day "," days ")&TEXT(NOW()-"9:00","h:mm")&" Hours",NETWORKDAYS(NOW(),C1)-1&" days "&TEXT("9:00"-TEXT(NOW()-"9:00","h:mm"),"h:mm")&" Hours Remaining")

this will give the Days and Hours based on a starting day time of 9:00 (change as needed), and also give the amount of time overdue.

An interesting thing re: this question is, what if you plan to start a job at 12:00 and it will take 27 hours to complete, the expected time of completion would be 15:00 the next working day. ny formula doesn't answer that question but could be adapted if needed.

_________________
Share the wealth!!
Ian Mac

[ This Message was edited by: Ian Mac on 2002-04-04 08:20 ]
Ian Mac is offline   Reply With Quote
Old Apr 4th, 2002, 05:21 AM   #7
booiboa
New Member
 
Join Date: Apr 2002
Posts: 25
Default

Hi Ian Mac,

I did not follow you there:
---------------------------
in A1 target hours
B1 Start Date
C1 =WORKDAY(B1,A1/8)
And D1 =IF(C1

---------------------------
Did something fell off??

For my use of this I'm not concerned when on a day the work is finished or started. I'm just calculating that everybody does their 8 hour day. But it is an interesting question.

Regards,
// Boo //
booiboa is offline   Reply With Quote
Old Apr 4th, 2002, 09:21 AM   #8
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-04-04 04:21, booiboa wrote:
Hi Ian Mac,

I did not follow you there:
---------------------------
in A1 target hours
B1 Start Date
C1 =WORKDAY(B1,A1/8)
And D1 =IF(C1

---------------------------
Did something fell off??

For my use of this I'm not concerned when on a day the work is finished or started. I'm just calculating that everybody does their 8 hour day. But it is an interesting question.

Regards,
// Boo //
Again I know you have your answer but it took me while, check the above post again, I can't seem to disable the Http on here. It will be my fault.
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac 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 11:32 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