+ Reply to Thread
Results 1 to 1 of 1

Excel function to perform compliance check on Seafarers Hours Record

  1. #1
    Registered User
    Join Date
    06-15-2018
    Location
    Western Isles, Scotland
    MS-Off Ver
    2010
    Posts
    1

    Excel function to perform compliance check on Seafarers Hours Record

    I am trying to create an excel tool that helps me check if a Seafarers Hours Of Rest record complies with the minimum requirements of the Law.

    By law all seafarers are required to keep a record of their HOR in a monthly sheet similar to the test one I have attached (Usually done manual with a blank sheet and pen)

    The minimum criteria that must be met to comply is:


    There must be at least 10h of rest in ANY 24h period,
    There must be at least 77h of rest in ANY 7 day period,
    The 10h rest may be split into no more than 2 periods of rest, one of which must be at least 6h long, (To help with this i should explain that there can be more than just 2 rest periods, as long as the "10h's" is not divided into more than 2)
    No more than 14h between consecutive rest periods.

    From the test sheet I have attached you will see that it is simple to "Check" and highlight (Using conditional formatting) >10h rest on specific days and similarly for >77h over 7 days. The next hurdle for me is performing a check on this data to see that out of the rest period(s) for that day, there is at least 2 that make up 10h, were one of which is at least 6h (or: 7h+3h, 8h+2h, etc). My initial thoughts on this is that writing a function in VB that performs the check on a given range of 48 cells (48 half hour periods) and returns a true or false for compliance? This function could then be called upon in a formula that runs through each 24h period on the sheet. My knowledge of VB is basic at best though..

    The next hurdle after that is applying this check to ANY 24h period (this is when my head gets rather sore....). For example: from 2330 today to 2330 tomorrow, 2300 to 2300, etc, etc.


    Any thoughts/help with this would be much appreciated.

    Sam
    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] Double check for compliance
    By Remphan in forum Excel General
    Replies: 1
    Last Post: 01-07-2016, 06:21 PM
  2. Seafarers hours of rest - 24-hours roll period
    By mmatic123 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-17-2015, 04:53 PM
  3. Replies: 4
    Last Post: 04-24-2014, 11:56 AM
  4. Excel to save every 3 to 4 hours and at a specific time everyday perform a task
    By vonallmen9988 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-06-2013, 03:45 PM
  5. Can I record a macro and perform it for every sheet at once.
    By MSTARS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2009, 07:21 PM
  6. [SOLVED] How to perform the following function in Excel?
    By Eric in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2006, 10:25 AM
  7. [SOLVED] How do I perform a MOD-10 credit card check in Excel?
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2005, 10:06 AM

Tags for this Thread

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