+ Reply to Thread
Results 1 to 5 of 5

Need help in excluding holiday list in existing weekdays / workingdays count formula

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Need help in excluding holiday list in existing weekdays / workingdays count formula

    Hello Guys,

    I am currently using a formula to count workingdays between two dates which includes Saturday also (there some more conditions are there in formula).

    My need is :

    1. I want to exclude the holiday list also in the existing formula (used in Column E).
    2. If possible can i want to have a function that if value in Column D is "Clear" then it freeze the value in Column E (means stop the formula to work).

    The sasmple file is attached for your reference.

    Thanks,
    MG
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Need help in excluding holiday list in existing weekdays / workingdays count formula

    Please try these functions.


    This function will exclude the weekends & holidays.

    =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(DATE(YEAR(B5),MONTH(B5),DAY(B5))&":"&DATE(YEAR($E$2),MONTH($E$2),DAY(E2)))))<>7),--(WEEKDAY(ROW(INDIRECT(DATE(YEAR(B5),MONTH(B5),DAY(B5))&":"&DATE(YEAR($E$2),MONTH($E$2),DAY(E2)))))<>1),--(COUNTIF('Holiday List'!$A$2:$A$11,ROW(INDIRECT(DATE(YEAR(B5),MONTH(B5),DAY(B5))&":"&DATE(YEAR($E$2),MONTH($E$2),DAY(E2)))))<>1))

    or

    =NETWORKDAYS(B5,$E$2,'Holiday List'!$A$2:$A$11)
    Attached Files Attached Files
    Last edited by ramananhrm; 11-08-2013 at 03:02 AM.
    Please click 'Add reputation', if my answer helped you.

  3. #3
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Re: Need help in excluding holiday list in existing weekdays / workingdays count formula

    Hi Raman,

    Thanks for the reply. The SUMPRODUCT formula is working good as it is including Monday to Saturady as an Working day and excluding only Sundays & Holidays.

    If you can help me, in my sheet the formula which i am using is having a 1 IF condition for Column C also. Can you merge this formula with that IF condition.

    Second, is my above mentione 2nd reuirement (to freeze the cell) is also possible.

    Thanks,
    MG

  4. #4
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Need help in excluding holiday list in existing weekdays / workingdays count formula

    Hi Manish,

    Please try this updated file.
    Attached Files Attached Files
    Last edited by ramananhrm; 11-08-2013 at 05:08 AM. Reason: If condition is included

  5. #5
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Re: Need help in excluding holiday list in existing weekdays / workingdays count formula

    Hi Raman,

    The formula with IF condition is working perfect. Just last query is there any possibilites regarding of my 2nd requirement which is:

    2. If possible, i want to have a function that if value in Column D is "Clear" then it freeze the value in Column E (means stop the formula to count further).

    Many Thanks for help.
    Last edited by Manish_Gupta; 11-08-2013 at 05:22 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] IF function using WORKDAYS and a Bank Holiday list - trying to add new holiday dates
    By jowarks in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-05-2013, 05:42 AM
  2. Excel Formula to calculate working hours between two dates excluding weekdays with wh
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-28-2013, 11:20 AM
  3. Date/Time Calculation excluding weekends and holiday list not working
    By mikeyk80 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-31-2012, 10:39 AM
  4. Replies: 4
    Last Post: 11-19-2010, 12:42 AM

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