#1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2
Default Forumlas for Dates

I need to know the # of workdays between 2 dates (I know of the NETWORKDAYS
function).
The problem is that if one of the days in that range falls on a Fri, I need
to subtract 1 more day from the workweek.

It appears the WEEKDAY function does not allow you to consider a range of
dates, only a specific date.

One option I thought of is including all Fri dates in the holiday field when
building the formula so it will exclude those dates.
This will be a bit time consuming. Any other ideas???
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,646
Default Forumlas for Dates

=NETWORKDAYS(A1,B1)-INT((B1-A1)/7)+(WEEKDAY(A1,2)=5)

This formula subtracts 1 for each Fri between A1 and B1.

--
Regards!
Stefi



€˛Nancy S€¯ ezt Ć*rta:

I need to know the # of workdays between 2 dates (I know of the NETWORKDAYS
function).
The problem is that if one of the days in that range falls on a Fri, I need
to subtract 1 more day from the workweek.

It appears the WEEKDAY function does not allow you to consider a range of
dates, only a specific date.

One option I thought of is including all Fri dates in the holiday field when
building the formula so it will exclude those dates.
This will be a bit time consuming. Any other ideas???

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
Forumlas Lisa Excel Discussion (Misc queries) 2 August 20th 07 12:12 PM
Forumlas or scripts? Gor_yee Excel Discussion (Misc queries) 0 October 16th 06 01:53 PM
how to transpose forumlas iturnrocks Excel Worksheet Functions 4 August 11th 06 04:16 PM
Forumlas Not Executing Trey Excel Discussion (Misc queries) 2 January 25th 06 04:02 PM
Help with Commission forumlas asdfasdf Excel Worksheet Functions 6 November 15th 04 05:28 PM


All times are GMT +1. The time now is 11:56 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"