+ Reply to Thread
Results 1 to 11 of 11

Formulas for Federal Hours of Service From

  1. #1
    Registered User
    Join Date
    09-28-2012
    Location
    NW Indiana
    MS-Off Ver
    Excel 2010
    Posts
    14

    Formulas for Federal Hours of Service From

    I am trying to create an excel spreadsheet that will help the people I work with tally up their time on duty automatically on the sheet. I am having some difficulty and would greatly appreciate any help.
    The formula I am currently trying is this =IF(E20<=999,AK20-V20+BD19,IF(E20>=1000,AK20-V20)))
    Excel accepts the formula however it will not perform the second IF when E20 is more than or equal to 1000.
    The cells are all set up to use h:mm and the 999 and 1000 are representative of 10 hours and 9hours 59 minutes.
    What am I doing wrong?
    I have attached a copy of the form I am working on. If anyone can help, what I am trying to do is calculate total time on duty based on time entered by the employee. Each line needs to be calculated based on Prior Time Off column. If the Prior Time Off was less than 10 hours, then the Total Time On duty continues to accumulate as in this example. When the Prior Time Off reaches 10 or more hours, then the Total Time On Duty needs to start over from that line. Sorry this is so long winded. PLEASE HELP ME. IF formulas I have tried have been close to what I want but not correct.

    HOS1.gif
    Attached Images Attached Images
    Last edited by n2music; 10-01-2012 at 03:22 PM. Reason: ADD PICTURE OF FORM

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formulas for Federal Hours of Service From

    Hi n2music

    Welcome to the forum.

    I am not clear on time representation part.. but try using your formula as :-


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


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    09-28-2012
    Location
    NW Indiana
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Formulas for Federal Hours of Service From

    Thanks dilipandey,

    I tried this and changed the times so that E20 was more than 10hours and less than 10hours but the second formula (AK20-V20) will not run. Am I using the 999 correctly? Maybe it should be entered in in a different format like E20<=9:59?

  4. #4
    Registered User
    Join Date
    09-28-2012
    Location
    NW Indiana
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Formulas for Federal Hours of Service From

    Changed post to add more info and added the form I am working with. Thanks in advance for anyone who can help me figure this out.

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formulas for Federal Hours of Service From

    Hi n2music,

    Suggest you to upload a sample workbook and indicate your desired results.. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  6. #6
    Registered User
    Join Date
    09-28-2012
    Location
    NW Indiana
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Formulas for Federal Hours of Service From

    I added the worksheet as an attachment. Thanks

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formulas for Federal Hours of Service From

    Hi n2music,


    I am not able to find any workbook.. pls check. thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  8. #8
    Registered User
    Join Date
    09-28-2012
    Location
    NW Indiana
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Formulas for Federal Hours of Service From

    I have the answer to my question finally. If A1 is start HOS time and A2 is end HOS time and A5 is the begin rest time, A3 is total time on duty and A4 is prior time off, it looks like this:

    =IF(A4<TIME(10,0,0),A2-A1+A3,A2-A1)

    The other formula goes like this:

    =IF(A5>A1,A1+(A5>A1)-A5,(A1-A5))


    Sorry dilipandey, I do not know how to upload a workbook. I still need to find some formulas to complete this if you can tell me how to do it.

    Thanks

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formulas for Federal Hours of Service From

    Hi n2music,

    To upload the workbook, click on "Go Advanced" while replying and look for paper clip icon to upload. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  10. #10
    Registered User
    Join Date
    04-18-2014
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Formulas for Federal Hours of Service From

    I am trying the same thing if you get it working Id like to see an example I work at a small rr and we end up with multiple lines on our hos sheets nightly I have a working model for a one liner but eh

  11. #11
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formulas for Federal Hours of Service From

    Hi kb9vgr,

    I guess you should start a new thread and post your sample workbook there along with the expected results - manually entered because this thread is too old. Thanks.


    Regards,
    DILIPandey

  12. #12
    Registered User
    Join Date
    04-18-2014
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Formulas for Federal Hours of Service From

    Yeah Sorry for Necroposting was just hoping to see how he did it.

+ Reply to Thread

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