+ Reply to Thread
Results 1 to 6 of 6

Formula to calculate penalties for a race

  1. #1
    Registered User
    Join Date
    04-14-2016
    Location
    Uganda
    MS-Off Ver
    2003/2007/2010
    Posts
    4

    Formula to calculate penalties for a race

    Hi

    I need a single combined formula (hh:mm:ss) to calculate penalties for a race whose conditions are :

    For EARLY arrival, the penalty is 1 minute per minute early

    For LATE arrival, the penalty is 10 seconds per minute late

    For arrival ON TIME, the penalty is NIL

    For LATE arrival in excess of 30 minutes, the penalty is OTL


    An example is below :

    time out = 10:00
    time allowed = 30 minutes
    time to be IN = 10:30
    time IN = 10:29
    penalty = 0:01:00 being 1 minute early

    time out = 10:00
    time allowed = 30 minutes
    time to be IN = 10:30
    time IN = 10:31
    penalty = 0:00:10 being 1 minute late

    time out = 10:00
    time allowed = 30 minutes
    time to be IN = 10:30
    time IN = 10:30
    penalty = 0:00:00 on time

    time out = 10:00
    time allowed = 30 minutes
    time to be IN = 10:30
    time IN = 11:01
    penalty = OTL being exceeding lateness of 30 minutes

    your assistance will be appreciated

    thanks

    Cyran

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Formula to calculate penalties for a race

    Time to be in = =B1+TIME(0,B2,0)
    penalty = =IF(B4<B3,MINUTE(B3-B4),IF(B4-B3>TIME(0,30,0),"OTL",B4-B3))

    A
    B
    1
    time out
    10:00
    2
    time allowed
    30
    3
    time to be IN
    10:30
    4
    time IN
    10:29
    5
    penalty
    1
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-14-2016
    Location
    Uganda
    MS-Off Ver
    2003/2007/2010
    Posts
    4

    Re: Formula to calculate penalties for a race

    thanks for the reply but the lateness penalty of less than 30 minutes doesnt work

    For example :

    time out 10:00
    time allowed 0:30
    time to be IN 10:30
    time IN 10:31
    penalty should be 0:00:10

    hope to hear soon

    thanks

    cyran

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Formula to calculate penalties for a race

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The cells will need to be formatted as mm:ss.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  5. #5
    Registered User
    Join Date
    04-14-2016
    Location
    Uganda
    MS-Off Ver
    2003/2007/2010
    Posts
    4

    Re: Formula to calculate penalties for a race

    thank you very much gak67. works perfectly now. much appreciated

    god bless you

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

    Re: Formula to calculate penalties for a race

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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. Replies: 15
    Last Post: 08-09-2015, 09:20 PM
  2. [SOLVED] Need formula to calculate meal penalties
    By Calc7827 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-18-2015, 10:40 AM
  3. Replies: 1
    Last Post: 12-18-2014, 09:43 PM
  4. Replies: 6
    Last Post: 07-19-2012, 06:28 AM
  5. Replies: 4
    Last Post: 08-17-2010, 02:36 AM
  6. need help with formula for a 5K race
    By jenjen1972 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-08-2010, 12:47 PM
  7. Automatically Calculate Race Places
    By emmsee_two in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-23-2007, 12:42 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