Results 1 to 6 of 6

Thread: excel help

  1. #1
    Join Date
    Feb 2005
    Location
    Bracken Ridge - Brisbane - QLD
    Posts
    14,276
    Total Downloaded
    0

    excel help

    thought i could throw a few formulas into our corporate timesheet that would sort normal hours from the two overtime brackets to make it easier for the boys

    the guys enter there start and finish times along with a 0:30min (.5hr) unpaid meal break

    start 06:00
    Meal 00:30 (unpaid)
    finish 14:30
    Total hrs worked 8hr
    Standard work day 8hr
    O/T< 3hr = 0
    O/T > 3hr = 0


    Above is there standard 8hr day

    Start 05:30
    meal 00:30 minus
    Finish 15:30
    Total Hrs worked 12hrs
    Standard work day 8hr
    O/T < 3hr = 3:00
    O/T > 3hr = 1:00

    so for a 12 hour day how do i get the O/T <3hr and O/T > 3hrs to automatically drop in, keep in mind the < 3hr cannot display no more than 3hr

    as this is a corporate form i cannot change the layout, infact they are not keen on adding formulas however as we need to print them off they will never know

    the other wierd thing is we start in 24hr format and finish off in decimal i.e i cannot work out how to add the overtime up if its kept on hrs

    grrr

    does that make sense?

    edit, seems i cannot upload a xlsm file?

  2. #2
    Join Date
    Feb 2005
    Location
    Bracken Ridge - Brisbane - QLD
    Posts
    14,276
    Total Downloaded
    0
    i have no idea what an xlms file is but will give this a go
    Attached Files Attached Files

  3. #3
    Join Date
    Jun 2010
    Location
    Eleebana 2282
    Posts
    312
    Total Downloaded
    0
    Take the total hours then subtract the meal break ie 11.5 hrs and the subtract normal hours, this leaves the amount of OT. Then use an if staement to work out if its more or less than 3 hrs.

    In <3hrs OT cell:
    =if(Total_hours-0.5-Normal_hours>3,3,Total_hours-0.5-Normal_hours)

    In >3hrs OT cell:
    =if(Total_hours-0.5-Normal_hours-3<0,0,Total_hours-0.5-Normal_hours-3)

    Substitute the names for the cell addresses or values.

    James

  4. #4
    Join Date
    Jan 1970
    Location
    Melbourne, Australia
    Posts
    738
    Total Downloaded
    0
    Kelvin,

    Perhaps you could use an "if" statement?

    ie. =if(H3<"3","",H3) (no reference to your spreadsheet)

    Cheers,

    Franz

  5. #5
    Join Date
    May 2011
    Location
    Brisbane, Australia
    Posts
    7
    Total Downloaded
    0
    Time sheet with formulas.xlsx

    Try this. One trick is to know that times are actually numbers less than 1 as fractions of a day so multiply by 24 to get hours. Other than that it is just mixing up if() functions.
    Attached Files Attached Files

  6. #6
    Join Date
    Jan 1970
    Location
    Melbourne, Australia
    Posts
    738
    Total Downloaded
    0
    Quote Originally Posted by ian_gregg View Post
    Time sheet with formulas.xlsx

    Try this. One trick is to know that times are actually numbers less than 1 as fractions of a day so multiply by 24 to get hours. Other than that it is just mixing up if() functions.
    Ian,

    Thanks for this - I was struggling with the time format myself, the *24 has solved that one for me.

    Cheers,

    Franz

Bookmarks

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 AULRO.com ONLY!
Search All the Web!