Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to Sum<=40, sum, if 40 sum in next column
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. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to Sum<=40, sum, if 40 sum in next column
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. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to Sum<=40, sum, if 40 sum in next column
try this:
=SUMPRODUCT(--(A2:A120),--(A2:A12<40),(A2:A12)) Regards, Ryan-- -- RyGuy "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. |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to Sum<=40, sum, if 40 sum in next column
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)*2440,MOD(SUM(A1:A10),40/24),"") Both cells formatted with [h]:m best wishes -- Bernard V Liengme Microsoft Excel MVP www.stfx.ca/people/bliengme remove caps from email "justnotgettingit" wrote in message ... 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. |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to Sum<=40, sum, if 40 sum in next column
Regular hours:
=MIN(SUM(A1:A5),40) OT hours: =MAX(SUM(A1:A5)-40,0) "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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
divide column(x) by column(y) to give column(x/y) in excel? | New Users to Excel | |||
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look | Excel Discussion (Misc queries) | |||
formula : =(column A)+(column B)-(column C). Why won't it work? | Excel Discussion (Misc queries) | |||
Divide Column A by Column B multiply Column C | Excel Worksheet Functions | |||
what formula do i put for column m = column k minus column l in e. | Excel Discussion (Misc queries) |