+ Reply to Thread
Results 1 to 13 of 13

overtime help with excel

  1. #1
    Registered User
    Join Date
    12-22-2011
    Location
    Bodden Town, Grand Cayman
    MS-Off Ver
    Excel 2010
    Posts
    8

    overtime help with excel

    Time sheet problem:
    I've got time in (A1), lunch break (A2) and time out (A3) all calculated into (A4). What I now need is this...overtime hours. If A4 is greater than 9 hours, then subtract 9 from A4 and return that figure in A5. If A4 is less than 9 then return a 0 figure in A5.
    Please for the Love of God, someone help me.

    I need additional help on this time sheet, but this is phase one. (out of 3 max)
    Thank anyone for their help with this, sincerely as it is super important.
    al

    Is that better, MOD?

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: overtime help with excel

    "Calculating overtime" might be better. We are in an Excel forum after all, so that part is somewhat understood. Anyway..

    In A5,

    =IF(A4>9,A4-9,0)

    Look in Excel Help for the IF function, as well as the millions of examples on the web.

  3. #3
    Registered User
    Join Date
    12-22-2011
    Location
    Bodden Town, Grand Cayman
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: overtime help with excel

    I so much respect the help, but can't help the uncertainty of knowing whether or not that was typographical sarcasm. If I didn't try searching the millions of examples on the web, maybe I wouldn't have the need to create a gmail account just to join this forum to search for knowledge. But, nonetheless. Thank you so much. I will be back in touch with you as I'm so sorry my lack of forum knowledge is a annoying to most.

  4. #4
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: overtime help with excel

    There is nothing annoying about having a lack of knowledge, that's why there are forums such as this one. I see Paul's post as helpful to your cause and certainly not typographical sarcasm (although I don't know anyone's typographical intent) but that is just my take. Please remember that we all volunteer our time to help others who are having troubles with Excel.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: overtime help with excel

    Hi albertini

    I thing you misunderstood the words of Paul and there is no reason to do it.

    To certify as a (still) new to the Forum that all offer solutions with joy.

    Paul is one of them personally I have watched him,many times to give excellent solutions.

    Days of Christmas is, believe me, not worth worry about such things.

    Now, for those who asked.

    In A4, put the formula: =IF((($A$3-$A$1)-$A$2)>$IV$1;"";($A$3-$A$1)-$A$2)

    In A5, put the formula: =IF((($A$3-$A$1)-$A$2)<=$IV$1;0;($A$3-$A$1)-$A$2)

    Hope to helps you.

    Merry Christmas!
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Registered User
    Join Date
    12-22-2011
    Location
    Bodden Town, Grand Cayman
    MS-Off Ver
    Excel 2010
    Posts
    8

    Question Re: overtime help with excel

    last question:
    let's take this on a 10$/hour scale. If any work above 9 hours is time and a half, and I work 10 hours in one day. My pay should be 104.50. Correct so far?
    If in cell A5 I have the total number of hours (10) and in cell A6 I want to have the number of overtime hours multiplied by the time and a half salary, what do I do then?
    My God, am I so stupid?
    I'm getting ripped off by my employer and want to prove them wrong.

  7. #7
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: overtime help with excel

    Wouldn't 10 hours (9 @ $10.00 + 1 @ 15.00) = $105.00 (not $104.50)?

    In A6 you would use:

    =IF(A5>9,(A5-9)*15,0)

    This says "If A5 is greater than 9, then multiply the number of hours greater than 9 by 15 (10 * 1.5). If A5 is not greater than 9, return 0."

    See here for an assortment of user-created templates for payroll/time-keeping on microsoft's template download page: http://office.microsoft.com/en-us/te...010117277.aspx
    Last edited by Paul; 12-22-2011 at 03:28 AM.

  8. #8
    Registered User
    Join Date
    12-22-2011
    Location
    Bodden Town, Grand Cayman
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: overtime help with excel

    ok, ok....I love you all! And, I stand corrected. But what if the same cell was less than 9 hours? Could that be implemented into the equation?

  9. #9
    Registered User
    Join Date
    12-22-2011
    Location
    Bodden Town, Grand Cayman
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: overtime help with excel

    Is there an excel college I can go to? I want to learn so badly. I would love a career in this. I SWEAR. Scholarships anyone?

  10. #10
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: overtime help with excel

    In A6 do you just want overtime pay calculated, or regular pay + overtime pay? I already showed you the overtime pay, so if you want it to show the total combined you could use:

    =A5*10+IF(A5>9,(A5-9)*5,0)

    This says "Multiply A5 by 10. If A5 is greater than 9, find out how many hours over 9, multiply that by 5, then add it to the previous total."

    It's not multiplied by 15 because we already multiplied all hours by 10, not just the standard time hours. It could be done separately which might be a bit more readable, e.g.

    =IF(A5>9,(A5-9)*15+90,A5*10)

    This is "If A5 is greater than 9, add 90 to the number of overtime hours multiplied by 15. If not, simply multiply A5 by 10 to get standard pay."

    There are no Excel universities that I know of. I started here several years ago and knew enough to be useful. After years of reading and responding to posts I now know far more than I did back then. Like all things, though, you need to keep using it to retain the knowledge and (hopefully) improve.

  11. #11
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: overtime help with excel

    The best way to learn about Excel is to keep working with it and frequenting Excel forums when you don't understand something. People do earn good money and notch out a career by presenting Excel workbooks that produce valuable results for the end users.

  12. #12
    Registered User
    Join Date
    12-22-2011
    Location
    Bodden Town, Grand Cayman
    MS-Off Ver
    Excel 2010
    Posts
    8

    Unhappy Re: overtime help with excel

    I got fired today, so now it's not a big issue with overtime any longer. Hmmmm what to do now?
    Thank you all for your help.
    Sincerely,
    Al

  13. #13
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: overtime help with excel

    Sorry to see that albertini, hopefully you can bounce back soon.

+ 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