+ Reply to Thread
Results 1 to 7 of 7

need to compute networkdays but include individual's vacations, as well as federal holiday

  1. #1
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    need to compute networkdays but include individual's vacations, as well as federal holiday

    hi,

    for computing availability of a team member during an Agile Sprint, i have this situation:

    sprint starts 15-JUN-23, ends 28-JUN-23. 19th June is US Federal Holiday.

    J Doe is on vacation between 25-JUN-23 and 4-JUL-23 (inclusive).

    J Doe's availability during the sprint is 6 days out of the possible 9 days for that sprint, i would like the formula to tell me.

    as you can imagine, there are several team members, with different vacation schedules, and there are many more holidays during subsequent sprints (e.g., 4th of July for the next sprint). so a formula that would be dynamic enough to handle all that is desired.

    i am drawing a blank. thanks for the assistance. make @daddylonglegs proud with a fabulous date / time formula.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,792

    Re: need to compute networkdays but include individual's vacations, as well as federal hol

    You will need a way to build a list for each team member combining both holidays and vacation days. There are a couple of ways to do this, but a little more convoluted using older versions of Excel. Ultimately the solution is very dependent on your specific data layout. Attach a file with some sample data (do not include any private data), and let us know where to find the list of holidays, the lists of vacation days for each team member, and where you want the result to show up (as in 6 days in your J Doe example).
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: need to compute networkdays but include individual's vacations, as well as federal hol

    hi, i have uploaded a file. i hope this helps visualise what i am looking for. thanks.

    I am using excel 2019.

    posted elsewhere
    Attached Files Attached Files
    Last edited by icestationzbra; 06-06-2023 at 09:22 AM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,706

    Re: need to compute networkdays but include individual's vacations, as well as federal hol

    This is not in the same league with a daddylonglegs formula, but perhaps it will prompt someone to come up with one.
    1. Column P is a list of dates for the sprints: =B2 and =SUM(P2,1)
    2. Columns Q:R display 1 or 0 depending on the active sprint: =SUMPRODUCT(($A$2:$A$3=P$1)*($B$2:$B$3<=$R2)*($C$2:$C$3>=$R2))
    3. Columns S:T display the availably of the employee using:
    =IF(WEEKDAY($P2,2)>=6,"",IF(NOT(OR(COUNTIFS($H$2:H$3,$P2),SUMPRODUCT(($J$2:$J$3=S$1)*($K$2:$K$3<=$P2)*($L$2:$L$3>=$P2)))),INDEX($Q$1:$R$1,MATCH(1,$Q2:$R2,0)),""))
    4. The totals are displayed in M2:N3 using: =SUMPRODUCT(($S$1:$T$1=$J2)*($S$2:$T$29=M$1))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: need to compute networkdays but include individual's vacations, as well as federal hol

    thanks JeteMc, DLL's are indeed long legs to fill, i was just trying to encourage a solid try :-)

    thank you for offering a solution.

    i had also asked the question here https://tinyurl.com/4kfvyaf6

    awoohaw provided a beautiful solution that we can all be proud of.

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: need to compute networkdays but include individual's vacations, as well as federal hol

    Hello,

    Glad you have the solution. But just want to see if the solution provided works on all situations.

    Eg: What if the vacation start: 6/15/23 end: 6/27/23 AND start: 6/1/23 end: 6/15/23, what are your expected results, (1,9 and 8,9) respectively instead of (1,12 and 8,19)? Then try this formula.

    M2:

    =MIN(D$2,MAX(0,NETWORKDAYS(B$2,K2-1,H$2:H$16))+MAX(0,NETWORKDAYS(L2+1,C$2,H$2:H$16)))

    N2:

    =MIN(D$3,MAX(0,NETWORKDAYS(B$3,K2-1,H$2:H$16))+MAX(0,NETWORKDAYS(L2+1,C$3,H$2:H$16)))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  7. #7
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: need to compute networkdays but include individual's vacations, as well as federal hol

    hi haseeb, thank you so very much for catching that important gap!! indeed, i would like to see {1,9; 8,9} so i am very grateful that you took the time to help.

+ 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. Federal Holiday Dates
    By OAM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2020, 02:27 PM
  2. [SOLVED] Networkdays counting weekend/holiday
    By viperexp87 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-11-2020, 06:56 PM
  3. NETWORKDAYS Excluding Partial Holiday
    By Becks7x in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2019, 12:01 PM
  4. [SOLVED] Use NETWORKDAYS auto deduct holiday
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-17-2014, 05:47 PM
  5. Networkdays with holiday - start date falls on a holiday
    By skexcelforum in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-09-2014, 01:47 AM
  6. NETWORKDAYS IF date falls on a holiday, otherwise...
    By Thunderer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2014, 02:47 PM
  7. Using NETWORKDAYS to find holiday date clashes
    By Zyphon in forum Excel General
    Replies: 6
    Last Post: 02-01-2008, 04:31 PM

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