+ Reply to Thread
Results 1 to 11 of 11

Trying to calculate pay with variable Penalty Rates

  1. #1
    Registered User
    Join Date
    07-30-2017
    Location
    australia
    MS-Off Ver
    2013
    Posts
    5

    Trying to calculate pay with variable Penalty Rates

    Hi,
    Was working on a spreadsheet that calculates Pay at varying rates at different times of day

    Ordinary Rate - Mon to Fri 7am-7pm
    Mon to fri - 7pm to midnight
    mon to fri - Midnight to 7am
    sat -
    sun -
    Public Holiday

    S0 basically the thing i'm having a problem with is Getting the hours worked at certain times..

    for example.. Shift starts monday 6pm and finished 2am tuesday morning (3 different rates)

    What would be the formula to work out the hours worked in each pay rate..?

    also is there a way i can put a tickbox for public holiday rate .. (if clicked then pay x)

    Cheers for your help..
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Trying to calculate pay with variable Penalty Rates

    please fil in yellow cells
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-30-2017
    Location
    australia
    MS-Off Ver
    2013
    Posts
    5

    Re: Trying to calculate pay with variable Penalty Rates

    oh one sec... read your reply wrong
    Last edited by GoodShekky; 07-31-2017 at 12:20 PM.

  4. #4
    Registered User
    Join Date
    07-30-2017
    Location
    australia
    MS-Off Ver
    2013
    Posts
    5

    Re: Trying to calculate pay with variable Penalty Rates

    is this what u mean? sorry im only semi competent at using spreadsheets..

    appreciate you helping
    Attached Files Attached Files

  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Trying to calculate pay with variable Penalty Rates

    morning =SUMPRODUCT(H3:H16*24,IFERROR(LOOKUP(F3:F16,$M$3:$M$14/($N$3:$N$14=H2),$Q$3:$Q$14),))
    afternoon =SUMPRODUCT(H3:H16*24,IFERROR(LOOKUP(IF(B3:B16<C3:C16,F3:F16,G3:G16),$M$3:$M$14/($N$3:$N$14=I2),$Q$3:$Q$14),))
    night =SUMPRODUCT(H3:H16*24,IFERROR(LOOKUP(G3:G16,$M$3:$M$14/($N$3:$N$14=J2),$Q$3:$Q$14),))
    as array formulas
    with helper columns
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-30-2017
    Location
    australia
    MS-Off Ver
    2013
    Posts
    5

    Re: Trying to calculate pay with variable Penalty Rates

    Thanks so much. its pretty much exactly what i needed...
    only thing i cant work out to do... is incorporate when there is a public holiday.. into the additions I've made (to find out how much to be paid.. not really an issue though.. easy enough for me to add it on manually when i need to.. thanks again
    Attached Files Attached Files

  7. #7
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Trying to calculate pay with variable Penalty Rates

    working days
    =SUM(($F$3:$F$16<6)*($G$3:$G$16<6)*$H$3:$J$16*($H$2:$J$2=F20))*24 as arraay
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-30-2017
    Location
    australia
    MS-Off Ver
    2013
    Posts
    5

    Small hiccup

    Hey, just came across a situation where a small error is made.... If u look at the 6/1/17, there is 10 hour 10 minutes worked...
    The 1 hour and 10 minutes past 7am has not been added.. leaving the totals in 'C1' & 'K19' same value

    Is there a way to add the extra to 'I9' so that it adds the appropriate accrual from 2 different shifts..?

    cheers
    Attached Files Attached Files

  9. #9
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Trying to calculate pay with variable Penalty Rates

    =sumproduct(j3:m3*24,lookup(f3:i3,$q$3:$q$14/($r$3:$r$14=$j$2:$m$2),$u$3:$u$14))
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-19-2018
    Location
    QLD, Australia
    MS-Off Ver
    Office 365 Excel v16.17 (OS X)
    Posts
    2

    Re: Trying to calculate pay with variable Penalty Rates

    Thank you tim201110 for this solution. It answers my question perfectly.

    GoodShekky, we must be on the exact same award as your shift breakdowns are the same as mine. Thanks for asking the question!

  11. #11
    Registered User
    Join Date
    09-19-2018
    Location
    QLD, Australia
    MS-Off Ver
    Office 365 Excel v16.17 (OS X)
    Posts
    2

    Re: Trying to calculate pay with variable Penalty Rates

    Quote Originally Posted by tim201110 View Post
    =sumproduct(j3:m3*24,lookup(f3:i3,$q$3:$q$14/($r$3:$r$14=$j$2:$m$2),$u$3:$u$14))
    Your latest revision got me 95% of the way, but I need to factor in lunch breaks.

    I have added a column (D) with an IF statement to apply a 30 minute lunch break when working 6 hours or more.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    That works fine at this stage, but I cannot find a way to minus the lunch break in your formulas to correctly reduce the total hours worked.

    What's the best way to attack this?
    Attached Files Attached Files

+ 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. Formulas to Add shift penalty rates to specific times & days
    By sman1 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 03-26-2020, 11:24 PM
  2. [SOLVED] Calculating penalty rates based on day of the week
    By takotsubo in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-30-2017, 03:42 AM
  3. Calculate KPI penalty
    By wintheranders in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-01-2013, 06:07 AM
  4. Calculate difference between dates, plus penalty
    By asoom in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-16-2013, 02:16 PM
  5. [SOLVED] Calculate between start and finish times to pay a shift penalty
    By jonas245 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2013, 05:46 PM
  6. Hi Everyone! Penalty Rates question right off the bat!
    By Szuperwoman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-17-2012, 01:29 AM
  7. calculating penalty rates
    By piaclaire in forum Excel General
    Replies: 6
    Last Post: 08-26-2010, 08:02 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