+ Reply to Thread
Results 1 to 7 of 7

Excel Work Hours and Time Calculation Help

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Lightbulb Excel Work Hours and Time Calculation Help

    I am trying to create a formula that will help me figure out how many hours I am working a day. Easy enough.

    However, if I work more than 7.5 hours I get one hour break that is unpaid and if I work less, I get .5 break unpaid.

    I tried to create a formula in excel using the IF function without avail. For example: =IF(D2>=7.5,D2-1,(IF(D2<=7,D2-0.5,D2*1))).

    The problem is when I subtract one time from another it is in a format which includes the : symbol which I cannot include in my excel formula. I currently have column E in General format, but when I convert it to time it shows the formula as #####.

    Is there any way to get rid of the time difference in the HH:mm (Hours:minutes) format and have it something like H.m?

    I have posted a link of the image here: http://screencast.com/t/WkFhVmNjaELR

    Any thoughts? Thank you mathies.

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

    Re: Excel Work Hours and Time Calculation Help

    Hi watchoverme,

    In your formula, use the time value not time.
    if d4 is 12:30 PM, then value can be obtained as =value(d4) = 0.520833333

    See the attachment for explanation.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    01-04-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Excel Work Hours and Time Calculation Help

    Hi DILIPandey,

    I attached an excel sheet with the columns, can you please apply the format you are referring to and repost it? Im not quite sure where to apply the values because I have two time slots.
    Attached Files Attached Files

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

    Re: Excel Work Hours and Time Calculation Help

    Hi watchoverme,

    Applied the formulas in your file, see the attachment.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-04-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Excel Work Hours and Time Calculation Help

    Thank you so much for all your help. Do you know how you would go about adding the net hours together?

  6. #6
    Registered User
    Join Date
    01-04-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Excel Work Hours and Time Calculation Help

    Nevermind I was able to add the hours in the cell by using the custom format [h]:mm. Do you know how to multiply the custom format by a number so I can calculate my pay?

    Right now its 888:00

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

    Re: Excel Work Hours and Time Calculation Help

    You are welcome.

    Net hrs can be addes simply using the sum function or + operator, but a I am sure you might be loooking forward for.some other format. Share that

    Regards,
    DILIPandey

    <click on below star if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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