Formula for a time sheet

L

Lee

I want to make the cell show the sum of a group of cells but stop at 40. For
example, a row of 7 cells labeled Mon thru Sun. A seperate cell is progammed
to shw the sum of those cells however I want the max to be 40 and anything
over 40 be deverted to seperate cell marked for overtime.
 
T

tim m

You could use this formula to sum the hours.

=IF(SUM(A2:G2)>40,40,SUM(A2:G2))

You could then put this formula in the cell where you want to show overtime
hours if any.

=IF(SUM(A2:G2)-40>0,SUM(A2:G2)-40,0)

(In the examples I have the day headings monday, tuesday etc at the top in
Row 1 and then the data starting in column 2)
 
L

Liz

Straight time
=IF(SUM(x)>40,40,SUM(x)) where X is your cell range

Overtime
=IF(SUM(x)>40,SUM(x)-40,0)
 
Top