Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
goober
 
Posts: n/a
Default networkdays problem


Hi. I have the following formula which calculates work days with
non-Sat/Sun weekends. The problem I am having is that for excluding
holidays it still works as if it is Sat/Sun weekends. Could anyone
help me out with a solution.

=(NETWORKDAYS(C48+3,F48+3,S$38:S$66))-(INT((((F48+4)-(C48+4))-MOD(7-(C48+4),7))/7)+1)

Thanks.


--
goober
------------------------------------------------------------------------
goober's Profile: http://www.excelforum.com/member.php...o&userid=19838
View this thread: http://www.excelforum.com/showthread...hreadid=495485

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default networkdays problem

On Thu, 22 Dec 2005 07:44:12 -0600, goober
wrote:


Hi. I have the following formula which calculates work days with
non-Sat/Sun weekends. The problem I am having is that for excluding
holidays it still works as if it is Sat/Sun weekends. Could anyone
help me out with a solution.

=(NETWORKDAYS(C48+3,F48+3,S$38:S$66))-(INT((((F48+4)-(C48+4))-MOD(7-(C48+4),7))/7)+1)

Thanks.


If your weekend days are "two" and are contiguous, then you just need to add an
appropriate offset to start_date, end_date, and holiday_dates. You may not be
adding the appropriate offset to holiday_dates in your formula.

If you have some other criteria for weekend dates, then I can post a UDF that
is more flexible.



--ron
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
goober
 
Posts: n/a
Default networkdays problem


Thank you Ron. An offset fixed the issue I was having. I didn't
realize that it would be that simple of a fix. Your help is greatly
appreciated.


--
goober
------------------------------------------------------------------------
goober's Profile: http://www.excelforum.com/member.php...o&userid=19838
View this thread: http://www.excelforum.com/showthread...hreadid=495485

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default networkdays problem

On Thu, 22 Dec 2005 20:43:09 -0600, goober
wrote:


Thank you Ron. An offset fixed the issue I was having. I didn't
realize that it would be that simple of a fix. Your help is greatly
appreciated.


Thanks for the feedback. I'm glad I was able to help.

Best wishes,
--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
Urgent Help Required on Excel Macro Problem Sachin Shah Excel Discussion (Misc queries) 1 August 17th 05 06:26 AM
Problem With Reference Update Egon Excel Worksheet Functions 17 July 16th 05 05:45 AM
Copy an Drag cell Formula Problem Nat Excel Discussion (Misc queries) 1 June 20th 05 03:24 PM
problem office assistant R.VENKATARAMAN Excel Discussion (Misc queries) 0 June 15th 05 06:22 AM
Freeze Pane problem in shared workbooks JM Excel Discussion (Misc queries) 1 February 1st 05 12:04 AM


All times are GMT +1. The time now is 07:10 PM.

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"