View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Trevor Shuttleworth Trevor Shuttleworth is offline
external usenet poster
 
Posts: 1,089
Default How do i subtract a half hour from a time when 8 hrs.

If the start time is in A6 and the finish time is in B6:

=(B6-A6)-IF(B6-A61/3,1/48,0)

Format as [hh]:mm

Regards

Trevor


"lucy" wrote in message
...
I want a spread sheet that will calculate the hours and min between two
times
and when the hours worked are greater than 8 i want to subtract a half
hour.
I have =IF(((INT(B6-A6)*24)).*),(INT((B6-A6*24)-0.5),(INT((B6-A6*24)))
when B6 is the finish time and A6 is the start time
the formula i have now only shows me the hours worked and i need the exact
hours and min.