Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MT
 
Posts: n/a
Default Using WORKDAY function

Hello, I'm trying to successfully use the WORKDAY function. I have created a
list of holidays, but what's happening is that I am unable to get both the
correct date and the time. If I get the correct date, the time is always
00:00:00 (and it should be adjusted accordingly), or, I will get the correct
time and the date is extremely far into the future. Can you please advise?
Thanks.

Here is an example:
The function: =WORKDAY(D5,2,Holiday!A1:A12)...results placed in E5
the above calculates from D5 -- Friday, 06/02/06 15:00:00
The results in E5 a 06/06/06 00:00:00
The above is great except for the time.

Then, when I tried:
The function this way: =D5+WORKDAY(D5,2,Holiday!A1:A12)
Let's use the same D5 -- Friday, 06/02/06 15:00:00
The results a 11/07/12 15:00:00
The above results give the correct time, but the date is way off!!!

I have not idea how to remedy this. Any ideas? I have checked my format
for the cells in question. The oddest thing, when I used the weekday
function in combination with the IF statement...all is well. I just need to
factor in the holidays and I was told that WORKDAY would be easier.

Thanks again.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Using WORKDAY function

Try this formula:

=WORKDAY(D5,2,Holiday!A1:A12)+MOD(D5,1)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"MT" wrote:

Hello, I'm trying to successfully use the WORKDAY function. I have created a
list of holidays, but what's happening is that I am unable to get both the
correct date and the time. If I get the correct date, the time is always
00:00:00 (and it should be adjusted accordingly), or, I will get the correct
time and the date is extremely far into the future. Can you please advise?
Thanks.

Here is an example:
The function: =WORKDAY(D5,2,Holiday!A1:A12)...results placed in E5
the above calculates from D5 -- Friday, 06/02/06 15:00:00
The results in E5 a 06/06/06 00:00:00
The above is great except for the time.

Then, when I tried:
The function this way: =D5+WORKDAY(D5,2,Holiday!A1:A12)
Let's use the same D5 -- Friday, 06/02/06 15:00:00
The results a 11/07/12 15:00:00
The above results give the correct time, but the date is way off!!!

I have not idea how to remedy this. Any ideas? I have checked my format
for the cells in question. The oddest thing, when I used the weekday
function in combination with the IF statement...all is well. I just need to
factor in the holidays and I was told that WORKDAY would be easier.

Thanks again.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MT
 
Posts: n/a
Default Using WORKDAY function

Ron,

Yes!!! This worked out!! Thanks again!!!

MT

"Ron Coderre" wrote:

Try this formula:

=WORKDAY(D5,2,Holiday!A1:A12)+MOD(D5,1)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"MT" wrote:

Hello, I'm trying to successfully use the WORKDAY function. I have created a
list of holidays, but what's happening is that I am unable to get both the
correct date and the time. If I get the correct date, the time is always
00:00:00 (and it should be adjusted accordingly), or, I will get the correct
time and the date is extremely far into the future. Can you please advise?
Thanks.

Here is an example:
The function: =WORKDAY(D5,2,Holiday!A1:A12)...results placed in E5
the above calculates from D5 -- Friday, 06/02/06 15:00:00
The results in E5 a 06/06/06 00:00:00
The above is great except for the time.

Then, when I tried:
The function this way: =D5+WORKDAY(D5,2,Holiday!A1:A12)
Let's use the same D5 -- Friday, 06/02/06 15:00:00
The results a 11/07/12 15:00:00
The above results give the correct time, but the date is way off!!!

I have not idea how to remedy this. Any ideas? I have checked my format
for the cells in question. The oddest thing, when I used the weekday
function in combination with the IF statement...all is well. I just need to
factor in the holidays and I was told that WORKDAY would be easier.

Thanks again.


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 RUSH2CROCHET Excel Discussion (Misc queries) 4 May 17th 06 07:34 PM
to use workday function in excel vba code sjayar Excel Discussion (Misc queries) 1 November 10th 05 12:48 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 10:49 AM.

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

About Us

"It's about Microsoft Excel"