Calculating Employee Work Hours, Minus Lunch/Break Time

%3CLINGO-SUB%20id%3D%22lingo-sub-3072793%22%20slang%3D%22en-US%22%3ECalculating%20Employee%20Work%20Hours%2C%20Minus%20Lunch%2FBreak%20Time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3072793%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20help%20creating%20a%20formula%20and%20what%20cell%20to%20put%20the%20formula%20in.%20(See%20my%20image%20of%20sheet%20below)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20the%20formula%20I%20am%20using%20for%20the%20days%20of%20the%20week%20to%20calculate%20work%20hours%3A%26nbsp%3B%20%3D(ABS(B3-B4%20)*%2024)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20tried%20%3DIF%20formula%20and%20it%20almost%20worked%20but%20ended%20up%20not%20being%20sufficient.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20need%20to%20redo%20the%20layout%20of%20the%20current%20sheet%2C%20I%20can.%26nbsp%3B%20Thanks%20for%20any%20advice%20and%20solutions!%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Excel%20Help%20Snip%202.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F342599i0DC7B1D98E06B937%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Excel%20Help%20Snip%202.PNG%22%20alt%3D%22Excel%20Help%20Snip%202.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3072793%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3073114%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20Employee%20Work%20Hours%2C%20Minus%20Lunch%2FBreak%20Time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3073114%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1287748%22%20target%3D%22_blank%22%3E%40oolliivviiaa%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20698px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F342754iC4D8F4F97460074C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eit%20could%20be%20like%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel-formula%22%3E%3CCODE%3E%3DMOD(B4-B3%2C1)*24%20-(J3%3D%22x%22)*0.5-(O3%3D%22x%22)*0.75%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi All, 

 

I need help creating a formula and what cell to put the formula in. (See my image of sheet below)

 

This is the formula I am using for the days of the week to calculate work hours:  =(ABS(B3-B4 )* 24)

 

I've tried =IF formula and it almost worked but ended up not being sufficient. 

 

If I need to redo the layout of the current sheet, I can.  Thanks for any advice and solutions!Excel Help Snip 2.PNG

 

2 Replies

@oolliivviiaa 

Here

image.png

it could be like

=MOD(B4-B3,1)*24 -(J3="x")*0.5-(O3="x")*0.75

Thanks for the reply. 

 

I ended up creating a separate column for the lunch break. Then just subtracted the number from the work hours. 

 

@Sergei Baklan