+ Reply to Thread
Results 1 to 7 of 7

Late/OnTime Deliveries - Formula Required

  1. #1
    Forum Contributor
    Join Date
    05-27-2020
    Location
    Bradford
    MS-Off Ver
    office 2016
    Posts
    202

    Smile Late/OnTime Deliveries - Formula Required

    Good Morning, does anybody know a formula that they can provide myself with to do the following.

    I want to show on time, late, early deliveries and for explanation to appear in column g of the spreadsheet.

    I have attached a spreadsheet as a clear idea what I am looking for. I know it will prob be an if statement, but this is one function I have not got my head around yet!! I bet when i see the formula i will understand ifs a lot more.

    Please please help I need this to help at work other my boss will kill me
    Attached Files Attached Files

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Late/OnTime Deliveries - Formula Required

    OK. This was a little tricker because some cells (A3, C3, E3) contained a date AND a time (A3 = 25/11/2021 15:00) so I had to use INT and MOD to factor those out. Formula for G2 is then:

    Please Login or Register  to view this content.
    You can copy that down.

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    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,732

    Re: Late/OnTime Deliveries - Formula Required

    Is this a sample data and will the cells sometimes have time and date in - as some did in your sample as posted above, so you can use that formula

    Also are there any other conditions or just Early , Ontime, Late
    Not interested if very very late ?

    I have corrected and assumed they will be JUST a date and JUST a time

    Also showed each calculation so you can see how made up
    =IF(AND(E2+F2<=C2+D2,E2+F2>=A2+B2),"ON TIME", IF(E2+F2<A2+B2,"Early", IF(E2+F2>C2+D2,"late","Error")))

    Nested IF
    if you need explanation on IF or nested IF - post back and we can try and explain further

    see columns I , J , K & l
    Attached Files Attached Files
    Last edited by etaf; 11-25-2021 at 07:02 AM.
    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.

  4. #4
    Forum Contributor
    Join Date
    05-27-2020
    Location
    Bradford
    MS-Off Ver
    office 2016
    Posts
    202

    Re: Late/OnTime Deliveries - Formula Required

    Hello WBD, thank you ever so much for solving that puzzle for me. I wanted to see how a forumla would be written if the date and time was situated in the same column. I have now used that in my code and it works fine I am still learning from what you have done.

  5. #5
    Forum Contributor
    Join Date
    05-27-2020
    Location
    Bradford
    MS-Off Ver
    office 2016
    Posts
    202

    Re: Late/OnTime Deliveries - Formula Required

    ETAF - thank you for sending over an example of how the formula is broken down, I will look at this as soon as I can, and if I need any more help I will let you know. This is why I love the forum. There are kind people like yourself and WBD that help solve excel to make lives simpler.

  6. #6
    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,732

    Re: Late/OnTime Deliveries - Formula Required

    you are welcome

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Late/OnTime Deliveries - Formula Required

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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 Macro that totals OnTime, Late, Early, Missing_Data at each tpName
    By vbronton in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2018, 10:15 AM
  2. formula to know count the vendor wise ontime & late
    By vinayvanam in forum Excel General
    Replies: 7
    Last Post: 12-26-2017, 02:10 AM
  3. Replies: 2
    Last Post: 08-18-2017, 07:42 AM
  4. Replies: 5
    Last Post: 07-06-2017, 12:00 PM
  5. early/late deliveries
    By JeninQC in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-03-2017, 10:33 AM
  6. Replies: 1
    Last Post: 09-27-2013, 09:28 AM
  7. Replies: 5
    Last Post: 07-20-2012, 12: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