+ Reply to Thread
Results 1 to 7 of 7

Calculating labour costs

  1. #1
    Registered User
    Join Date
    11-12-2015
    Location
    UK
    MS-Off Ver
    Standard 2010
    Posts
    9

    Calculating labour costs

    Hi all

    I'm working on a spreadsheet that will calculate my labour cost.
    Everything worked fine until I have tried to apply Bank holidays pay.
    The formula that calculates Basic Hours for person is:
    Please Login or Register  to view this content.
    where first "if" is checking if H2 (Monday) is ticked as a BH
    Please Login or Register  to view this content.
    if is then check what shift pattern apply and if total hours (T4) minus BH hours (H4) are less than contracted hours.
    Please Login or Register  to view this content.
    if that is the case then total hours (T4) minus BH hours(H4) are you result
    if that is not the case then overtime apply and you basic hours are your contracted hours and overtimes are calculated in separate cell.

    And that formula works perfectly if there is one BH per week and it is on Monday.
    I have no idea how perform those checks for BH to be a random day of the week or there are two in one the week.

    Probably there is a easier way to do it that slip my perception, any thoughts?
    Last edited by ceght; 11-12-2015 at 11:06 AM.

  2. #2
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Calculating labour costs

    Can you upload a sample showing what you have?

    Windy

  3. #3
    Registered User
    Join Date
    11-12-2015
    Location
    UK
    MS-Off Ver
    Standard 2010
    Posts
    9

    Re: Calculating labour costs

    Hi

    This is what I have so far

    labour_project.xlsx

  4. #4
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Calculating labour costs

    Sorry its been a while.


    I guess that T4 just totals the whole week regardless of Sunday/Bank Holiday.

    Is the BH paid as overtime?

    Why is W4 adding the Sunday twice?

    Windy

  5. #5
    Registered User
    Join Date
    11-12-2015
    Location
    UK
    MS-Off Ver
    Standard 2010
    Posts
    9

    Re: Calculating labour costs

    Hi Windy.

    * T4 is a total amount of hours,
    * U4 i have to determine what is a number of basic hours depends on the contract (39 or 31.2 hours per week) if total number of hours is less than contracted then T4 is your number if is more than contracted than contracted are your basic hours.
    * V1 will be simple subtraction basic from total if basic are equal to contracted - I did not write that part yet
    * W4 is a BH or Sunday payment (BH is paid as Sunday), so any day that is marked as BH have to be added to Sunday hour AND deducted from basic hours.

    For example you have worked 8 hours on Sunday and 8 hours on BH Monday, then 8 hours on Tuesday/Wednesday and Thursday so total should be 5*8=40, Basic should be 40-16=24, overtime = 0 because contracted hours 31.2 > basic and Sunday/BH = 18.

    W4 you are right, it should be =IF(ISTEXT(H2)=TRUE,F4+H4,F4) but that work for BH on Monday, I can't get my head around the condition to check every other day.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,888

    Re: Calculating labour costs

    Looking at your example you could use similar formula to these:

    Total hours

    =SUMPRODUCT(($F4:$S4)*($F3:$S3<>"RTL"))

    (not sure what RTL is so I ignored it in the formula)

    Sunday/BH

    =SUMPRODUCT(($F4:$S4),(($F3:$S3="Sunday")+($F2:$S2="y")))

    I changed the "wingdings" to a simply "y2 (Calibri)

    This calculates hours for SUNDAY + any day designated as BH (with the "y")

    I would also advise removing merged cells as they can cause problems when using formulae.
    Last edited by JohnTopley; 12-16-2015 at 02:44 PM.

  7. #7
    Registered User
    Join Date
    11-12-2015
    Location
    UK
    MS-Off Ver
    Standard 2010
    Posts
    9

    Re: Calculating labour costs

    so obvious now, cheers master

+ 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. Calculating shipping costs
    By LPJR in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 10-11-2016, 11:06 AM
  2. Replies: 3
    Last Post: 07-28-2014, 08:57 PM
  3. [SOLVED] Calculating costs for multiple packages
    By david19 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-06-2014, 07:16 AM
  4. Help on calculating a formula for shipping costs
    By BOTS123 in forum Excel General
    Replies: 2
    Last Post: 11-01-2010, 10:07 AM
  5. Calculating Costs over varying shifts
    By AussieFreelance in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2007, 08:39 AM
  6. Problem calculating weekly costs
    By Handyy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2006, 04:25 PM
  7. [SOLVED] Simple Calculating Costs
    By Tanker350 in forum Excel General
    Replies: 1
    Last Post: 10-18-2005, 11:05 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