+ Reply to Thread
Results 1 to 8 of 8

Staff hours calculator minus relevant breaks

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    London
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Staff hours calculator minus relevant breaks

    Hi everyone,

    I am trying to make a staff wage calculator in excel but need to come up with a formula to minus the breaks. I am not an excel pro lol and i'm not sure if what i'm asking for is possible? Here goes...

    I would like to calculate staff hours worked minus breaks, the breaks are:
    over 5 hours a 15 minute break
    over 6 hours a 30 minute break
    over 7 hours a 1 hour break
    over 8 hours a 1 hour 30 minutes break.

    So if someone worked 12:00(A1) to 19:00(B1) then (C1) would show 06:00 (after minusing the 1 hour break)

    All staff are on different shifts so would need to be in one formula.

    Any help please?

    Many thanks in advance

    Asif

  2. #2
    Registered User
    Join Date
    01-28-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 2010
    Posts
    50

    Re: Staff hours calculator minus relevant breaks

    As long as your shifts don't cross over midnight then this would do it.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please consider the * button if my post helped you

  3. #3
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Staff hours calculator minus relevant breaks

    Please Login or Register  to view this content.
    Try this as well :D
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  4. #4
    Registered User
    Join Date
    01-28-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 2010
    Posts
    50

    Re: Staff hours calculator minus relevant breaks

    Quote Originally Posted by wenqq3 View Post
    Please Login or Register  to view this content.
    Try this as well :D
    Nice! I like that solution, never thought of dealing with nested ifs in that way.

  5. #5
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Staff hours calculator minus relevant breaks

    Welcome. Thanks for feedback.
    Please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

  6. #6
    Registered User
    Join Date
    01-28-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 2010
    Posts
    50

    Re: Staff hours calculator minus relevant breaks

    It's not my thread, I just very much liked your formula and thought it a much better solution than the one I proposed.

  7. #7
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Staff hours calculator minus relevant breaks

    Oh ya, i did not noticed that. So sorry about this!

  8. #8
    Registered User
    Join Date
    09-03-2013
    Location
    London
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Staff hours calculator minus relevant breaks

    sorry, i thought no one had replied to my thread as i did not receive any email? only logged onto the forum today to see replies!

    Thank you very much for the solutions but i also have another query if anybody could help please.


    I am trying to make a staff wage calculator in excel but need to come up with a formula to minus the breaks


    If worked over 4 hours and 30 minutes then a 30 minute break is removed from the total shift.


    So if someone worked 12:00(A1) to 19:00(B1) then (C1) would show 06:30 (after minusing the 30 minute break)

    All staff are on different shifts so would need to be in one formula.


    Asif

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Staff hours calculator minus relevant breaks

    May be:
    =B1-A1-((B1-A1>(4.5/1440))/48)
    Quang PT

+ 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. Workinghours minus 3 breaks
    By IKZOUHETNIETWETEN in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 02-24-2013, 07:21 AM
  2. Replies: 4
    Last Post: 02-12-2013, 07:01 AM
  3. Replies: 2
    Last Post: 02-11-2013, 02:26 PM
  4. [SOLVED] Formula to work out hours between 2 dates and times.. MINUS Out Of Hours
    By chris.m in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-30-2012, 08:11 AM
  5. Programming a Plus or Minus GPA calculator
    By Lino123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-23-2011, 05:11 PM

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