从表A中的数据A的查找值。BENGB上的数据位于多列中

发布于 2025-02-09 03:47:07 字数 616 浏览 2 评论 0 原文

表A在单列中包含数据

”在此处输入图像描述”

beet b包含多列中的值,行

“在此处输入图像描述”

我想找出是否in in表A中存在于B表B中。如果存在该值,则应将其作为“匹配”导致。如果该值不存在,则应将其作为'无匹配

Sheet A

The Sheet A contains data in a single column

enter image description here

Sheet B contains values in multiple columns and rows

enter image description here

I would like to find out if the value in Sheet A is present in Sheet B. If the value exists, it should result as 'match'. If the value doesn't exists then should result as 'No match

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

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

发布评论

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

评论(1

野の 2025-02-16 03:47:07

您可以使用 sum() sumproduct()或 max> max() sum() sum() > row()函数

”在此处输入图像说明“

•单元格中使用的公式 b2

=--(MAX((A2='Sheet B'!$A$2:$F$7)*ROW('Sheet B'!$A$2:$F$7))>0)

上面公式返回a boolean logic ,它变成 1 & 0 使用 double Unary 。然后自定义格式为

[=1]"Match";[=0]"No Match";

•也许您可以将上述包装在中,if(),在单元 c2

=IF(MAX((A2='Sheet B'!$A$2:$F$7)*ROW('Sheet B'!$A$2:$F$7))>0,"Match","No Match")

中公式,基于您的Excel版本需要按 ctrl + shift + enter o365 & excel 2021 用户无需按 ctrl + shift + enter

You may try this way, using either SUM() or SUMPRODUCT() or MAX() with ROW() Function

enter image description here

• Formula used in cell B2

=--(MAX((A2='Sheet B'!$A$2:$F$7)*ROW('Sheet B'!$A$2:$F$7))>0)

The above formula returns a Boolean Logic which is turned into 1 & 0 using a double unary. And then custom formatted as

[=1]"Match";[=0]"No Match";

• Perhaps you can wrap the above within an IF() as well, in cell C2

=IF(MAX((A2='Sheet B'!$A$2:$F$7)*ROW('Sheet B'!$A$2:$F$7))>0,"Match","No Match")

Note: Since its an array formula, based on your excel version need to press CTRL+SHIFT+ENTER , O365 & Excel 2021 Users don't need to press CTRL+SHIFT+ENTER!

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