View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Employee Time Sheet

Regular Hours:
=MIN(SUM(A1:A4),40)

Overtime hours:
=MAX(0,SUM(A1:A4)-40)


"suntzu" wrote:

I am trying to create a Employee time sheet & I need to figure out the
overtime and break it down. Ex:when I add

A1+A2+A3+A4 = 43 (12+12+12+7): however. out of the 7 i only need 4 to
complete the fourty the rest is over time, so in the cell I need to show the
4 not the 7. and the 3 would be placed in the overtime cell. can some help me
create the formula for this.