+ Reply to Thread
Results 1 to 5 of 5

Find number of working days between dates...

  1. #1
    Registered User
    Join Date
    09-27-2015
    Location
    London
    MS-Off Ver
    Office 13
    Posts
    20

    Find number of working days between dates...

    Hi all, wondering if you could help me automate this...

    We send out dozens of items per day. The shipping company provides tracking information for each package so we can see when the item is delivered. Depending on the service requested by the customer, a varying length of service duration can be expected. A number of days after the expected delivery date, the item is considered to be delayed and the shipping fee can be claimed back from the shipping company. Currently, this is done manually and as you can imagine, it takes some time.

    So I had the following idea....

    A1 to H1 is the header row. Customer details are in A2 and B2 and are for reference only, taking no part in the formula. The 'Ship Date' is in C2. The 'Service Used' is in D2. A VLOOKUP function is used to return the expected service duration 'Ship Time' in E2.

    Cell E2 formula =VLOOKUP(D2,$M$2:$N$4,2,FALSE)

    M2 to M4 is Next Day, Express and Standard, and N2 to N4 is 1, 3 and 4

    The 'Due Date' is in F2, 'Ship date' plus 'Ship Time', including working days only.

    Cell F2 formula currently =C2+E2

    In G2 is 'Received Date' which gives the actual date of delivery according to the tracking number. H2 is 'Delayed' an =IF function returning the number of working days delayed after the 'Due Date' has elapsed, or 'ON TIME'.

    Cell H2 formula currently =IF(G2<=F2, "ON TIME", G2-F2)

    I am having problems with the F2 and H2 formulas as the shipping company is accounting for Monday to Saturday inclusive as working days, so =NETWORKDAYS does not appear to work as it excludes Saturdays as well as Sundays.

    What are the formulas I need to use in F2 and H2? Thanks

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Find number of working days between dates...

    Networkdays.intl() has options to do a Mon-Sat workday
    However, A spreadsheet as mentioned in the yellow banner at top of thread would be useful , with some data and examples of the desired results
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Find number of working days between dates...

    Instead of that lengthy description, it would be much easier to follow what is happening (and to try out different approaches) if you attached a sample Excel workbook - the yellow banner at the top of the screen describes how to.

    Basically, you want to add on to the normal NETWORKDAYS function the number of Saturdays which occur between the start and end dates, but I think there is another function (NETWORKDAYS.INTL) in later versions of Excel which allows you to specify the working week in your area.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    09-27-2015
    Location
    London
    MS-Off Ver
    Office 13
    Posts
    20

    Re: Find number of working days between dates...

    Hi, thanks for the advice guys, unable to post spreadsheet as it is quite large and has a lot of confidential customer data inside and the worksheet metadata identifies the company, sure will work it out eventually.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Find number of working days between dates...

    you could just create a dummy sheet with non-confidential info, we don't need to see the full version
    and as mentioned networkdays.intl() may do what you need

+ 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: 7
    Last Post: 08-19-2019, 07:28 AM
  2. Calculate number of working days between 2 dates in a year
    By Quasar82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-06-2016, 09:32 AM
  3. [SOLVED] Number of working days with dates
    By grkchakri in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2016, 03:00 PM
  4. Find total working days between two dates
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 07-17-2014, 11:51 AM
  5. Count number of working days between two dates
    By dmucciolo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-03-2012, 02:22 AM
  6. Number of Working days between 2 dates
    By Madball in forum Excel General
    Replies: 12
    Last Post: 10-20-2007, 06:22 AM
  7. [SOLVED] Formula to find the working days difference between to dates?
    By Mudgeman in forum Excel General
    Replies: 2
    Last Post: 05-15-2006, 02:35 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