+ Reply to Thread
Results 1 to 7 of 7

Excel if functions

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    price
    MS-Off Ver
    Excel 2010
    Posts
    4

    Excel if functions

    Im trying to do a function where on a two week time card if in the first week there is over 40 hours the extra goes as over time and same with the second week how would i do this?

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Excel if functions

    Generally...

    pay = IF(hours < 40, hours * pay_rate, 40 * pay_rate + (hours - 40) * overtime_pay_rate)

    something like that?

  3. #3
    Registered User
    Join Date
    07-17-2012
    Location
    price
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Excel if functions

    K SO ON THE EXAMPLE IF THE HOURS FOR THE TOTAL WEEK IS OVER 40 IT SHOULD GO INTO OT DOES THAT MAKE SENSE? SO EVEN IF THE FIRST WEEK THEY HAVE 50 HRS AND THE SECOND WEEK THEY HAVE 30 THE FIRST WEEK THEY SHOULD GET PAID OT PAY FOR THE 10 EXTRA HOURS. BUT ITS NOT CALCULATING IT LIKE THAT JUST IF THE TOTAL OF THE 2 WEEKS IS OVER 80 HOURS
    PER-DIUM 103.25 Reg
    $40.00 Vacation 19.25 OT

    Week 1 Week 2 Grand
    Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7 Total Day 8 Day 9 Day 10 Day 11 Day 12 Day 13 Day 14 Total Total
    OFF STAWBER OFF OFF

    7:00 7:00 7:00 7:00 7:00 8:15 7:00 7:00 7:00 3:00 7:00
    20:00 17:45 21:00 17:00 18:30 19:30 21:00 21:00 11:30 16:30 13:00



    0:00 13:00 10:45 14:00 10:00 11:30 0:00 59:15:00 11:15 14:00 14:00 4:30 13:30 0:00 6:00 63:15:00 122:30:00

    0.00 13.00 10.75 14.00 10.00 11.50 0.00 59.25 11.25 14.00 14.00 4.50 13.50 0.00 6.00 63.25 122.50

  4. #4
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Excel if functions

    1) Caps lock key

    2) Ben's equation was right, it just included the overtime pay, but without a sample workbook, we won't be able to give you one that you can drop into your spreadsheet. Copy/paste of the cells is a pain, just attach an example workbook devoid of sensitive information.
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  5. #5
    Registered User
    Join Date
    07-17-2012
    Location
    price
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Excel if functions

    Ok heres an attachment i hope i did it right im new at this
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Excel if functions

    I just opened it to wherever it was... I put this in J369, should be what you're looking for.

    =IF(J381>40,J381-40,0)+IF(T381>40,T381-40,0)

  7. #7
    Registered User
    Join Date
    07-17-2012
    Location
    price
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Excel if functions

    Perfect thank you so much for your 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