如何将匹配的字符串相加,然后将相应的列总数相加?

How to add up matched strings and then add up corresponding column totals?

我有一个项目列表以及每个项目的团队成员。

我已经添加了团队 Count projects...

理想结果

如何计算每个团队成员的项目周数?

=ARRAYFORMULA({QUERY(QUERY(SPLIT(TRANSPOSE(SPLIT(TRIM(QUERY(TRANSPOSE(QUERY(TRANSPOSE(
 IF(B2:F4<>"", "♦"&B2:F4&"♠"&B5:F5, )),,999^99)),,999^99)), "♦")), "♠"), 
 "select Col1,count(Col1) group by Col1", 0), "offset 1", 0),
 QUERY(QUERY(UNIQUE(SPLIT(TRANSPOSE(SPLIT(TRIM(QUERY(TRANSPOSE(QUERY(TRANSPOSE(
 IF(B2:F4<>"", "♦"&B2:F4&"♠"&B5:F5, )),,999^99)),,999^99)), "♦")), "♠")), 
 "select sum(Col2) group by Col1", 0), "offset 1", 0)})