+ Reply to Thread
Results 1 to 4 of 4

Determining Late collections over midnight....

Hybrid View

  1. #1
    Registered User
    Join Date
    08-29-2018
    Location
    York
    MS-Off Ver
    Office 15
    Posts
    2

    Determining Late collections over midnight....

    Hi All,

    I have reviewed multiple threads on this subjection but cannot find one that answers my question.

    I have a set collection time and need to calculate if it was collected on time, early or late problem exists wehn tring to calculate this over midnight. There are no dates in the times that are recorded.

    Criteria as follows -

    Planned collection time in F6, actual collection time in G6, any collection made 45 minutes after the planned time is late, anything between planned time +45 mins is on time anything before planned collection time is early.

    =IF(ISBLANK(G6),"",IF(G6>(F6+TIME(0,45,0)),"Late",IF(G6<F6,"Early","On Time")))

    When i have a collection time planned in the early hours of the morning i.e. 01:00hrs and my actual collection time is 22:30hrs it flags as late but is actually early.

    Can anyone solve ? Appreciate your help....

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,571

    Re: Determining Late collections over midnight....

    If Planned = 14:00 and actual =13:30, how can you tell if it is early... or horribly late?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    08-29-2018
    Location
    York
    MS-Off Ver
    Office 15
    Posts
    2

    Re: Determining Late collections over midnight....

    Understand what you are saying but adding dates into the planned collection and actual collection time is not possible.

    If a collection was to be 23:30hrs late it would be removed as this is a daily report.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,571

    Re: Determining Late collections over midnight....

    That's a good enough reply!! A bit of a slow reply from me, though...

    =IF(G6<H6,"Early",IF(MIN(MOD(G6-H6,1),MOD(H6-G6,1))<=45/1440,"On Time","Late"))
    Attached Files Attached Files

+ 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] is there any book to teach System.Collections.ArrayList, System.Collections.SortedList,
    By Flora20 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2017, 06:35 AM
  2. How Can I Work Out a time Before Midnight and After Midnight???
    By ArmandDataCube in forum Excel General
    Replies: 7
    Last Post: 08-23-2017, 06:13 PM
  3. Replies: 3
    Last Post: 08-12-2017, 01:48 AM
  4. Replies: 2
    Last Post: 02-02-2017, 05:18 AM
  5. Hi to everyone from London - getting late here burning the midnight almost!
    By Londonbound in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-01-2014, 06:24 PM
  6. Collections within class module collections
    By AndyLitch in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2013, 06:00 AM
  7. Late Binding or Late Anything
    By Piranha in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2005, 10:42 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