+ Reply to Thread
Results 1 to 4 of 4

NETWORKDAYS - Something a little unusual!!

Hybrid View

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    NETWORKDAYS - Something a little unusual!!

    I'll try and explain in as sane a way as I can. If it sounds insane, then I must also be insane!!!

    I have attached a PDF screenshot and will note each formula below.

    Here I go...

    I work in an office where procedure is that any telephone callbacks required for customers have to be done within 3 hours of the customers initial contact to us. So, when the customer phones in requesting their query to be actioned, the clock starts ticking. In an ideal world, the callback request would be directed to the correct department immediately and possibly dealt with there and then. However, ideal world this is not. So, after 4-5 departments later, it finally arrives at the correct department and, lo and behold, there is less than 3 hours to action the callback. When this event happens, we need to keep a late arrivals log, so when the proverbial does hit the fan, at least our department can say we received it late and here's the evidence. In some instances (and I refer to the middle row of the 3 examples below) there maybe a callback target time of 17:00; however, our department didn't receive the callback request until the following day at 09:00. No matter how quickly we could try to answer this particular callback, the proverbial has already hit the fan. Again, as long as my department can cover itself by providing documented proof, then the proverbial may pass us by.

    As an aside, the actual software used for this system only logs the missed calls, not the journey they took.

    So, onto my dilemma. Rows 3 and 5 are showing correctly at Column J. My problem lies with the middle row, when the date received is greater than the target date. Based on our office hours of 08:00-17:00, I would expect (and was hoping) the answer to show up as negative 1. But as plain as plain can be, negative 19 is showing up. Methinks all the non-working hours are also being included when this event occurs (date received greater than target date).



    Column G
    =9*(NETWORKDAYS(D3,G3,Holidays)-1)-24*((MOD(D3,1)-MOD(G3,1)))

    Column H
    =SUM(H3/24)

    Column I
    =IF(H3<0,"-","")&TEXT(ABS(H3)/24,"[h]:mm")


    (Formulas sourced from various forums)

    So, question is, how can only NETWORKDAYS be counted when date received is greater than target date?

    Hope I've made all that a little understandable and I thank you for taking the time to read this post. By the way, it needs to run on Excel 2002.

    Regards

    Paul S
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: NETWORKDAYS - Something a little unusual!!

    Column G has formulas that refer to Column G in it?

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,712

    Re: NETWORKDAYS - Something a little unusual!!

    Try changing the first formula to this

    =(9*(NETWORKDAYS(MIN(D3,G3),MAX(D3,G3),Holidays)-1)-24*(MOD(MIN(D3,G3),1)-MOD(MAX(D3,G3),1)))*SIGN(G3-D3)
    Audere est facere

  4. #4
    Registered User
    Join Date
    02-10-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: NETWORKDAYS - Something a little unusual!!

    daffodil
    Well spotted. In my haste (doctor's appointment), I deleted Column A for the PDF but forgot to correct the columns in the text.

    daddylonglegs
    Just amended the columns in the formula you gave to the ones I inadvertently forgot to change and it looks like it works exactly as it should do.

    Even when a clown like me provides incorrect details, there are still geniuses out there able to solve these problems.

    Can't thank you enough for this.

    Regards

    Paul S

+ 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. Unusual #Value! Problem
    By Irish634 in forum Excel General
    Replies: 2
    Last Post: 07-08-2009, 10:54 PM
  2. Unusual UDF Behaviour
    By Foboman in forum Excel General
    Replies: 3
    Last Post: 12-28-2007, 09:53 PM
  3. [SOLVED] Unusual Request...
    By LewisAire in forum Excel General
    Replies: 0
    Last Post: 07-31-2006, 08:38 AM
  4. help with unusual sorting
    By howard11 in forum Excel General
    Replies: 4
    Last Post: 08-29-2005, 11:05 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