How to Sum<=40, sum, if >40 sum in next column

  • Thread starter justnotgettingit
  • Start date
J

justnotgettingit

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.
 
L

Luke M

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.
 
J

justnotgettingit

Thanks Luke, that worked.

Luke M said:
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.
 
B

Bernard Liengme

With hours:Min in A1:A10
The total up to 40: =MIN(40/24,SUM(A1:A10)*24)
The excess over 40: =IF(SUM(A1:A10)*24>40,MOD(SUM(A1:A10),40/24),"")
Both cells formatted with [h]:m
best wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sum Values from different column 1
IF, OR and SUM function 3
sum product if 2
Time Sum in Excel 1
SUM question 4
SUM - IF - AND 7
Unmoveable SUM 4
if then formula for total time ;overtime hours versus regular 1

Top