+ Reply to Thread
Results 1 to 3 of 3

How to calculate hours worked to trigger a cost

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    Reading
    MS-Off Ver
    Excel 2010
    Posts
    25

    How to calculate hours worked to trigger a cost

    Hi,

    I have a huge task of calculating the time that staff have worked to trigger off a cost.

    If a Field Officer works 7am till 3pm on Saturday there are two different costs I need to calculate to trigger an invoice.

    7am till 8am is £22.86per hour and then 8am till 3pm is £16.87.

    There are different costs depending on the day of the week worked and the position they hold but if I can get a formula to help me calculate the split in time to provide me with a cost I can work the rest out.

    Please advise?

    I've attached a sample document for ease.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: How to calculate hours worked to trigger a cost

    Try using a user defined function. Ive created a stub of one which will need completing - hopefully you can work out what is going on.

    Please Login or Register  to view this content.
    Open the VBA editor by hitting Alt F11.
    Insert a new module with Insert - Module
    Paste in the above function
    Go back to the sheet by hitting Alt F11.

    In a P7 on the Saturday sheet, enter =GetCost($C$3,F7,G7,H7,I7) and copy down.

    Remember to save the workbook as a macro enabled workbook .xlsm
    Martin

  3. #3
    Registered User
    Join Date
    08-05-2013
    Location
    USA
    MS-Off Ver
    2010
    Posts
    76

    Re: How to calculate hours worked to trigger a cost

    You might try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you had a table of pay rates, you could use an index match - which would be easier to update in formulas if the rate ever changes.

+ 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 Cost of Hours Worked
    By Delleeb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2013, 03:13 PM
  2. Replies: 4
    Last Post: 02-12-2013, 07:01 AM
  3. Replies: 2
    Last Post: 02-11-2013, 02:26 PM
  4. Calculate Hours Worked
    By NewGirl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2009, 10:45 PM
  5. [SOLVED] Calculate hours worked
    By larry_saudi in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-24-2006, 11:55 AM

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