+ Reply to Thread
Results 1 to 4 of 4

largest gap between two days of the week

  1. #1
    Registered User
    Join Date
    04-14-2010
    Location
    NZ
    MS-Off Ver
    2007,2010
    Posts
    86

    largest gap between two days of the week

    Hi,

    In the attached workbook i have a list of routes, and the days of the week that we deliver to customers on.
    In column L i have listed the largest gap between any two delivery days for each route.

    What I'd like is aformula that can accomplish this, so i don't have to do so manually everytime the days change.
    I figured it'd be easiest to use the weekday function, but i've been unable to figure out a way to calculate the max difference between two days so far.

    For example, for route 1210, assuming we receive an order on Friday, it will be delivered the following Tuesday - so 4 days (sat, sun, mon, tues)

    The definitions in the data are as follows:
    0 = non-delivery day
    1 = delivery day

    W001 = weekly delivery
    W002(E/O) = Fortnightly delivery - the E & O relate to even or odd numbered weeks which can be ignored for the purposes of this thread.
    M001 = Monthly delivery.
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: largest gap between two days of the week

    This works at my end
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  3. #3
    Registered User
    Join Date
    04-14-2010
    Location
    NZ
    MS-Off Ver
    2007,2010
    Posts
    86

    Re: largest gap between two days of the week

    Brilliant, thanks Dave

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: largest gap between two days of the week

    You're welcome. Thanks for the feedback, added rep and marking your thread Solved.

+ 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] Need to count how many days in week period, if period starts mid week?
    By mrsdeapsleap in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2016, 03:29 AM
  2. Replies: 4
    Last Post: 11-14-2015, 12:13 PM
  3. [SOLVED] Identify Largest # of Days by Customer
    By clockspring in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2014, 08:51 AM
  4. calculate business days(where there is 6 days a week)
    By arnab0711 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-09-2011, 10:09 AM
  5. Find Largest Amount from day of week lookup
    By pjw23 in forum Excel General
    Replies: 3
    Last Post: 10-01-2010, 10:26 PM
  6. Todays date + 28 days + 2 week days
    By tubbsy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2008, 12:39 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