-1

I am working on a task planner for my team and to derive end date for any task, I would need to pass the public holidays as well the team members planned holidays. Public holidays are available in a table and personal holidays in another.

While public holidays will be common for all, planned holidays will be for individuals for which i can use the filter function and identify the same.

Now, i need to provide the list of public holidays and list of planned individual holidays (filtered) to the network function.

Appreciate if you can share any ideas on how to achieve this by formulas only. No VBA.

I thought of converting the list of public holidays to an array and appending the planned holidays to that array but didn't find any formula to achieve the same.

Any help will be great.

Thanks.

Stay safe, stay healthy

4

1 回答 1

0

CHOOSE您可以使用函数连接这两个假期范围。生成的数组公式将是:

=NETWORKDAYS(B2,C2,IFNA(CHOOSE({1;2},$G$2:$G$13,($J$2:$J$10)*(A2=$I$2:$I$10)),0))

或者,如果您在公式中使用分号作为参数分隔符:

=NETWORKDAYS(B2;C2;IFNA(CHOOSE({1,2};$G$2:$G$13;($J$2:$J$10)*(A2=$I$2:$I$10));0))

ctrl+ shift+确认编辑后的数组公式enter

在此处输入图像描述

于 2020-09-16T09:34:38.003 回答