Home

Excell spreadsheet

%3CLINGO-SUB%20id%3D%22lingo-sub-751438%22%20slang%3D%22en-US%22%3EExcell%20spreadsheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-751438%22%20slang%3D%22en-US%22%3EIf%20I%20work%2011hrs%20how%20do%20I%20move%20hrs%20above%208%20to%20the%20next%20cell%20and%20any%20hrs%20over%202%20to%20a%20third%20cell%3F%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-751438%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-751457%22%20slang%3D%22en-US%22%3ERe%3A%20Excell%20spreadsheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-751457%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F375163%22%20target%3D%22_blank%22%3E%40gbat228836%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EYou%20can%20accumulate%20hours%20over%20a%20threshold%20using%20the%20MAX%20function.%20The%20first%20formula%20below%20returns%20any%20hours%20over%208%2C%20or%200%20if%20there%20weren't%20any%20such%20hours.%20The%20second%20formula%20returns%20any%20hours%20over%202%2C%20or%200%20if%20there%20weren't%20any%20such%20hours.%20These%20formulas%20assume%20that%20you%20are%20using%20whole%20numbers%20to%20represent%20the%20hours.%3C%2FP%3E%0A%3CPRE%3E%3DMAX(B2-8%2C0)%0A%3DMAX(B2-2%2C0)%3C%2FPRE%3E%0A%3CP%3EIf%20you%20are%20using%20times%20like%206%3A45%20in%20cell%20B2%2C%20then%20the%20formulas%20would%20be%20slightly%20different%3A%3C%2FP%3E%0A%3CPRE%3E%3DMAX(B2-8%2F24%2C0)%20%0A%3DMAX(B2-2%2F24%2C0)%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
gbat228836
New Contributor
If I work 11hrs how do I move hrs above 8 to the next cell and any hrs over 2 to a third cell?
1 Reply

@gbat228836

You can accumulate hours over a threshold using the MAX function. The first formula below returns any hours over 8, or 0 if there weren't any such hours. The second formula returns any hours over 2, or 0 if there weren't any such hours. These formulas assume that you are using whole numbers to represent the hours.

=MAX(B2-8,0)
=MAX(B2-2,0)

If you are using times like 6:45 in cell B2, then the formulas would be slightly different:

=MAX(B2-8/24,0) 
=MAX(B2-2/24,0)