+ Reply to Thread
Results 1 to 3 of 3

Help on Sum of Working Hours + Alerts if exceeded threshold

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    12

    Help on Sum of Working Hours + Alerts if exceeded threshold

    Hello,

    I need some help to create a formula that will alert me if the working hours professionals reported is compliant or not.

    Explanation:

    I'm building a working hours report spreadsheet to be used by HR. We are currently running on 3 different shifts:

    1st Shift: 08:00am - 12:00pm / 13:00 - 16:30 (1h lunch time that will not count) = Total 8 hours
    2nd Shift: 16:00 - 20:00 / 21:00 - 00:00 (1h lunch time that will not count) = Total 7 hours
    3rd Shift: 00:00 - 03:00/ 04:00 - 08:00 (1h lunch time that will not count) = Total 7 hours

    So, the rules I need to be in place is:
    - If the total amount of Hours EXCEEDS 16 min or MORE (1st shift = 8h16min / 2nd and 3rd shift = 07:16min) on Column Q, the cells would return "H.E" in RED,
    - If the total amount of Hours are LESS or more (1st shift = 07h44min / 2nd and 3rd shift = 06h44min) on Column Q, the cells would return "DESCONTAR" in RED.
    - If any of those rules matches, of course the hours reported are acceptable, the cell would return as "OK" in Green.

    The shift hours that I'm using as reference are in Cells C,D,E,F 7. I'm trying to link it to Column Q, but if I set Conditional Formatting to pain the cells in red, it won't accept 3 different rules and I don't know what else to do.

    Can someone please help?

    Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Help on Sum of Working Hours + Alerts if exceeded threshold

    Good to see you again. Where is the formula for column Q?
    Click on star (*) below if this helps

  3. #3
    Registered User
    Join Date
    01-14-2013
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Help on Sum of Working Hours + Alerts if exceeded threshold

    =IF(F14=0,SUM((D14-C14),(1-E14)),SUM((D14-C14),(F14-E14))
    Created a new column especially to provide me the results if the work hours reported are OK or Not OK, using this formula: =IF(OR(Q16<0.322916666666667,Q16>0.34375,),"OK","Not OK")

    But it's definitely not working.

    Thanks!

+ 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