Results 1 to 7 of 7

Help with calculating Early/On Time/Late from Set Time Windows

Threaded View

  1. #1
    Registered User
    Join Date
    07-20-2012
    Location
    Devon
    MS-Off Ver
    Excel 2003
    Posts
    2

    Help with calculating Early/On Time/Late from Set Time Windows

    Hi there. I am new to the forum and am looking for some help. Normally I can solve most things in Excel but this has me stumped.

    I am in need of creating a spreadsheet that will report whether an imported delivery time is either Early/Late or On Time based on a fixed Time Window. I have the following result so far:

    Earliest Latest Actual Delivery Status
    20:00 22:00 23:00 Late Calculation works
    23:30 1:00 23:45 Late Doesn't Work - Should be On Time
    0:15 1:45 0:10 Early Calculation works
    4:00 7:00 5:00 On Time Calculation works

    The calculation I have come up with so far is:

    =IF(K7>(greater than)L$1,IF(AND(I7<(less than)K7,J7<(less than) K7),"Late",IF(AND(I7>(greater than)K7,J7>(greater thna)K7),"Early",IF(AND(I7<(less than)M1,M1>(greather than)K7),"On Time","On Time"))))


    In the calculation, L$1 is defined as 00:00:00 and M1 is 23:59:00. K7 is Actual Delivery Time, I7 is Earliest Delivery Time and J7 is Latest Delivery Time.

    The problem comes when the Earliest and Latest Delivery time essentially go through midnight.

    I have tried many different ways to get the calculation to work but with no joy.

    I am using Excel 2003 on Windows XP.

    Any help with resolving the problem would be gratefully appreciated.

    Thanks.
    Attached Files Attached Files
    Last edited by warbopaul; 07-20-2012 at 04:10 PM. Reason: Have added an example if it helps

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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