在多列中搜索一个值,然后从A列返回值

发布于 2025-01-20 19:51:12 字数 1381 浏览 2 评论 0原文

示例:

ABCDEF
JONAS16111621
JOAQUIN27121722
WILLIAM38132323
MARK49141924
Stuart510152025

搜索值示例示例:

19

预期返回:

Mark

公式:< br> https://stackoverflow.com/a/555119579/11462274

=QUERY(Clients!A1:F, "select A where B="&B1&"
                              or C="&B1&"
                              or D="&B1&"
                              or E="&B1&"
                              or F="&B1&"", 1)

,但结果是:

Jonas
Stuart

为什么IS:为什么IS IS IS IS IS JONAS 在没有值19中返回 1 中?

一个附加信息:

如果我有bcc的列,这仍然是指示的方法吗?我问,因为大量的线条,我必须为每列中的每一列编写一个。

Sheet Example:

ABCDEF
Jonas16111621
Joaquin27121722
William38131823
Mark49141924
Stuart510152025

Search value example:

19

Expected Return:

Mark

Formula indicated:
https://stackoverflow.com/a/55119579/11462274

=QUERY(Clients!A1:F, "select A where B="&B1&"
                              or C="&B1&"
                              or D="&B1&"
                              or E="&B1&"
                              or F="&B1&"", 1)

But the result is:

Jonas
Stuart

Why is Jonas returning when there is no value 19 in row 1?

An additional info:

If I have Columns from B to CC with values, is this still the indicated method? I ask because of the immense amount of lines I would have to write one by one for each of these columns.

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

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

发布评论

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

评论(2

瘫痪情歌 2025-01-27 19:51:12

尝试:

=INDEX(TEXTJOIN(", ", 1, IF(B1:F5=I1, A1:A5, )))

在此输入图像描述

try:

=INDEX(TEXTJOIN(", ", 1, IF(B1:F5=I1, A1:A5, )))

enter image description here

沫雨熙 2025-01-27 19:51:12

尝试使用index(match())公式。

=INDEX(A1:A5,MATCH(19,B4:F4,0))

Try using an INDEX(MATCH()) formula.

=INDEX(A1:A5,MATCH(19,B4:F4,0))

enter image description here

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