excel-多列搜索多个值搜索或一个具有多个值的列
我有7个标准= TMO-1至TMO-7,
我有两个方案可以搜索。
我要么有一个具有TMO-6,TMO-201,TMO-67,...等的Excel(有些值有很多值)
,要么我已经将单元格拆了起来,因此这些值都在单个单元格中,以便[ TMO-6] [TMO-2012] [TMO-67]等
我尝试了两个方程。对于第一个(首选解决方案),我尝试过:
=IF(IFERROR(SEARCH("TMO-1",AB8),0) > 0, "TMO-1",IF(IFERROR(SEARCH("TMO-2",AB8),0) > 0, "TMO-2", "false"))
它的问题是找到以TMO-1开头的任何东西,因此,如果TMO-12在单元格中,则将显示为true。
对于选项2,我尝试了:
=IF(AB9:AR9=TMO-1, TMO-1, IF(AB9:AR9=TMO-2, TMO-2, IF(AB9:AR9=TMO-3, TMO-3,IF(AB9:AR9=TMO-4, TMO-4, IF(AB9:AR9=TMO-5, TMO-5, IF(AB9:AR9=TMO-6, TMO-6, IF(AB9:AR9=TMO-7, TMO-7, "N/A")))))))
我遇到了错误#spill
任何想法吗?
I have 7 criteria = TMO-1 through to TMO-7
I have two scenarios to search from.
i have either got a single excel with TMO-6, TMO-201, TMO-67,... etc (some have a lot of values)
or i have split the cell up so the values are all in individual cells such that [TMO-6][TMO-201][TMO-67] etc
I have tried two equations from each. for the first one (the preferred solution) i have tried:
=IF(IFERROR(SEARCH("TMO-1",AB8),0) > 0, "TMO-1",IF(IFERROR(SEARCH("TMO-2",AB8),0) > 0, "TMO-2", "false"))
the problem with that is it finds anything that starts with TMO-1, so will show true if TMO-12 is in the cell.
For option 2 i tried:
=IF(AB9:AR9=TMO-1, TMO-1, IF(AB9:AR9=TMO-2, TMO-2, IF(AB9:AR9=TMO-3, TMO-3,IF(AB9:AR9=TMO-4, TMO-4, IF(AB9:AR9=TMO-5, TMO-5, IF(AB9:AR9=TMO-6, TMO-6, IF(AB9:AR9=TMO-7, TMO-7, "N/A")))))))
and i get the error #spill
any ideas ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设:
#spill
错误);ab8
针对ab9:ar9
);tmo -
配示;想到的第一件事就是将逗号分隔的数据保留在
ab8
中,并使用一个简单的技巧将定界器与序列相连:为了实践,请尝试:
b1
中的公式:其他选项:
或,使用Insider beta-finctions:
Assuming:
#SPILL
error);AB8
againstAB9:AR9
);TMO-
;First thing that came to mind is to just keep the comma-seperated data in
AB8
and use a simple trick to concatenate the delimiters with the sequence:To put that in practice, try:
Formula in
B1
:Other options:
Or, using the insider BETA-functions: