+ Reply to Thread
Results 1 to 10 of 10

Time Sheet Pay Calculation Issue

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Time Sheet Pay Calculation Issue

    I have read so many how-to pages & posts, to no avail. I have created a simple time sheet that calculates time in & out, total time & total pay. All of it is working, except for the pay calculation; it will not calculate the cents for some reason. I have attached a sample sheet, but here is the formula I used: =IF(D11-C11=0, "",E11*E7). At present, it rounds it to dollars even though I have not used a function to make it happen.

    Additionally, I would like for the total time to remain blank if there has not been a time inserted into both the In & Out slots. I tried several formulas, but never got them to work. Here is the formula I am currently using: =IF(D11-C11=0,"", (D11-C11)*24).

    Any help is greatly appreciated!

    Daily Time Sheet_Test.xlsx

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Time Sheet Pay Calculation Issue

    substitute this formula in your F column

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Time Sheet Pay Calculation Issue

    I plugged it in and nothing changed. It still only calculates the dollars and not cents. Makes no sense to me. What was using the N function andd "E$7" supposed to do?
    Last edited by TechChick72; 04-25-2013 at 08:06 PM.

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Time Sheet Pay Calculation Issue

    I guess the calculation is correct...
    9 hours one gets $ 108 and for the 10 minutes you get 1/6 of 12 which is 2. thus $110 even

    for the next one the minutes equal to 5/60 or 1/12 so they add a full $1.00 to the hourly value.

    the N() gives the number of a string.

    add a minute to either one ...

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Time Sheet Pay Calculation Issue

    Hi TechChick72

    Another version, if your stop time goes past midnight. In F11 and copy down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  6. #6
    Registered User
    Join Date
    04-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Time Sheet Pay Calculation Issue

    Regardless of which formula I use, the total is not correct:

    1) 8:10 AM 5:20 PM 9.17 $110.00
    2) 7:45 AM 2:52 PM 7.12 $85.40

    E: =IF(D11-C11=0,"", (D11-C11)*24)
    F: =IF(COUNTA(C11:D11)<2,"",MOD(D11-C11,1)*24*$E$7)

    1) total should be $110.04
    2) total should be $85.44

    Exact same thing occurs when i use the formula provided by rcm, as well as the formula i was using originally. I intentionally used examples that would not return even numbers to enable me to verify the results. I'm at a complete loss...

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Time Sheet Pay Calculation Issue

    @ TechChick72

    Can you explain how you get these!
    1) total should be $110.04
    2) total should be $85.44
    C11: 8:10 AM
    D11: 5:20 PM

    D11-C11= 09:10 hrs = 9 hrs & 1/6 of a hour. (9.16666666666667) = 9*$12= $108 + 1/6 of an hour, no maths needed for that $2.00! = $110

    C12: 7:45 AM
    D12: 2:50 PM

    D12-C12= 07:05 = 7 hrs & 1/12 of a hour. (7.083333333) = 7*$12= $84 + 1/12 of an hour, no maths needed for that either $1.00! = $85

    NOTE: In E11 DO NOT multiply 9.17 by the $12 on a calculator. Select cell E11, CTRL + 1 on the keyboard > Number > Category (number) and increase the decimal places and you will see what I mean! Same applies for E12
    Last edited by Kevin UK; 04-28-2013 at 06:17 PM.

  8. #8
    Registered User
    Join Date
    04-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Time Sheet Pay Calculation Issue

    I see my error in the way I was calculating the cell; however, it is still not calculating properly to the exact cent. Please don't be annoyed with me, I'm really trying to understand.

    Using my original examples from the attached spreadsheet:

    8:10 AM 5:20 PM 9.17 $110.00
    7:45 AM 2:50 PM 7.08 $85.00

    Using long form so you see where I'm getting it from:

    17/60 = .28 + 9 = 9.28*12 = 111.36
    08/60 = .13 + 7 = 7.13*12 = 85.56

  9. #9
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Time Sheet Pay Calculation Issue

    Hi TechChick72

    5:20 PM-8:10 AM= 9:10 (9.166667)
    2:50 PM-7:45 AM = 7:05 (7.083333)

    Have a read at the links below, regarding dates & times.

    Dates & Times

    Times

  10. #10
    Registered User
    Join Date
    04-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Thumbs up Re: Time Sheet Pay Calculation Issue

    Kevin, I finally found the issue thanks to this link: Times.

    Turns out the reason why my calculations did not match Excel was the way I had the E column formatted. I had it formatted as a number with 2 decimal places. I changed it to h.mm and the issue was resolved.

    Now it displays as 9.10, which does indeed calculate to $110.00. Thank you for taking your time to help me think through this! :D

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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