hi ron
thanks for your answers and patience, i really appreciate your help.
i play with the formulas
a2=IF(REGEX.FIND("stock",a1)=1,8,IF(REGEX.FIND(a1,"stock|train|rec|st|tr")>0,EVAL(REGEX.SUBSTITUTE(a1&"0","(\D+)","+")),""))
a3=IF(REGEX.FIND("cash",a1)=1,8,IF(REGEX.FIND(a1,"cash|office|pay|cs|off|py")>0,EVAL(REGEX.SUBSTITUTE(a1&"0","(\D+)","+")),""))
these 2 formulas work great: when i enter in a1 just "cash" a2 returns with
8 and same for cash. thats what i want and i can add extra words if the shift
is not 8hrs eg: 3cash 2office 2pay. up to this point everything is fine
except when a1 has both a2 and a3 depts eg: a1 is " 3cash 2office 2stock",
both a2 and a3 return with 8. its there any way can separate them. i need a2
to return with 2 and a3 to return with 5?
thanks