S
sonar
Hi
Thanks for the tip.
Is there a way that I can use =Max(formula,0) with an if statement? M
formula to workout additional hours are as follows:
=IF(((HOUR(J14)*60+MINUTE(J14)-HOUR(K14)*60-MINUTE(K14))/60+(HOUR(Q14)*60+MINUTE(Q14)-HOUR(R14)*60-MINUTE(R14))/60+(HOUR(X14)*60+MINUTE(X14)-HOUR(Y14)*60-MINUTE(Y14))/60+(HOUR(AE14)*60+MINUTE(AE14)-HOUR(AF14)*60-MINUTE(AF14))/60+(HOUR(AL14)*60+MINUTE(AL14)-HOUR(AM14)*60-MINUTE(AM14))/60+(HOUR(AS14)*60+MINUTE(AS14)-HOUR(AT14)*60-MINUTE(AT14))/60+(HOUR(AZ14)*60+MINUTE(AZ14)-HOUR(BA14)*60-MINUTE(BA14))/60)<BG14,((HOUR(J14)*60+MINUTE(J14)-HOUR(K14)*60-MINUTE(K14))/60+(HOUR(Q14)*60+MINUTE(Q14)-HOUR(R14)*60-MINUTE(R14))/60+(HOUR(X14)*60+MINUTE(X14)-HOUR(Y14)*60-MINUTE(Y14))/60+(HOUR(AE14)*60+MINUTE(AE14)-HOUR(AF14)*60-MINUTE(AF14))/60+(HOUR(AL14)*60+MINUTE(AL14)-HOUR(AM14)*60-MINUTE(AM14))/60+(HOUR(AS14)*60+MINUTE(AS14)-HOUR(AT14)*60-MINUTE(AT14))/60+(HOUR(AZ14)*60+MINUTE(AZ14)-HOUR(BA14)*60-MINUTE(BA14))/60)-E14,"12:00")
I know, I know, this is long...........
My problem is that I am siting with a staff register where I have t
split the Total times as follows:
to brief:
12hrs per day = normal time
12hrs > per day = overtime
28hrs per week = normal time
28hrs > and <40hrs per week = additional hours
40hrs> per week = overtime
The formula works, but only if the person has worked a base of 28hr
for the week, if its less, it gives me a negative figure.
hence the reason I would like to get rid of the negative figures.
can anyone help
Thanks for the tip.
Is there a way that I can use =Max(formula,0) with an if statement? M
formula to workout additional hours are as follows:
=IF(((HOUR(J14)*60+MINUTE(J14)-HOUR(K14)*60-MINUTE(K14))/60+(HOUR(Q14)*60+MINUTE(Q14)-HOUR(R14)*60-MINUTE(R14))/60+(HOUR(X14)*60+MINUTE(X14)-HOUR(Y14)*60-MINUTE(Y14))/60+(HOUR(AE14)*60+MINUTE(AE14)-HOUR(AF14)*60-MINUTE(AF14))/60+(HOUR(AL14)*60+MINUTE(AL14)-HOUR(AM14)*60-MINUTE(AM14))/60+(HOUR(AS14)*60+MINUTE(AS14)-HOUR(AT14)*60-MINUTE(AT14))/60+(HOUR(AZ14)*60+MINUTE(AZ14)-HOUR(BA14)*60-MINUTE(BA14))/60)<BG14,((HOUR(J14)*60+MINUTE(J14)-HOUR(K14)*60-MINUTE(K14))/60+(HOUR(Q14)*60+MINUTE(Q14)-HOUR(R14)*60-MINUTE(R14))/60+(HOUR(X14)*60+MINUTE(X14)-HOUR(Y14)*60-MINUTE(Y14))/60+(HOUR(AE14)*60+MINUTE(AE14)-HOUR(AF14)*60-MINUTE(AF14))/60+(HOUR(AL14)*60+MINUTE(AL14)-HOUR(AM14)*60-MINUTE(AM14))/60+(HOUR(AS14)*60+MINUTE(AS14)-HOUR(AT14)*60-MINUTE(AT14))/60+(HOUR(AZ14)*60+MINUTE(AZ14)-HOUR(BA14)*60-MINUTE(BA14))/60)-E14,"12:00")
I know, I know, this is long...........
My problem is that I am siting with a staff register where I have t
split the Total times as follows:
to brief:
12hrs per day = normal time
12hrs > per day = overtime
28hrs per week = normal time
28hrs > and <40hrs per week = additional hours
40hrs> per week = overtime
The formula works, but only if the person has worked a base of 28hr
for the week, if its less, it gives me a negative figure.
hence the reason I would like to get rid of the negative figures.
can anyone help