Excel Textjoin过滤的结果来自不同的表格
我有一个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.
Edit: removed questions about Excel versions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
= textJoin(“;”,1,rept(list_state_6.10.2022!$ s:$ s,$ s,list_state_6.10.2022!$ a:$ a = $ a2))
这将在较旧的Excel版本上使用。
rept
在list_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 inList_State_6.10.2022!$S:$S
where the value inList_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.