View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 3,268
Default calculating time, overtime in excel [h]:mm format

=MAX(0,D35-"40:00")

format the cell as hh:mm


--


Regards,


Peo Sjoblom


"iamtaranicole" wrote in message
...
I am trying to complete a spreadsheet in hour and minute format that will
calculate the overtime for each employee over 40 hours. If I have someone
with 45:30 hours and want to have excel calculate the hours of overtime in
the next column What formula would I use?
=MAX(0,D35-40) doesn't work
=IF($D3540,SUM($D35,-40)," ") doesn't work