+ Reply to Thread
Results 1 to 6 of 6

Timesheets

  1. #1
    Registered User
    Join Date
    01-25-2007
    Posts
    3

    Timesheets

    I have been using Excel for quite a while but still do not know much about it.
    I am busy trying to make our employee timesheets/payslips more user friendly.
    Some employees in our company are paid according to the exact time they have worked e.g from 07:30 to 16:15 minus 30 minutes lunch. How would I set up a formula for this i.e.:

    Time ended - time started - 30 minutes lunch = hours:minutes worked

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Something like this will work

    =B1-A1-C1 (B1 = End time, A1 = Start time, C1 = Lunch 00:30)

    This site will give you more info on timesheets

    http://www.cpearson.com/excel/overtime.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    01-25-2007
    Posts
    3
    How do I do this without having to put in a formula for each line so that
    I wouldn't have to write =B1-A1-C1 and the next line =B2-A2-C2
    i.e. How do I put in one formula that would cover entries for 30 rows?

  4. #4
    Registered User
    Join Date
    01-23-2007
    Posts
    6

    Use autofill?

    Assuming this formula is entered in D1.
    Select D1 and move your mouse to the bottom right corner of D1. You should see a "+" sign. Select the bottom right corner of D1 and drag it down to D2,D3, D4.... Dn - till the number of rows for which you need the formula?
    Is this okay ?

  5. #5
    Registered User
    Join Date
    01-25-2007
    Posts
    3
    The answers were exactly what I wanted to know.
    Thank you.

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Or double-click the handle. It will auto-fill formulas as long as the adjacent cell is not empty

+ 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.6.0 RC 1