[英]Across multiple rows, for each weekday in-between two dates, calculate a value, then sum by week and group by team member's name
I'm working on a team workload tracker to prevent my coworker from being overloaded with work and help them prioritize.我正在开发一个团队工作量跟踪器,以防止我的同事工作超负荷并帮助他们确定优先级。
For this task, I must use Google Sheets.对于这项任务,我必须使用 Google 表格。
Explanation:解释:
Peter, John and Harry are all team members.彼得、约翰和哈利都是团队成员。 They handle user requests all day every day.他们每天都在处理用户请求。 When they receive a request, they must enter into a table that looks like the "sample data" tab:当他们收到请求时,他们必须进入一个类似于“示例数据”选项卡的表格:
End goal:最终目标:
This is my end goal. 这是我的最终目标。 I would like to have one row per team member, and one column per week of the year that shows this team member's total weekly workload across all the requests he's handled that week.我希望每个团队成员有一行,一年中每周有一个列,显示该团队成员在该周处理的所有请求中的每周总工作量。
Notes:笔记:
What I've done:我做了什么:
Any help would be greatly appreciated!任何帮助将不胜感激!
use:利用:
=ARRAYFORMULA(QUERY(IFERROR(SPLIT(FLATTEN(IF(SEQUENCE(1; MAX(E2:E10-D2:D10))<=E2:E10-D2:D10+1;
A2:A10&"×"&WEEKNUM(D2:D10+SEQUENCE(1; MAX(E2:E10-D2:D10); 0); 2)&"×"&
INDEX(SORT(QUERY(QUERY(SPLIT(FLATTEN(IF(SEQUENCE(1; MAX(E2:E10-D2:D10))<=E2:E10-D2:D10+1;
WEEKNUM(D2:D10+SEQUENCE(1; MAX(E2:E10-D2:D10); 0); 2)&"×"&C2:C10&TEXT(D2:D10+SEQUENCE(1;
MAX(E2:E10-D2:D10); 0); "×ddd×")&ROW(D2:D10); )); "×");
"where not Col3 matches '^$|sam.|dim.|53'"; );
"select Col2/count(Col1),Col4 group by Col2,Col4 label Col2/count(Col1)''"); 2; 1);; 1)&
TEXT(D2:D10+SEQUENCE(1; MAX(E2:E10-D2:D10); 0); "×ddd×"); )); "×"));
"select Col1,sum(Col3) where not Col1 matches '53|^$'
and not Col4 matches 'sam.|dim.' group by Col1 pivot Col2"))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.