R
richardgsmith
I am trying to create an expression to calculate annual leave entitlements
for staff, based on the following premises.
1) If the staff member has completed less than (but not equal to) five years
service, the annual leave entitlement (a) will be
a = mh
Where m is the entitlement for less than five years service and h is the
number of hours worked.
2)If the staff member has completed more than (or equal to) 5 and less than
(but not equal to) 10 years service, the annual leave entitlement (b) will be:
b = nh
Where n is the entitlement for between 5 and 10 years service and h is the
number of hours worked.
3)If the staff member has completed more than 10 years service, the annual
leave entitlement (c) will be:
c = ph
Where p is the entitlement for more than 10 years service and h is the
number of hours worked.
I have a field labelled “Start Dateâ€, which I was hoping to use to calculate
the number of years service. The main problem I am having is finding a
function that will cope with the three variables/criteria as detailed above.
(If there were only two variables/criteria, I was thinking of using the IIf
function.)
Does anyone have any ideas that do not involve VBA?
Many thanks
Richard
for staff, based on the following premises.
1) If the staff member has completed less than (but not equal to) five years
service, the annual leave entitlement (a) will be
a = mh
Where m is the entitlement for less than five years service and h is the
number of hours worked.
2)If the staff member has completed more than (or equal to) 5 and less than
(but not equal to) 10 years service, the annual leave entitlement (b) will be:
b = nh
Where n is the entitlement for between 5 and 10 years service and h is the
number of hours worked.
3)If the staff member has completed more than 10 years service, the annual
leave entitlement (c) will be:
c = ph
Where p is the entitlement for more than 10 years service and h is the
number of hours worked.
I have a field labelled “Start Dateâ€, which I was hoping to use to calculate
the number of years service. The main problem I am having is finding a
function that will cope with the three variables/criteria as detailed above.
(If there were only two variables/criteria, I was thinking of using the IIf
function.)
Does anyone have any ideas that do not involve VBA?
Many thanks
Richard