A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Workdays (inc Sat) formula



 
 
Thread Tools Display Modes
  #11  
Old May 6th, 2004, 05:11 PM
Dana DeLouis
external usenet poster
 
Posts: n/a
Default Workdays (inc Sat) formula

Opps! You're right. Didn't even think about that. Thanks. :)

--
Dana DeLouis

"Bob Phillips" wrote in message
...

but what about if one of the days in the holiday range is a Saturday?


snip


  #12  
Old May 6th, 2004, 06:48 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default Workdays (inc Sat) formula

It occurred to me as I catered for it in my code (I hopevbg).

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Dana DeLouis" wrote in message
...
Opps! You're right. Didn't even think about that. Thanks. :)

--
Dana DeLouis

"Bob Phillips" wrote in message
...

but what about if one of the days in the holiday range is a Saturday?


snip




  #13  
Old May 11th, 2004, 08:43 PM
external usenet poster
 
Posts: n/a
Default Workdays (inc Sat) formula

Great stuff chaps, thanks. But what about crossing a year change.

Your formulas give me 300 days between December and January of the following
year...!

Michael




"Frank Kabel" wrote in message
...
Hi
if A1 stores the start date and B1 the end date try the following array
formula (entered with CTRL+SHIFT+ENTER):
=B1-A1+1-SUM(IF(WEEKDAY(A1-1+ROW(INDIRECT("1:"&TRUNC(B1-A1)+1)))=1,1,0)
)

--
Regards
Frank Kabel
Frankfurt, Germany


x wrote:
I need a formula to tell me the number of workdays between two dates,
the problem being that Saturday I consider a workday.

The NETWORKDAYS function obviously won't do.

Thanks
Michael




  #14  
Old May 13th, 2004, 03:45 AM
Vasant Nanavati
external usenet poster
 
Posts: n/a
Default Workdays (inc Sat) formula

Try this:

=NETWORKDAYS(A1,B1,HOLIDAYS)+INT((B1-A1)/7)+IF(WEEKDAY(A1)6-MOD(B1-A1,7),1,
0)-SUM((WEEKDAY(HOLIDAYS)=6)*1)

Not guaranteed dto work; let us know how it turns out.
--

Vasant




x wrote in message ...
Great stuff chaps, thanks. But what about crossing a year change.

Your formulas give me 300 days between December and January of the

following
year...!

Michael




"Frank Kabel" wrote in message
...
Hi
if A1 stores the start date and B1 the end date try the following array
formula (entered with CTRL+SHIFT+ENTER):
=B1-A1+1-SUM(IF(WEEKDAY(A1-1+ROW(INDIRECT("1:"&TRUNC(B1-A1)+1)))=1,1,0)
)

--
Regards
Frank Kabel
Frankfurt, Germany


x wrote:
I need a formula to tell me the number of workdays between two dates,
the problem being that Saturday I consider a workday.

The NETWORKDAYS function obviously won't do.

Thanks
Michael






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:32 AM.


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