+ Reply to Thread
Results 1 to 5 of 5

Network days between dates, less a half day marker

  1. #1
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    497

    Network days between dates, less a half day marker

    Need to work out the working days (Mon-Fri), excluding bank holidays, between the start and end dates in columns A + B, by month in columns E-P.

    This all works fine with the current formula.

    Change required:

    -Need to deduct 0.5 where there is an x in either the afternoon or morning columns (Denoting half a day, instead of a full day). This can be applied to the first month where the days are split between more than 1 month. E.g. row 5 would be 0.5 days in Mar and 1 day in Apr, instead of 1 day in Mar and 1 day in Apr.

    Can do it with a few ifs but thought there maybe a nice short and fancy way
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    146

    Re: Network days between dates, less a half day marker

    Hi,

    Don't know if it's fancy enough but just add
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to your formula and it will do the trick.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    497

    Re: Network days between dates, less a half day marker

    shorter than my try. What about when the table grows over the years. Need a year check in the same vain as your month check.

    Also there could be an x in both the morning and afternoon where both sides of the leave are half days
    Last edited by benoj2005; 07-29-2016 at 10:48 AM.

  4. #4
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    146

    Re: Network days between dates, less a half day marker

    Quote Originally Posted by benoj2005 View Post
    Also there could be an x in both the morning and afternoon
    In my addition it will denote a 0,5 day for the morning AND a half day for the afternoon so 2 times 0,5 but your original OP was denotation can be applied to the first month.

    So it does but ....
    if you filled in an X in both afternoon and morning and apply it to the first month if would be more feasible to register a day leave shorter without any X which will result in the same calculation.

    or ....

    The yearcheck wasn't in your OP but ok try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    497

    Re: Network days between dates, less a half day marker

    Quote Originally Posted by joris moerings View Post
    In my addition it will denote a 0,5 day for the morning AND a half day for the afternoon so 2 times 0,5 but your original OP was denotation can be applied to the first month.

    So it does but ....
    if you filled in an X in both afternoon and morning and apply it to the first month if would be more feasible to register a day leave shorter without any X which will result in the same calculation.

    or ....

    The yearcheck wasn't in your OP but ok try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks for the help, that looks to be working well and avoids an if with the network days formula duplicated

+ 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] Count 6 working days (excluding Sunday, Holidays & half days)
    By eve_star1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2015, 08:00 AM
  2. counting half days
    By chanman008 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-11-2014, 03:23 PM
  3. Replies: 8
    Last Post: 02-08-2013, 04:29 AM
  4. [SOLVED] Subtracting Hold Days from Network Days Formula
    By david1987 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2012, 08:30 AM
  5. Replies: 5
    Last Post: 12-15-2011, 11:16 AM
  6. Replies: 5
    Last Post: 04-25-2008, 03:35 PM
  7. Excel Sick Days / Half Days
    By Pixie_1 in forum Excel General
    Replies: 6
    Last Post: 02-28-2007, 08:28 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