Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default workday formula question

I am trying to create a schedule for a machine. I know how much of a day
each job will take. When I use a formula to just add column b to c, the
result actually includes the hour of the day, but I need to exclude the
weekend. When I use workday function then the fraction of the day seems to
not be included in the calculation. Is there a way to combine these
functions to add a portion of a day only using the work week?






B C b+c workday function=WORKDAY(C3,B3)
3.25 5/1/08 12:00 AM 5/4/08 6:00 AM 5/6/08 12:00 AM

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 353
Default workday formula question

=IF(OR(WEEKDAY(C3+B3)=7,WEEKDAY(C3+B3)=1),C3+B3+2, C3+B3)

Assuming you just wanted to add two more days if the finish date fell on the
weekend, this should give you what you want...

"notanexcelguru" wrote:

I am trying to create a schedule for a machine. I know how much of a day
each job will take. When I use a formula to just add column b to c, the
result actually includes the hour of the day, but I need to exclude the
weekend. When I use workday function then the fraction of the day seems to
not be included in the calculation. Is there a way to combine these
functions to add a portion of a day only using the work week?






B C b+c workday function=WORKDAY(C3,B3)
3.25 5/1/08 12:00 AM 5/4/08 6:00 AM 5/6/08 12:00 AM

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default workday formula question

It works. Thanks so much for your help. Do you know if there is a way to
omit holidays?

"BoniM" wrote:

=IF(OR(WEEKDAY(C3+B3)=7,WEEKDAY(C3+B3)=1),C3+B3+2, C3+B3)

Assuming you just wanted to add two more days if the finish date fell on the
weekend, this should give you what you want...

"notanexcelguru" wrote:

I am trying to create a schedule for a machine. I know how much of a day
each job will take. When I use a formula to just add column b to c, the
result actually includes the hour of the day, but I need to exclude the
weekend. When I use workday function then the fraction of the day seems to
not be included in the calculation. Is there a way to combine these
functions to add a portion of a day only using the work week?






B C b+c workday function=WORKDAY(C3,B3)
3.25 5/1/08 12:00 AM 5/4/08 6:00 AM 5/6/08 12:00 AM

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 353
Default workday formula question

=WORKDAY(C3,B3,H1:H8)+B3-INT(B3)+C3-INT(C3)

I actually like this better than the if, anyhow... thanx for making me think!
Uses the workday function to add days and holidays, then takes the decimal
portion of both numbers to add the times and adds that to the days.
Just create your holiday range and substitute it for my H1:H8...


"notanexcelguru" wrote:

It works. Thanks so much for your help. Do you know if there is a way to
omit holidays?

"BoniM" wrote:

=IF(OR(WEEKDAY(C3+B3)=7,WEEKDAY(C3+B3)=1),C3+B3+2, C3+B3)

Assuming you just wanted to add two more days if the finish date fell on the
weekend, this should give you what you want...

"notanexcelguru" wrote:

I am trying to create a schedule for a machine. I know how much of a day
each job will take. When I use a formula to just add column b to c, the
result actually includes the hour of the day, but I need to exclude the
weekend. When I use workday function then the fraction of the day seems to
not be included in the calculation. Is there a way to combine these
functions to add a portion of a day only using the work week?






B C b+c workday function=WORKDAY(C3,B3)
3.25 5/1/08 12:00 AM 5/4/08 6:00 AM 5/6/08 12:00 AM

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested formula using WORKDAY function davisk Excel Worksheet Functions 5 October 19th 07 02:53 PM
Workday Formula Shannon Excel Worksheet Functions 5 October 1st 07 10:44 PM
Workday Formula? Fernbars Excel Discussion (Misc queries) 6 June 7th 07 12:37 PM
WORKDAY formula in excel AMHud Excel Worksheet Functions 2 December 14th 05 08:04 PM
Workday Function Question PA Excel Worksheet Functions 2 July 16th 05 03:08 AM


All times are GMT +1. The time now is 01:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"