时间表的动态自定义过滤表

发布于 2025-01-21 14:06:26 字数 757 浏览 1 评论 0原文

我有几个有关在Google表中进行分类和组织时间表的问题。 我发现了一些工作,以获取我想要做的大部分工作,但希望对使其正常工作的方式获得一些投入,也许还有一些想法。

问题 - 我有一个可以为所有员工的工作时间表生成的CSV文件。与之合作并查看不是很稳定。我正在尝试从电子表格中获取数据,并按日常,部门和名称进行排序。

  1. 一些人有分裂的变化,这会导致第二行,其名称应该是该名称的空白单元。 (围绕围绕一个单元格为空白的另一个列表,它将复制上述数据的数据。)
  2. 班次的时间和部门在同一单元格中,需要分开(在每个部门的每个单元格上工作,并显示匹配的名称,并且随着时间的流逝,将所有第12个字符的剩余文本倒出),
  3. 最终将其转换为首先,然后首先是最后一个不是“最后,第一个”。除了能够拥有自定义/划痕的名称而不是Nunez之外,伊丽莎白还将显示Eli Nunez。这对部门来说很好。 (解决方案类似于部门,只是搜索每个名称并使用“ = if(isnumber(search ...”)显示匹配项,

理想情况下,这将使用动态过滤器/枢轴表/动态阵列进行此操作。 大量代码会自动填充和

每个单元格中的

排序=共享“ rel =“ nofollow noreferrer”>表示例
“全周”表是我开始的,“按日按”表是我想要的输出/最终目标。

希望这是足够的信息,很抱歉,如果这是询问/发布此问题的错误场所。


Thank you
- Alan

谢谢您的帮助。我仍然在将其实施到最终时间表表中遇到一些麻烦。

I have several questions about sorting and organizing a schedule in google sheets.
I have found some work arounds to get most of what I want done but was hoping to get some input and maybe some ideas on ways to make it work better.

Problem - I have a CSV file I can generate for the work schedule of all the employees. It is not very coinvent to work with and look at. I am trying to take the data from the spreadsheet and sort it by day, department and Name.

  1. Some of the people have split shifts which causes a second row with a blank cell where the name should be. (work around create another list that if the cell is blank it duplicate the data from the one above.)
  2. Time and department for the shift are in the same cell and need to be separated (work around search every cell for all departments and display the name that matches and for the time take all the text left of the 12th character)
  3. Lastly it would be nice to reverse the name so it is First then Last not "Last, First". As well as being able to have custom/nick names for example instead of Nunez, Elizabeth It would display Eli Nunez. This goes for the department was well. (Work around is similar to the department and just searching for every name and displaying the match with "=IF(ISNUMBER(SEARCH..." )

Ideally this would be done with a dynamic filter/pivot table/dynamic array that way there's not a lot of code in each cell and would automatically fill and sort.

I can also provide all my work around code if needed.

Sheet Example
"Full Week" sheet is what I am starting with and "Sorted by Day" sheet is the output/end goal I am looking for.

Hopefully this is enough information and sorry if this is the wrong place to ask/ post this.

Thank you
- Alan


Thank you for the help. I am still having a bit of trouble implementing it into my final schedule sheet.
Here is the my final sheet with all of my workaround code.

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

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

发布评论

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

评论(1

摇划花蜜的午后 2025-01-28 14:06:26

尝试:

=INDEX(IFERROR(REGEXREPLACE(TRANSPOSE(SPLIT(TRIM(FLATTEN(QUERY(QUERY(SUBSTITUTE(
 TRIM(SPLIT(FLATTEN(QUERY(TRANSPOSE(REGEXREPLACE(REGEXREPLACE(TRIM(QUERY(SPLIT(FLATTEN(
 QUERY(TRANSPOSE(QUERY(SPLIT(FLATTEN(IF('Full Week'!B2:20="",,'Full Week'!B1:1&"♣"&
 TEXT('Full Week'!B1:1, "emmdd\♠ddd\♦")&"♣"®EXREPLACE(VLOOKUP(ROW('Full Week'!A2:A20), 
 IF('Full Week'!A2:A20<>"", {ROW('Full Week'!A2:A20), 'Full Week'!A2:A20}), 2, 1), 
 "(.*),(.*)", "♥$2 $1")&"♣♥"&SUBSTITUTE('Full Week'!B2:20, CHAR(10), "♣"))), "♣"), 
 "select Col2,Col5,Col3,Col4 
  where not Col4 matches '^♥ 

在此处输入图像描述“

and Col1 >= date '"&TEXT(TODAY()+1, "e-m-d")&"' and Col1 <= date '"&TEXT(TODAY()+4, "e-m-d")&"'")),,9^9)), "♦"), "select max(Col2) group by Col2 pivot Col1")), "^♥", "♂ ♥"), "^$", " ♥ ♥ ♥")&" ♥"),,9^9)), "♥")), " ", "♀"), "offset 1", 0),,9^9))), " ")), "♀|♂", " ")))

在此处输入图像描述“

try:

=INDEX(IFERROR(REGEXREPLACE(TRANSPOSE(SPLIT(TRIM(FLATTEN(QUERY(QUERY(SUBSTITUTE(
 TRIM(SPLIT(FLATTEN(QUERY(TRANSPOSE(REGEXREPLACE(REGEXREPLACE(TRIM(QUERY(SPLIT(FLATTEN(
 QUERY(TRANSPOSE(QUERY(SPLIT(FLATTEN(IF('Full Week'!B2:20="",,'Full Week'!B1:1&"♣"&
 TEXT('Full Week'!B1:1, "emmdd\♠ddd\♦")&"♣"®EXREPLACE(VLOOKUP(ROW('Full Week'!A2:A20), 
 IF('Full Week'!A2:A20<>"", {ROW('Full Week'!A2:A20), 'Full Week'!A2:A20}), 2, 1), 
 "(.*),(.*)", "♥$2 $1")&"♣♥"&SUBSTITUTE('Full Week'!B2:20, CHAR(10), "♣"))), "♣"), 
 "select Col2,Col5,Col3,Col4 
  where not Col4 matches '^♥ 

enter image description here

domo sheet

and Col1 >= date '"&TEXT(TODAY()+1, "e-m-d")&"' and Col1 <= date '"&TEXT(TODAY()+4, "e-m-d")&"'")),,9^9)), "♦"), "select max(Col2) group by Col2 pivot Col1")), "^♥", "♂ ♥"), "^
quot;, " ♥ ♥ ♥")&" ♥"),,9^9)), "♥")), " ", "♀"), 
 "offset 1", 0),,9^9))), " ")), "♀|♂", " ")))

enter image description here

domo sheet

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