Excel Textjoin过滤的结果来自不同的表格

发布于 2025-02-06 07:47:43 字数 782 浏览 0 评论 0原文

我有一个TAB,List_state_6.10.2022,看起来像这样:

     A                    G         ...  J          ...  S
1    Device    Org   ...  component ...  Display    ...  Comp+Display
     ABC123    co    ...  part1     ...  Not Found  ...  part1+Not Found
     ABC234    co    ...   part2    ...  ok         ...  part2+ok
     ABC123    co    ...   part3    ...  ok         ...  part3+ok

我有一个FinalResult选项卡,它试图在上面此选项卡中进行多个查找以查找状态,并将每个设备编号的每个设备编号附加到同一单元格中的每个单元格中。

W2应该显示:part1+找不到; part3+ok

我在以下主题中为Office365提供了工作解决方案,但是我使用Excel 2016,需要该版本的解决方案。

在此处输入链接说明

编辑:删除了有关Excel版本的问题。

I have a tab, List_State_6.10.2022 that looks like this:

     A                    G         ...  J          ...  S
1    Device    Org   ...  component ...  Display    ...  Comp+Display
     ABC123    co    ...  part1     ...  Not Found  ...  part1+Not Found
     ABC234    co    ...   part2    ...  ok         ...  part2+ok
     ABC123    co    ...   part3    ...  ok         ...  part3+ok

I have a FinalResult tab that is trying to do multiple lookups in this tab above to find states, and appending each one found for same device number into the same cell for w2.

w2 should show: part1+Not Found;part3+ok

I got a working solution for Office365 in the following topic, however I'm using Excel 2016 and need a solution for that version.

enter link description here

Edit: removed questions about Excel versions.

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

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

发布评论

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

评论(1

倒带 2025-02-13 07:47:43

= textJoin(“;”,1,rept(list_state_6.10.2022!$ s:$ s,$ s,list_state_6.10.2022!$ a:$ a = $ a2))

这将在较旧的Excel版本上使用。

reptlist_state_6.10.2022!$ s中查找每个值,其中$ s其中list> list_state_6.10.2022!$ a:$ a中的值等于$ a2的值(作为“最终恢复”选项卡中的设备)。如果不相等,它将给出空白的值。 TextJoin删除空白值并添加定界符,以防有多个返回。

PS
不确定是否需要使用ctrl+Shift+Enter输入该公式。
无法测试。

=TEXTJOIN(";",1,REPT(List_State_6.10.2022!$S:$S,List_State_6.10.2022!$A:$A=$A2))

This would work on older Excel version.

The REPT looks for each value in List_State_6.10.2022!$S:$S where the value in List_State_6.10.2022!$A:$A equals the value of $A2 (being the Device in the FinalResult tab). If it doesn't equal it will give a blank value. Textjoin removes the blank values and adds the delimiter in case there are multiple returns.

PS
Unsure if the formula requires being entered with ctrl+shift+enter.
unable to test this.

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