Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Using WORKDAY function

In a formula I only wanted work days to be shown. I used the WORKDAY
function which worked fine until I reliased weekends and holidays were missed
when the DAYS parameter was 0 (this value comes from a reference cell and
determined by other occurences.). Out of despiration I tried using
STARTDATE-1 and DAYS (x+1). That works fine...maybe not the right
solution.... I still wonder why would the use of 0 as DAYS not function
properly? Was this possiblity simply not forseen?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Using WORKDAY function

In a formula I only wanted work days to be shown. I used the WORKDAY
function which worked fine until I reliased weekends and holidays were
missed
when the DAYS parameter was 0 (this value comes from a reference cell and
determined by other occurences.). Out of despiration I tried using
STARTDATE-1 and DAYS (x+1). That works fine...maybe not the right
solution.... I still wonder why would the use of 0 as DAYS not function
properly? Was this possiblity simply not forseen?


I am not sure what problem you are describing. If you pass in 0 for the DAYS
argument, the WORKDAY function returns the STARTDATE (which is the day zero
days away from itself).... holidays and weekends do not come into play when
the DAYS argument is zero.

Rick

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Using WORKDAY function

Hi, I would be importing third party information from a spreadsheet from
outside South Africa. The dates in my spreadsheet would then be updated to
the next working day (taking weekends and our holidays into consideration).
Due to time lags & other delays before updating my info I foresee instances
where there is zero DAYS from the STARTDATE...yet I wanted the next workday
date after considering weekends / holidays. The formula I'm using works...al
be it based on "taking chance". I merely want to understand the functioning
of the WORKDAY function better & know whether there are alternatives. Thanks

"Rick Rothstein (MVP - VB)" wrote:

In a formula I only wanted work days to be shown. I used the WORKDAY
function which worked fine until I reliased weekends and holidays were
missed
when the DAYS parameter was 0 (this value comes from a reference cell and
determined by other occurences.). Out of despiration I tried using
STARTDATE-1 and DAYS (x+1). That works fine...maybe not the right
solution.... I still wonder why would the use of 0 as DAYS not function
properly? Was this possiblity simply not forseen?


I am not sure what problem you are describing. If you pass in 0 for the DAYS
argument, the WORKDAY function returns the STARTDATE (which is the day zero
days away from itself).... holidays and weekends do not come into play when
the DAYS argument is zero.

Rick


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Using WORKDAY function

Hi, I would be importing third party information from a spreadsheet from
outside South Africa. The dates in my spreadsheet would then be updated
to
the next working day (taking weekends and our holidays into
consideration).
Due to time lags & other delays before updating my info I foresee
instances
where there is zero DAYS from the STARTDATE...yet I wanted the next
workday
date after considering weekends / holidays. The formula I'm using
works...al
be it based on "taking chance". I merely want to understand the
functioning
of the WORKDAY function better & know whether there are alternatives.
Thanks


I'm not sure what you want us to tell you... it is a mathematical certainty
that adding zero units (whether they be days, kilograms, pennies, etc.) to
some starting value will simply give you back the starting value.... X+0=X
no matter what X is. The WORKDAY function is not flawed when it does that.

Rick

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Using WORKDAY function

On Mon, 18 Jun 2007 23:13:00 -0700, Frik
wrote:

Hi, I would be importing third party information from a spreadsheet from
outside South Africa. The dates in my spreadsheet would then be updated to
the next working day (taking weekends and our holidays into consideration).
Due to time lags & other delays before updating my info I foresee instances
where there is zero DAYS from the STARTDATE...yet I wanted the next workday
date after considering weekends / holidays. The formula I'm using works...al
be it based on "taking chance". I merely want to understand the functioning
of the WORKDAY function better & know whether there are alternatives. Thanks


If you always want to ensure that if STARTDATE is Not a WORKDAY that it will be
adjusted to the next WORKDAY, you must use the solution you came up with:

=WORKDAY(STARTDATE-1,1)


--ron


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
WORKDAY function jpac Excel Worksheet Functions 1 December 22nd 06 09:50 PM
Using WORKDAY function MT Excel Worksheet Functions 2 June 5th 06 07:53 PM
Workday function RUSH2CROCHET Excel Discussion (Misc queries) 4 May 17th 06 07:34 PM
Workday function 4110 Excel Worksheet Functions 0 January 19th 06 03:02 PM
How do I get the WORKDAY function? jorfo Excel Discussion (Misc queries) 1 December 4th 04 11:01 PM


All times are GMT +1. The time now is 05:46 AM.

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"