Hi,
I'm trying to create 2 calculations at the bottom of my form for totalhours and totalunsocialhours.
1. The first is totalhours, the formula I've tried only works if all the 6 fields are filled out which won't always be the case. How do I allow only if it's filled in?
${hoursworked1}+${hoursworked2}+${hoursworked3}+${hoursworked4}+${hoursworked5}+${hoursworked6}
2. The second is much more complicated. There are 3 time periods to choose from in a drop down list 12-8am, 8-6pm, 6-12pm.
If either 12-8am or 6-12pm I want to add the hours.
if(${timeperiod1} 12-8am or 6-12pm then add {hoursworked1}
if(${timeperiod2} 12-8am or 6-12pm then add {hoursworked2}
if(${timeperiod3} 12-8am or 6-12pm then add {hoursworked3}
if(${timeperiod4} 12-8am or 6-12pm then add {hoursworked4}
if(${timeperiod5} 12-8am or 6-12pm then add {hoursworked5}
if(${timeperiod6} 12-8am or 6-12pm then add {hoursworked6}
But again all 6 may not be filled out, there may be any between 1 up to 6.
I'd appreciate any help with this.
Rachel