try
whereFormula:
=24*(SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(AA2&":"&AC2)),2)<6),--(ISNA(MATCH(ROW(INDIRECT(AA2&":"&AC2)),AE1:AE10,0))))-1)
AE1:AE10 is holidays
try
whereFormula:
=24*(SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(AA2&":"&AC2)),2)<6),--(ISNA(MATCH(ROW(INDIRECT(AA2&":"&AC2)),AE1:AE10,0))))-1)
AE1:AE10 is holidays
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks