Google表格公式在大多数时间都在特定位置和轮班工作(具有多个标准的索引/模式),该公式在大多数小时内工作

发布于 2025-01-22 07:26:20 字数 448 浏览 2 评论 0 原文

在Google表中,我需要找出基于时间卡数据在给定位置的给定轮班的50%以上的员工工作(Col G:J)。在附带的Google表中,我需要C列中的公式,该公式返回匹配员工的名称使用A& b对于标准,然后列D和E应该自动算力。

我以前使用了带有索引/if/if/if/sode/match的arrayformula(在Cell C15中的示例),但这只能以最大的变化返回员工,并且无法通过标准区分。

提前致谢!

In Google Sheets, I need to find out which employee works more than 50% of the hours for a given shift at a given location based on timecard data (Table in col G:J). In the attached google sheet I need a formula in Column C that returns the name of the matching employee useing Column A & B for criteria, then column D and E should auto calcuate.

https://docs.google.com/spreadsheets/d/1HE90e1hVvsEIiFbNdb3sQ042LHMZhxyCno72eZMA79k/edit?usp=sharing

I was previously using an ArrayFormula with INDEX/IF/MODE/MATCH (example in cell C15) but that could only return the employee with the most shifts and was not able to differentiate by criteria.

Thanks in Advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暖阳 2025-01-29 07:26:20

删除C2:D7中的所有内容并在C2:

=INDEX(IFNA(VLOOKUP(A2:A6&B2:B6, SORT(QUERY({H2:H&J2:J, G2:G, I2:I}, 
 "select Col1,Col2,count(Col1),sum(Col3) group by Col1,Col2"), 3, 0), {2, 4}, 0)))

delete everything in C2:D7 and use this in C2:

=INDEX(IFNA(VLOOKUP(A2:A6&B2:B6, SORT(QUERY({H2:H&J2:J, G2:G, I2:I}, 
 "select Col1,Col2,count(Col1),sum(Col3) group by Col1,Col2"), 3, 0), {2, 4}, 0)))

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文