PC Review


Reply
Thread Tools Rate Thread

culculating holidays

 
 
=?Utf-8?B?U3ZldGxhbmE=?=
Guest
Posts: n/a
 
      20th Aug 2007
Hi. i am trying to set spreadsheets of holidays for each peasron
i have tryed to use DATEDIF formula but seems to be it is not what i need
as, for example, if person took days off on 16/03/07 and 17/03/07 it gives me
result as only 1 day. what formula shell i use?
thank you for your help
Svetlana
 
Reply With Quote
 
 
 
 
David Biddulph
Guest
Posts: n/a
 
      20th Aug 2007
If the dates you've got are the start and end dates of the holiday, then
you'll need to add 1 day to what DATEDIF gives you, as DATEDIF gives the
number of days difference between the dates, which is of course 1 day in the
case of your example. (So if your first day and last day of the holiday are
the same, the DATEDIF function gives zero and you add 1). Instead of
DATEDIF you could merely have used =B1-A1 (and still added 1 to get your
desired result). Bear in mind, however, that (either with the simple
formula or with DATEDIF) you may struggle with half days of holiday, & (more
significantly) it won't deal with weekends. To cope with weekends (and bank
holidays if applicable) you may want to use the NETWORKDAYS function.
--
David Biddulph

"Svetlana" <(E-Mail Removed)> wrote in message
news:57EFC4FC-9314-4ACE-BA12-(E-Mail Removed)...
> Hi. i am trying to set spreadsheets of holidays for each peasron
> i have tryed to use DATEDIF formula but seems to be it is not what i need
> as, for example, if person took days off on 16/03/07 and 17/03/07 it gives
> me
> result as only 1 day. what formula shell i use?
> thank you for your help
> Svetlana



 
Reply With Quote
 
=?Utf-8?B?U3ZldGxhbmE=?=
Guest
Posts: n/a
 
      20th Aug 2007
Thank you very much for your reply. hope it will work always the way i need.
Regards
Svetlana


"David Biddulph" wrote:

> If the dates you've got are the start and end dates of the holiday, then
> you'll need to add 1 day to what DATEDIF gives you, as DATEDIF gives the
> number of days difference between the dates, which is of course 1 day in the
> case of your example. (So if your first day and last day of the holiday are
> the same, the DATEDIF function gives zero and you add 1). Instead of
> DATEDIF you could merely have used =B1-A1 (and still added 1 to get your
> desired result). Bear in mind, however, that (either with the simple
> formula or with DATEDIF) you may struggle with half days of holiday, & (more
> significantly) it won't deal with weekends. To cope with weekends (and bank
> holidays if applicable) you may want to use the NETWORKDAYS function.
> --
> David Biddulph
>
> "Svetlana" <(E-Mail Removed)> wrote in message
> news:57EFC4FC-9314-4ACE-BA12-(E-Mail Removed)...
> > Hi. i am trying to set spreadsheets of holidays for each peasron
> > i have tryed to use DATEDIF formula but seems to be it is not what i need
> > as, for example, if person took days off on 16/03/07 and 17/03/07 it gives
> > me
> > result as only 1 day. what formula shell i use?
> > thank you for your help
> > Svetlana

>
>
>

 
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
holidays Mark Microsoft Outlook Calendar 5 3rd May 2008 04:46 AM
UK Holidays =?Utf-8?B?ZnJlZWJvb3Rlcg==?= Microsoft Outlook Calendar 1 20th Jun 2006 02:07 PM
no holidays =?Utf-8?B?Z21zY2FybGV0dA==?= Microsoft Outlook Calendar 1 25th May 2006 12:09 AM
Why do i have holidays on two days? I show holidays the day b4 =?Utf-8?B?dG9ueXl2bm4=?= Microsoft Outlook Calendar 1 8th Jun 2005 07:11 PM
Re: Insert user specific holidays in calendar similar to national holidays Sue Mosher [MVP-Outlook] Microsoft Outlook Calendar 0 4th Apr 2004 06:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:57 AM.