+ Reply to Thread
Results 1 to 7 of 7

Timesheet - How to add up total regular and OT hours in seperate rows?

  1. #1
    Registered User
    Join Date
    04-28-2006
    Posts
    51

    Timesheet - How to add up total regular and OT hours in seperate rows?

    Hi,

    I'm creating a time sheet and was wondering to do the following.

    I have a column with the total hours for the day in each row.
    Under these rows there is a Total Regular Hours row and a Total Overtime hours row.

    What I'd like to do is have all the hours 8 or less added up in the Regular row and anything after 8 hours will be added to the overtime row.

    For example if in day one I imputed 10 hours and day two I imputed 6 hours,
    It would add these up like this:

    Regular Hours: 14
    Overtime Hours: 2

    Thanks in advance.
    =)

    Dino

  2. #2
    Registered User
    Join Date
    04-26-2007
    Posts
    94
    See attached:

    Please comment.

    Dave
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-28-2006
    Posts
    51
    Hey Dave,

    Thanks a lot. I'm almost there.

    I had to drag the C2 formula down the column and
    that made it work for the rest of the days.

    Also change the formula of D15 from =SUM(D8) to =SUM(D2:D8)

    It adding the overtime hours great, I just need to get a total of regular hours now. D14 is adding all the hours including overtime.

    Thanks!

    Dino

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Dave - I think your formula for the Overtime Hours sum needs to be adjusted from SUM(D8) to SUM(D2:D8).

    Anyway, along similar lines, if your data is setup like so:
    Please Login or Register  to view this content.
    The formula you can use for row 2 (Reg. Hours) would be:
    =IF(B1<=8,B1,8)

    And for row 3 (OT Hours) would be:
    =IF(B1>8, B1-8,0)

    You could then sum each row to the right, or below, or wherever.

    Here's a link to some detailed Time calculation info: http://www.cpearson.com/excel/overtime.htm
    Last edited by Paul; 10-30-2007 at 09:00 PM.

  5. #5
    Registered User
    Join Date
    04-28-2006
    Posts
    51
    Thanks for the post and the link.

    Checking out everything now.

    Quick question, how do you make it so there are large spaces between your letters in the posts.

    When I try putting multiple spaces between letters like A B C
    it always gets truncated to on space. A B C

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Using CODE tags within your post forces a uniform-width font. To insert code tags, click the # button in the post editor window.

    Typically it's used for making code more visible, but it can be handy when you want to show columns/rows.

  7. #7
    Registered User
    Join Date
    04-28-2006
    Posts
    51
    aha good idea. Ya it sure help to explain things in that format.

    Thanks again.

    Dino

+ 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