the following formula is totally working as a normal formula. As soon as I try to do it as a ArrayFormula all cells stay empty.
=ARRAYFORMULA(IF(AND($L2:$L="yes",ISNUMBER($O2:$O)),WORKDAY.INTL(IF(ISNUMBER($Z2:$Z),$Z2:$Z,IF(ISNUMBER($Y2:$Y),$Y2:$Y,"")),($O2:$O*(IF($A2:$A<>"",IF($P2:$P="day",1,IF($P2:$P="week",5,IF($P2:$P="month",20,0))),"")))),IF(AND($P2:$P<>"",ISNUMBER($O2:$O)),IF(ISNUMBER($Z2:$Z),$Z2:$Z,IF(ISNUMBER($Y2:$Y),$Y2:$Y,""))+$O2:$O,"")))
What am I doing wrong? Thank you.