+ Reply to Thread
Results 1 to 6 of 6

Converting time into tenths of an hour (with a twist).

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Tennessee
    MS-Off Ver
    Excel 2010
    Posts
    2

    Converting time into tenths of an hour (with a twist).

    I want to preface this by saying that I am a bit of an amateur at Excel. What I am trying to do is track billable hours into tenths of an hour. I want to be able to subtract an ending time from a starting time and get the difference in tenths of an hour. Below is a picture of how this should look after using the formula {{=ROUNDUP((G2-F2)*24,1)}} where G2 is Time Stop and F2 is Time Start.

    picture-2-full.JPG

    Now here is the tricky part... I practice law in Tennessee and the administration of the courts in TN has broken down tenths of an hour not into every 6 minutes but instead into their own idea of tenths of an hour. See how they break it down in this chart below:

    TN Hours.jpg

    So, the problem becomes that if I were to put 8:00 as my starting time and 8:07 as my ending time then the formula I have will give me two tenths of an hour (.2). However, for Tennessee the roundup to the next tenth of an hour should not occur until 8:09, so I should actually be only getting one tenth of an hour (.1) when I work 7 minutes or 8 minutes, and of course that applies to every time I work 13-14, 19-20, etc. Basically they have extended their range an extra two minutes each tenth of an hour and I need to compensate for that.

    How can I correct this formula to compensate for Tennessee's irregular fluctuation of tenths of an hour? IF statements with ranges or is there some easier way? Any help would be greatly appreciated and I hope I have explained this well enough. Thank you.

  2. #2
    Registered User
    Join Date
    02-11-2013
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Converting time into tenths of an hour (with a twist).

    Just change it to Round instead of Roundup and trick the formula a little bit to =ROUND((G2-F2)*24,1) that should do the trick.

    Hope I help

  3. #3
    Registered User
    Join Date
    02-11-2013
    Location
    Tennessee
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Converting time into tenths of an hour (with a twist).

    Quote Originally Posted by jroques View Post
    Just change it to Round instead of Roundup and trick the formula a little bit to =ROUND((G2-F2)*24,1) that should do the trick.

    Hope I help
    Jroques, thanks for the quick reply. I think that works for every amount of time except for 1-2 minutes. Technically for 1-2 minutes it should round up and give me 1 tenth of an hour, but with just Round it will round that down to 0.0. However, I doubt there will be many times when I rack up just 1 or 2 minutes. So, I don't think it is worth stressing over just those unlikely scenarios, especially when I can just spot those and fix them myself. Thank you again for your quick reply and for the help you have given me. It is greatly appreciated.

  4. #4
    Registered User
    Join Date
    01-30-2013
    Location
    Hobart, TAS
    MS-Off Ver
    Office 2003, XL2007
    Posts
    46

    Re: Converting time into tenths of an hour (with a twist).

    Try this fix for the 2 minute scenario

    =IF(G2-F2<=TIME(0,2,0),0.1,ROUND((G2-F2)*24,1))

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Converting time into tenths of an hour (with a twist).

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Converting time into tenths of an hour (with a twist).

    Try adding 1 minute before you round - that should work for all scenarios

    =ROUND((G2-F2+"0:01")*24,1)
    Audere est facere

+ 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