+ Reply to Thread
Results 1 to 2 of 2

Exclusion of weekdays and holidays from a formula

  1. #1
    Registered User
    Join Date
    06-11-2014
    Posts
    20

    Exclusion of weekdays and holidays from a formula

    Hello All,

    I am currently trying to "decode" a pivot table that is calculating the average number of days that it takes to complete tasks. My objective is to adjust the formulas, so that all weekends and holidays will be excluded from calculations. I have been provided with a list of the holidays that the company follows during the year (there are 12 in total). Weekends are 52 a year, which leads to 104 days.

    The column calculating durations it takes to complete each item looks like this:

    If(OR(A2="",C2=""),"",C2-A2)

    The A column contains dates (DD/MM/YYYY) for when the items were assigned to be built. The C column contains the dates (DD/MM/YYYY) for when the items were completed. Hence, if either of those columns contains a blank, the value of the timeframe calculation is blank. Otherwise, a positive or negative number appears, indicating the amount of days it took to complete the item. Negatives will appear for items that were assigned after they were completed.

    I mention this column, because I believe it is the column containing the formula that I need to alter. Basically all that is needed, is for the formulas to take into account that holidays and weekends should be excluded.... E.G. if a time frame goes over a holiday or a weekend, it shouldn't count those days. So something that has, lets say, an assign date of today (6/19) and a completed date of 6/26, would calculate out to 5 instead of 7, since the weekend will not be counted.

    I figure if the formula is changed in this column, then the pivot will spit out the adjusted data, since it will be taking an average of what will be a reduced number of days that the items are taking to be completed.

    I understand the formula's for excluding holidays, as well as weekends. However, I am not sure how they can be applied within another formula, and if this is possible.

    I would provide a spreadsheet, however it contains company-sensitive data. Any input is appreciated. I will try to work with any advice I receive here.

    Thank you,

    - J

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Exclusion of weekdays and holidays from a formula

    The NETWORKDAYS function is designed to cater for weekends and holidays.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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] Formula using COUNTIFS with the exclusion of certain information
    By Johfra in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-22-2014, 02:25 PM
  2. Countif exclusion formula help
    By scsuflyboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2012, 10:47 PM
  3. Replies: 4
    Last Post: 03-08-2012, 02:57 PM
  4. Replies: 4
    Last Post: 11-19-2010, 12:42 AM
  5. Counting Weekdays + Saturday, omit holidays
    By bryceowen in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-20-2008, 11:29 AM

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