View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
justnotgettingit justnotgettingit is offline
external usenet poster
 
Posts: 2
Default How to Sum<=40, sum, if 40 sum in next column

Thanks Luke, that worked.

"Luke M" wrote:

You will need to use two formulas.
First column formula:
=if(sum(a1:a5)<=40,sum(a1:a5),40)
Second column:
=if(sum(a1:a5)40,sum(a1:a5)-40,"")

The second column will be blank if there is no overtime.
--
Best Regards,

Luke M


"justnotgettingit" wrote:

I am trying to sum a column of hours and minutes to calculate straight hours
and overtime. If the sum is <=40, then sum; otherwise move excess to the
next column. What is the foluma I should use to do this. I'm stumped.