1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Computing Daily Hours Worked in Excel 97

Discussion in 'Business Applications' started by Herbie, Oct 12, 2003.

Thread Status:
Not open for further replies.
  1. Herbie

    Herbie Thread Starter

    Joined:
    Sep 8, 1999
    Messages:
    117
    I am using Excel 97, and would like to know how I can total payroll hours daily, for my employees. Each day they punch in in the morning then out for lunch....then again punch in after lunch and finally out at the end of the day.... as you can tell I am not very good in Excel. Any help will be appreciated... thanks,,,,, Herbie
     
  2. XL Guru

    XL Guru

    Joined:
    Aug 30, 2003
    Messages:
    2,702
    Assuming you have headers in A1:E1 (StartAM, EndAM, StartPM, EndPM, Hours), then use this formula in E2 -

    =(B2-A2)+(D2-C2)

    Of course, you could just as easily use

    =(D2-A2)-(C2-B2)

    ie: subtract end time from start time then take out the lunch time.

    If at some stage you get results that exceed 24 hours (eg: weekly total), you'll need to use a custom format. Format -- Cells -- Number, Category = Custom, Type = [h]:mm.

    This assumes you're working with "office hours" ; if you need other options, post back.

    Rgds,
    Andy
     
  3. Herbie

    Herbie Thread Starter

    Joined:
    Sep 8, 1999
    Messages:
    117
    Andy,
    thanks very much. Your tip worked perfectly.
    herbie
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/171475

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice