+ Reply to Thread
Results 1 to 11 of 11

Thread: Formula for Costing Roster

  1. #1
    Registered User
    Join Date
    04-15-2007
    Posts
    17

    Formula for Costing Roster

    Been trying to come up with a formula that I can use in cells to cost a roster.
    What I want to be able to do is just input start times into cells and the hours worked is automatically costed out in another cell. The trouble I have been having is that different start times attract a shift allowance eg. before 05:00 you get a 20% loading for the whole shift, between 07:00 and 19:00 is 10% and any finishing time after 19:00 is 15%, don't know how to write the formula to do this.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    MSO2007 on WinXP/MSO2000 on Win7/winXP
    Posts
    2,180
    1. You didn't post a sample of your work.
    2. You did not describe the layout of the worksheet
    3. You require 20% differential for starting before 0500, but the start times between 0500 and 0700 get nothing?
    4. If one starts at, say 08:30, and works until 20:30 does he get 10% for the whole shift plus another 15% for last 1.5 hours (19:00 - 20:30)?
    5. What is the base rate?
    -----------------------------------
    However, you don't have to use one big calculation formula. Use helper cells to calculate each of the three conditions and sum up in another cell:

    =IF(StartTime<TIMEVALUE("05:00"),manhours*0.2*BaseRate,manhours)
    
    =IF(AND(StartTime>=TIMEVALUE("07:00"),StartTime<TIMEVALUE("19:00")),manhours*0.2*BaseRate,0)
    
    =IF(EndTime>TIMEVALUE("19:00"),(EndTime-TIMEVALUE("19:00"))*24*1.15*BaseRate,0)

    ------------------------------------------------------------------
    *Also, you might check the LINKS thread for "timesheets" & overtime calculations, etc.
    ---
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    04-15-2007
    Posts
    17
    Thanks Leah,
    What I meant to say was if you start before 07:00 you get 20% loading for the whole shift, if you start and finish between 07:00 and 19:00 you get 10%, any finishing time after 19:00 attracts 15% for the whole shift, thanks for the input.
    Attached Files Attached Files
    Last edited by kymbo46; 08-07-2008 at 12:12 AM.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    MSO2007 on WinXP/MSO2000 on Win7/winXP
    Posts
    2,180
    The formula:
    =IF(G3<>"",(I3-G3)*24*$AI$2*MAX(HLOOKUP(G3,$AK$2:$AL$3,2),HLOOKUP(I3,$AK$2:$AN$3,2)),"")
    seems to work, but the design of your sheet makes it very difficult to enter it by dragging, etc. I only tested it on two cells with data:

    cost roster(mod1).xls
    ---
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    04-15-2007
    Posts
    17
    protonLeah,
    Thanks very much for the help, what do you think I should do with the design to make it a bit easier.

  6. #6
    Registered User
    Join Date
    04-15-2007
    Posts
    17
    protonLeah,
    I have just been testing that formula, your're right it works properly in those first 2 cells but in any other cell I get the same result no matter what, also if I paste it into a cell that should produce a zero cost( beacause of Rostered Day Off) I still get the same result, it shows the cost for a shift with a 20% loading. I'm probably doing something wrong but I don't know what.

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    MSO2007 on WinXP/MSO2000 on Win7/winXP
    Posts
    2,180
    I have deleted all of your regular day off columns to make formula entry in the pay calculation table a little easier.

    The formulas test the START cells for empty, but if you want to have the RDO text in the cells, then you can test for RDO vs. empty, i.e., IF(D3="RDO"....

    Created a few named ranges (baseRate, Start_Table & End_Table, to make the formulas more self-explainatory


    cost roster(mod1).xls
    ---
    Ben Van Johnson

  8. #8
    Registered User
    Join Date
    04-15-2007
    Posts
    17
    protonLeah,

    Thanks again for all your help, that works great, just one last request.
    I noticed in my original post that I forgot to say that on Sat. and Sun. there is a penalty rate of 1.5 and 2 time the daily rate. Would it be possible to put that into the formula somehow?

  9. #9
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    MSO2007 on WinXP/MSO2000 on Win7/winXP
    Posts
    2,180
    For Saturday and Sunday, there is nothing to lookup so just replace the MAX(...) with the appropriate factor and copy down the column.
    ---
    Ben Van Johnson

  10. #10
    Registered User
    Join Date
    04-15-2007
    Posts
    17
    Thanks for all your help Leah, much appreciated.

  11. #11
    Registered User
    Join Date
    04-15-2007
    Posts
    17

    More help needed pls

    I received some fantasic help with my roster costing formula from protoleah last month, hopefully she or somebody else can give one last peice of help, I have posted the latest spreadsheet here, what i need to do is to automatically add some allowances that some shifts accumulate. On Sat. or Sun. if you start before 07:00 or finish after 19:00 you get an allowance of $11.75, also if you work any overtime after or before your shift more than 1 hour you get a meal allowance of $8.98 and for every 4 hours after that you get another, on days off you receive $8.98 for every 4 hours of overtime worked.

    Many thanks to any help in advance,

    Kym
    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)

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.2.0