+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Count no. of weekly holidays & government holiday

  1. #1
    Registered User
    Join Date
    07-01-2010
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    Excel 2003
    Posts
    13

    Count no. of weekly holidays & government holiday

    Hello every one,
    I am very new at this forum and just wondering if I could get a solution. The details of my issue is:

    I have start date, finish date and list of holidays. I want to use formula which will show me total no. of holidays within start and finish date for each row.

    for example:
    Start date
    10-Jul

    Finish date
    24-Jul

    Holiday lists
    7-Jul
    20-jul
    23-Jul
    25-Jul

    no. of holiday
    Formula????

    How do I formulate?

    Looking for you help. Thanks in advance.

    Rokon
    Last edited by dailyglobal; 07-01-2010 at 12:06 PM.

  2. #2
    Forum Contributor
    Join Date
    08-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    149

    Re: Count no. of weekly holidays & government holiday

    So A2 is your start date, A5 is your end date and A8:A11 is your list of holidays:

    =NETWORKDAYS(A2,A5)-NETWORKDAYS(A2,A5,A8:A11)

  3. #3
    Registered User
    Join Date
    07-01-2010
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Count no. of weekly holidays & government holiday

    Perfectly worked. Many many thanks. You have saved the day for me.


    Quote Originally Posted by masteff View Post
    So A2 is your start date, A5 is your end date and A8:A11 is your list of holidays:

    =NETWORKDAYS(A2,A5)-NETWORKDAYS(A2,A5,A8:A11)

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

    Re: Count no. of weekly holidays & government holiday

    Another alternative in this context would be:

    =COUNTIFS(A8:A11,">="&A2,A8:A11,"<="&A5)

  5. #5
    Forum Contributor
    Join Date
    08-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    149

    Re: Count no. of weekly holidays & government holiday

    Quote Originally Posted by DonkeyOte View Post
    Another alternative in this context would be:

    =COUNTIFS(A8:A11,">="&A2,A8:A11,"<="&A5)
    Cool. I really do need to move up to Excel 2007.

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

    Re: Count no. of weekly holidays & government holiday

    I think general consensus would be to skip 2007 and move straight to 2010 which is regarded as a fairly big improvement.

    Office 2007 is it seems to be seen in similar terms to the Millennium Edition OS of old ... ie not to be spoken of and surpassed (significantly) by follow up (XP)

+ 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