在多列中搜索一个值,然后从A列返回值
示例:
A | B | C | D | E | F |
---|---|---|---|---|---|
JONAS | 1 | 6 | 11 | 16 | 21 |
JOAQUIN | 2 | 7 | 12 | 17 | 22 |
WILLIAM | 3 | 8 | 13 | 23 | 23 |
MARK | 4 | 9 | 14 | 19 | 24 |
Stuart | 5 | 10 | 15 | 20 | 25 |
搜索值示例示例:
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 在没有值
1 中?19
中返回
一个附加信息:
如果我有b
到cc
的列,这仍然是指示的方法吗?我问,因为大量的线条,我必须为每列中的每一列编写一个。
Sheet Example:
A | B | C | D | E | F |
---|---|---|---|---|---|
Jonas | 1 | 6 | 11 | 16 | 21 |
Joaquin | 2 | 7 | 12 | 17 | 22 |
William | 3 | 8 | 13 | 18 | 23 |
Mark | 4 | 9 | 14 | 19 | 24 |
Stuart | 5 | 10 | 15 | 20 | 25 |
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试:
try:
尝试使用
index(match())
公式。Try using an
INDEX(MATCH())
formula.