+ Reply to Thread
Results 1 to 5 of 5

NETWORKDAYS (for annual leave tracker)

  1. #1
    Registered User
    Join Date
    10-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Smile NETWORKDAYS (for annual leave tracker)

    Hi there,

    Pretty new to Excel but nonetheless I'm developing a basic Annual leave tracker for an individual member of staff. I've got everything to work by inputting a 'From Date', 'To Date' and by using the NETWORKDAYS function I can show the number of working days has been taken. Also I've set the number of entitled days leave which when subtracted by the total number of days taken so far gives me the remainder of days left that a person can take.

    A problem arises when trying to input the formular that don't yet have dates. If the dates cells are left blank the NETWORKDAYS cell displays a '1' which has an effect on the entire tracker. What I believe I need, is some kind of 'IF' function that knows to ignore the NETWORKDAYS operation and input a '0'

    Please feel free to open the file and have a look for yourself

    Would really appreciate a bit of guidance.


    Toby Dyson
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: NETWORKDAYS (for annual leave tracker)

    Given dates are integers you have a few options, eg:

    =IF(COUNT(E26:F26)=2,NETWORKDAYS(E26,F26),"")

    or

    =IF(MIN(E26:F26),NETWORKDAYS(E26,F26),"")

  3. #3
    Registered User
    Join Date
    10-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: NETWORKDAYS (for annual leave tracker)

    That works a treat - many thanks. Now I'm going to try and find a way to input the national holiday (bank holiday dates) so that these days are excluded in the NETWORKDAYS cell if say there holiday incorporated a bank holiday monday or something.

    Thanks DonkeyOte!

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: NETWORKDAYS (for annual leave tracker)

    Now I'm going to try and find a way to input the national holiday (bank holiday dates) so that these days are excluded in the NETWORKDAYS
    Yes this is simple enough to do - create a list of the dates and then "name" that range (naming the range is a good way to do this) and then add the additional optional parameter to your function...

    =IF(MIN(E26:F26),NETWORKDAYS(E26,F26,holidays),"")

    where "holidays" is your new named range.

    for info on naming ranges see: http://www.contextures.com/xlNames01.html

  5. #5
    Registered User
    Join Date
    10-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: NETWORKDAYS (for annual leave tracker)

    THANKS I'll look into this and try it out through today.

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1