PC Review


Reply
Thread Tools Rate Thread

calculate number of days btw dates

 
 
=?Utf-8?B?TmVsc29u?=
Guest
Posts: n/a
 
      27th Feb 2006
Hello,
I'm trying to calculate the total number of days availabe between two dates.
I know that I can use Networkdays, but that will get me Monday to Friday.
Now, I need to know how can I calculate the number of days available btw the
dates BUT Monday to Thursday (or Tuesday to Friday)?

Thank you in advance,

Nelson
 
Reply With Quote
 
 
 
 
Peo Sjoblom
Guest
Posts: n/a
 
      27th Feb 2006
You can still use networkdays, just include the Fridays or Mondays in the
holidays part and they won't be included,
that is certainly both shorter and easier than adding a formula that
subtract all Fridays/Mondays for networkdays

--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon




"Nelson" <(E-Mail Removed)> wrote in message
news:FD3AB5D1-1BC4-4D67-BCDE-(E-Mail Removed)...
> Hello,
> I'm trying to calculate the total number of days availabe between two
> dates.
> I know that I can use Networkdays, but that will get me Monday to Friday.
> Now, I need to know how can I calculate the number of days available btw
> the
> dates BUT Monday to Thursday (or Tuesday to Friday)?
>
> Thank you in advance,
>
> Nelson


 
Reply With Quote
 
daddylonglegs
Guest
Posts: n/a
 
      2nd Mar 2006

This will exclude Mondays as well as weekends where your start date is
in A1 and end date in B1

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

be aware that if you use the 3rd argument of NETWORKDAYS with this to
exclude holidays you should not include any Mondays within your holiday
range because they will then be excluded twice and your result will be
incorrect

You can exclude Fridays by using the ame formula but with the 2 changed
to a 6


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=516919

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to calculate the number of days between two dates on a 30 day James Dasher Microsoft Excel Worksheet Functions 5 11th Apr 2009 02:46 AM
How to calculate the number of days between two dates Aiswarya Microsoft Excel Misc 2 17th Feb 2009 10:29 AM
Calculate the number of days between two dates Luca Villa Microsoft Excel Programming 23 13th Nov 2007 11:48 PM
Calculate the number of days between two dates IF WE HAVE SAME DA. =?Utf-8?B?emFoaXI=?= Microsoft Access 1 7th Sep 2004 08:00 PM
How to calculate the number of days between 2 dates Jacqueline Microsoft Access Queries 3 16th Dec 2003 10:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:38 PM.