Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   MS Excel (https://www.askmehelpdesk.com/showthread.php?t=95032)

  • May 22, 2007, 06:42 PM
    shoppingeutopia
    MS Excel
    I am modifying a payroll spreadsheet that was developed in MS Excel. The hours worked by each employee have their own row; each cell represents the hours worked on that particular day. I need to isolate ONLY the amount greater than eight hours (for overtime) and sum those quantities at the end of each row for each employee. For example, if an employee works three days overtime in a pay period, each day is two hours overtime, that summary for overtime should be 6 hours at the end of that row (which is a pay period). I am able to isolate any cells that are greater than 8, but that gives me the entire number (i.e. if they worked 10 hours, the formula I used recognizes the whole 10 hours, not just the 2 hours overtime)

    Any help would be greatly appreciated,

    Regards,

    Anthony
  • May 23, 2007, 03:30 AM
    WvR
    Quote:

    Originally Posted by shoppingeutopia
    I am modifying a payroll spreadsheet that was developed in MS Excel. The hours worked by each employee have their own row; each cell represents the hours worked on that particular day. I need to isolate ONLY the amount greater than eight hours (for overtime) and sum those quantities at the end of each row for each employee. For example, if an employee works three days overtime in a pay period, each day is two hours overtime, that summary for overtime should be 6 hours at the end of that row (which is a pay period). I am able to isolate any cells that are greater than 8, but that gives me the entire number (i.e. if they worked 10 hours, the formula I used recognizes the whole 10 hours, not just the 2 hours overtime)

    Any help would be greatly appreciated,

    Regards,

    Anthony

    you can combine the SUMIF and COUNTIF functions
    =SUMIF(B2:F2,">8")-(COUNTIF(B2:F2,">8")*8) where B2:F2 is your range of hours worked

    Hope this helped
  • May 23, 2007, 05:54 PM
    shoppingeutopia
    Quote:

    Originally Posted by WvR
    you can combine the SUMIF and COUNTIF functions
    =SUMIF(B2:F2,">8")-(COUNTIF(B2:F2,">8")*8) where B2:F2 is your range of hours worked

    Hope this helped

    Thanks - that was perfect - THIS IS A GREAT SITE!!

    Regards

    Anthony

  • All times are GMT -7. The time now is 12:18 AM.