+ Reply to Thread
Results 1 to 6 of 6

Help with If statement

  1. #1
    Registered User
    Join Date
    12-15-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Help with If statement

    The whole document works but the last one i need. I'll post it all just in case i have an error elsewhere.

    Start Time -- Stop Time -- Break -- Total -- Hours Worked -- Average -- Pay
    6:00 -------- 3:00 ------- Yes ---- 1600 -- 8.00 ----------- 200 ------ $xx.xx


    E2 Formula for time: =IF(C2="Yes",(((A2*24+12)-(B2*24+24))+1),((A2*24+12)-(B2*24+24)))

    F2 Formula for average: =D2/E2

    and now for the problem one.

    G2 Formula for pay: =IF(F2<165, E2 * 7.25, IF(F2<180, D2 * 0.07, IF(F2<190, D2*0.08, D2*0.09)))

    Just to break that formula down more:
    0 - 164 = 7.25 * Hours Worked
    165 - 179 = 0.07 * Total
    180 - 189 = 0.08 * Total
    190+ = 0.09 * Total

    it only calculates 7.25 by the hours worked no matter what comes up in F2
    Last edited by Dirtyfifi; 12-15-2009 at 11:44 AM.

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Help with If statement

    What's with the reference to "E"?
    it only calculates 7.25 by the hours worked no matter what comes up in F2
    I'm not getting that result at all.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Registered User
    Join Date
    12-15-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Help with If statement

    Quote Originally Posted by mewingkitty View Post
    What's with the reference to "E"?
    E2 is the total hours. 8.00 right now with that setup my Pay shows up as $58.00

  4. #4
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Help with If statement

    D is your total... I thought.... E is your "Hours worked".
    If you could post an actual example that might help?

  5. #5
    Registered User
    Join Date
    12-15-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Help with If statement

    the first post is my actual project. I am doing this for my supervisor to limit the amount of information he needs to type on the computer. right now he has to do everything on a calculator then input it into excel.

    To clarify more this is a 3 tier pay scale with the exception of not making 165/hr then its hours by minimum wage.

    A2-Start
    B2-Stop
    C2-Break
    D2-Total Hours
    E2-Total Pick
    F2-Average Per Hour
    G2-Total Pay

    http://img5.gr4f.com/5f14f86304.jpg
    Last edited by Dirtyfifi; 12-15-2009 at 10:50 AM. Reason: added pic

  6. #6
    Registered User
    Join Date
    12-15-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Help with If statement

    Hurray figured it out.

    changed F2 to =(D2/E2)*(1-2) the way i had the cell formatting it was coming up as a negative number. that fixes all my problems =)

    thanks for the semi help and possibly for future help.

+ 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