+ Reply to Thread
Results 1 to 3 of 3

NETWORKDAYS IF date falls on a holiday, otherwise...

  1. #1
    Registered User
    Join Date
    12-13-2013
    Location
    Stephens City, VA
    MS-Off Ver
    Excel 2010
    Posts
    24

    NETWORKDAYS IF date falls on a holiday, otherwise...

    so, I've run into a bit of a pickle. The formula below works very well, except where the start date falls on a holiday. My formula excludes holidays from the equation, however there are rare cases where we are authorized to work a holiday, and if the start date is on a holiday it comes up with a negative value. What I would like is possibly an IF statement to look at the date range for my holidays (HLDY), and if the start date falls on one of these holidays, then start the clock on the next workday (after 6am(BusinessStart))....however, if the start and close date both fall on the same holiday in the range(HLDY), then just display 0, otherwise use the NETWORKDAYS forumla as I have listed below.

    If the ticket is opened on a holiday, no time is charged toward the ticket. The clock would actually start on the next workday.

    I hope that's not too confusing.

    Please Login or Register  to view this content.
    My formula determines if the ticket is Open or closed by seeing if the word "Closed" is in Column E. If Closed, then it displays "Closed" + the time the ticket was open from subtracting the start date (Column G) from the Closed date (Column H), other wise if it's not closed then just display the time the ticket has currently been opened until now ('!'!$P$75).

    Column E = "Closed" or some other text
    Column G = Ticket start date formatted as m/dd/yyyy h:mm
    Column H = Ticket close date formatted as m/dd/yyyy h:mm

    '!'!$P$75 =NOW() formatted as m/dd/yyyy h:mm AM/PM

    BussinessStart = 6:00 formatted as h:mm
    BusinessEnd = 18:00 formatted as h:mm

    HLDY = 'Main'!$R$9:$R$19

    I've tried several different things to get this thing working but I can't seem to get it right.

    Btw, if you find any errors in my formula, it's because I had to type it freehand.

    Any help is much appreciated.

    Thanks,

    Tim

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    41,444

    Re: NETWORKDAYS IF date falls on a holiday, otherwise...

    Attach the worksheet, please.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    12-13-2013
    Location
    Stephens City, VA
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: NETWORKDAYS IF date falls on a holiday, otherwise...

    Unfortunately I can't upload the sheet. It's on a separate network and I can't cross documents from one to the other

    I think a VLOOKUP might work. I'm going to play around with that idea and see what I come up with.
    Last edited by Thunderer; 03-07-2014 at 02:49 PM.

+ 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. Replies: 1
    Last Post: 10-04-2013, 10:04 AM
  2. Find if holiday falls within date range
    By icyrius in forum Excel General
    Replies: 18
    Last Post: 01-03-2013, 12:12 PM
  3. how to sum day if it falls in a weekend or holiday?
    By jgomez in forum Access Tables & Databases
    Replies: 2
    Last Post: 11-30-2011, 01:54 PM
  4. Excel 2007 : Day a holiday falls
    By mcinnes01 in forum Excel General
    Replies: 17
    Last Post: 06-11-2010, 11:10 AM
  5. Using NETWORKDAYS to find holiday date clashes
    By Zyphon in forum Excel General
    Replies: 6
    Last Post: 02-01-2008, 04:31 PM

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