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

Hi,

Try:

=MAX(0,(D35*24)-40)

HTH
Jean-Guy


"iamtaranicole" wrote:

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