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 tell Calc that NETWORKDAYS function includes Saturday

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


Joined: 29 Mar 2005
Posts: 26
Location: South India

PostPosted: Tue Oct 31, 2006 6:43 am    Post subject: How to tell Calc that NETWORKDAYS function includes Saturday Reply with quote

Fedora Core 5
KDE 3.5.4-0.5.fc5
OpenOffice 2.0.4


In many developing countries Saturday is still a workday. It is therefore desirable to be able to tell the NETWORKDAYS function that a week has either 5 or 6 working days. Any idea? In my KDE general settings this is set but OOo doesn't check this (Why should it?).
Thanks for help in advance

Be4Truth
Back to top
View user's profile Send private message Visit poster's website
davidh182
OOo Advocate
OOo Advocate


Joined: 01 Apr 2004
Posts: 413

PostPosted: Tue Oct 31, 2006 9:03 am    Post subject: Reply with quote

The following should count up saturdays:

Code:

function count_saturdays(d1,d2)
   count_saturdays=int((d2+7)/7)-int((d1+6)/7)
end function


Doesn't seem to be an option for this in OO. It would be quite easy for the developers to put in an optional true/false parameter for including Saturdays. You can request this...
Back to top
View user's profile Send private message Send e-mail
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