I'm trying to write a function to do the following:
if total hours are >=40 then
only total = 40
but
if there are 38 then total = 38
=IF(SUM(J338:J365)>=40,40),(SUM(J338:J365))
Hours
10 10 10 10
Total 40
Hours
5 5 5 5
Total 20
I can get it to work for one or the other, not both.
Thanks.
Brenda
if total hours are >=40 then
only total = 40
but
if there are 38 then total = 38
=IF(SUM(J338:J365)>=40,40),(SUM(J338:J365))
Hours
10 10 10 10
Total 40
Hours
5 5 5 5
Total 20
I can get it to work for one or the other, not both.
Thanks.
Brenda