+ Reply to Thread
Results 1 to 9 of 9

Timesheet Calculation Help

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    14

    Timesheet Calculation Help

    Hi all,

    I am trying to set up a timesheet for various employees(on the same sheet) I have everything pretty much set up except for the calculation for shifts that start on one day and end on the next (22:00 - 6:30).
    This is what i Have so far:

    Day 1
    B3 In
    C3 out

    Day 2
    D3 In
    E3 Out

    and so on.
    at the end of the week it is calculating all the time worked, deducting the 30 minute break and converting the time to decimal.
    This is the formula i am using for the weekly total (bare with me)
    =((IF(((C3-B3)*24)>=5,C3-(B3+TIME(0,30,0)),C3-B3))*24)+((IF(((E3-D3)*24)>=5,E3-(D3+TIME(0,30,0)),E3-D3))*24)+((IF(((G3-F3)*24)>=5,G3-(F3+TIME(0,30,0)),G3-F3))*24)+((IF(((I3-H3)*24)>=5,I3-(H3+TIME(0,30,0)),I3-H3))*24)+((IF(((K3-J3)*24)>=5,K3-(J3+TIME(0,30,0)),K3-J3))*24)+((IF(((M3-L3)*24)>=5,M3-(L3+TIME(0,30,0)),M3-L3))*24)+((IF(((O3-N3)*24)>=5,O3-(N3+TIME(0,30,0)),O3-N3))*24)

    I need the adjustment so that it will calculate the shifts that go from one day to the next. but still do the same calculation i already have set up..

    PLease help.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Timesheet Calculation Help

    Does the formula work properly?
    Quang PT

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Timesheet Calculation Help

    With row 2 is title like this : B2="In", C2="Out",D2="In", E2="Out",...

    Basically, your formula can be shorter:
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    I am working on night shift and come back asap.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Timesheet Calculation Help

    Night shift updated.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-04-2013
    Location
    Bornholm, Danmark
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Timesheet Calculation Help

    take a look at this one:
    Wages.xlsx

  6. #6
    Registered User
    Join Date
    02-18-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Timesheet Calculation Help

    Book1.xlsx

    bebo021999

    Ok so this is what I Have,
    in row 3 I tried plugging in your formula. it's giving me an error and I have no idea how to fix it. the other thing I think I failed to mention was that the
    formula should only deduct the 30 minute break if the hours worked in the day are greater than 5.
    Row 2 has the original formula I was using
    and Row 3 shows the problem I am having when the shift goes from one day to the next.

    Please help

    Thanks

  7. #7
    Registered User
    Join Date
    02-18-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Timesheet Calculation Help

    Thank you! but that's not giving me what I need.

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Timesheet Calculation Help

    Quote Originally Posted by jeci80 View Post
    Attachment 298485
    in row 3 I tried plugging in your formula. it's giving me an error and I have no idea how to fix it. the other thing I think I failed to mention was that the
    formula should only deduct the 30 minute break if the hours worked in the day are greater than 5.
    Row 2 has the original formula I was using
    and Row 3 shows the problem I am having when the shift goes from one day to the next.
    Try in attachment. Note that I have inserted 1 extra column at the end right before total column in order to use SUMPRODUCT formula. You can hide this column if needed.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-18-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Timesheet Calculation Help

    Thank you soooo much!!! that is exactly what I needed. Now I will study that formula so I can understand it. lol

    Thank you again so much!!!!!

  10. #10
    Registered User
    Join Date
    02-18-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Timesheet Calculation Help

    bebo021999

    Question, can you explain how the formula works. I cant quite figure it out.

    Thanks

+ 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. Timesheet calculation
    By sinternational in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-03-2013, 09:34 AM
  2. Help with timesheet calculation
    By amexjunkie in forum Excel General
    Replies: 3
    Last Post: 11-04-2011, 02:24 AM
  3. Timesheet Calculation
    By btoti in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2006, 03:30 PM
  4. Timesheet calculation
    By candlekeeper in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2006, 03:41 PM
  5. [SOLVED] Timesheet Date Calculation
    By HRMSN in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM

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