在单元格中找到一个8位库存号码

发布于 2025-01-26 04:00:07 字数 682 浏览 2 评论 0 原文

我希望创建一个公式,使我能够为8位数字搜索一组数据。我附上了测试表。

在B列中是我需要在一组数据中找到的库存号码。

在E中,E是要检查的完整列表,但是,在任何一个单元格中,您都可以拥有几个不同的8位库存编号。

在我的测试表中,我发现Vlookup仅搜索第一个库存号码,而不是该单元格中的所有库存号码。我尝试了一个索引匹配公式与转孔拆分相结合,但是这些都没有使我能够正确搜索我的数据集。

= arrayformula(vlookup(b2:b,$ e $ 2:$ e,1,0))

然后

= index($ e $ 2:$ e $ e $ 1139拆分($ e $ 2:$ e,“;”)))))))

数据可以用空格或“”或“;”在单元格内分开。

您应该能够使用此链接来制作我的测试表的副本:

希望您能提供帮助。

I am looking to create a formula that enables me to search a set of data for an 8 digit number. I have attached my testing sheet.

In column B is the stock numbers I need to find within a set of data.

In column E is the full list to be checked against, however, within any one cell, you can have several different 8 digit stock numbers.

In my test sheet, I have found that a vlookup only searches for the first stock number and not all the stock numbers within that cell. I have attempted an index match formula combined with a transpose split however none of these has enabled me to properly search my data set.

=ARRAYFORMULA(VLOOKUP(B2:B,$E$2:$E,1,0))

then

=INDEX($E$2:$E$1139,(MATCH(B2,TRANSPOSE(SPLIT($E$2:$E,";, ")))))

The data can be separated within the cell with either spaces or "," or ";"

You should be able to make a copy of my test sheet using this link:

https://docs.google.com/spreadsheets/d/1UckPZw6tWBw0H13p79N94IqV2EFyfhYNyEhmLecr3XM/copy#gid=55962883

Hope you can help.

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

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

发布评论

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

评论(1

伊面 2025-02-02 04:00:07

尝试:

=FILTER(E:E, REGEXMATCH(E:E&"", TEXTJOIN("|", 1, B2:B)))


更新:

获取true/false用途:

=INDEX(REGEXMATCH(E2:E&"", TEXTJOIN("|", 1, B2:B)))

或者如果要返回匹配或n/a用途:

=INDEX(IF(REGEXMATCH(E2:E&"", TEXTJOIN("|", 1, B2:B)), E2:E, ISNA()))

“在此处输入图像说明”

try:

=FILTER(E:E, REGEXMATCH(E:E&"", TEXTJOIN("|", 1, B2:B)))

enter image description here


update:

to get true/false use:

=INDEX(REGEXMATCH(E2:E&"", TEXTJOIN("|", 1, B2:B)))

or if you want to return match or N/A use:

=INDEX(IF(REGEXMATCH(E2:E&"", TEXTJOIN("|", 1, B2:B)), E2:E, ISNA()))

enter image description here

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