• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Formula to calculate lunch time greater than 30 minutes.

DataFolks

New Member
I would like for someone to assist me with a formula to calculate the amount of break time that is greater than 30 minutes in a day. I need to be able to enter this time in the format of hours: minutes same format as in/out punches.

Take, for example, the total lunch taken in cell F18 as 01:00:00
IF F18 is equal to "OOO" then G19 should be "0"
IF F18 is 30 min or less then G18 should be "0"
IF F18 is greater than 00:30:00 then G18 should be the difference between 00:30:00 and F18
In this case, since F18 is equal to 1 hour taken so G18 should show the difference of 30 minutes. If F18 was 35 mins then G18 would be the difference of (35-30) = 5mins etc.

Any help would be GREATLY appreciated, I also attached an excel sheet if that would make things easier.

Thank you!
 

Attachments

  • Weekly Time Sheet.xlsx
    38.7 KB · Views: 4
Last edited:
if you convert the data in column F to the number of minutes that the break lasted, in column G you can just write a conditional, which results in the number of minutes for which you executed the 30 minutes allowed, I attatch the file where I did it
 

Attachments

  • Weekly Time Sheet(1).xlsx
    38.9 KB · Views: 2
Like this ?
BTW avoid merged cells , they are nothing but trouble
 

Attachments

  • Weekly Time Sheet.xlsx
    39.9 KB · Views: 3
Back
Top