OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to Count days in date range, excluding weekends

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
livemusic
General User
General User


Joined: 17 Feb 2008
Posts: 21
Location: Louisiana, USA

PostPosted: Wed May 21, 2008 11:53 pm    Post subject: How to Count days in date range, excluding weekends Reply with quote

Is there any way to do this? Say I have two columns of dates, Column A and Column B, the begin date of a contract and the end date. I want to create a column that would calculate the number of banking days in that range. Banking days generally being Mon - Fri. If there is way to also not count holidays, that's even better. Can anyone tell me the exact formula I need?
Back to top
View user's profile Send private message Visit poster's website
Mark B
Super User
Super User


Joined: 16 Feb 2007
Posts: 852
Location: Lincolnshire, UK

PostPosted: Thu May 22, 2008 12:31 am    Post subject: Reply with quote

Hi

Use NETWORKDAYS:
Code:

A1: 1/5/2008
B1: 31/5/2008
C1: =NETWORKDAYS(A1;B1)


Result in C1: 22

Mark
_________________
Mark B's Articles
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
keme
Moderator
Moderator


Joined: 30 Aug 2004
Posts: 2910
Location: Egersund, Norway

PostPosted: Thu May 22, 2008 12:35 am    Post subject: Reply with quote

Use the NETWORKDAYS() function.

You will have to make your own list of holidays as dates in a cell range, and refer to the range as the (optional) third parameter to the function.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group