简体   繁体   English

查找 MULTIPLE 值并在满足至少一个条件时返回特定单元格

[英]Lookup for MULTIPLE values and return a specific cell if AT LEAST ONE criteria is met

I am trying to find a specific value (from multiple options) in an array (Please, see the picture below).我试图在一个数组中找到一个特定的值(从多个选项中)(请看下图)。 I tried several formulas, playing with OR, HLOOKUP, INDEX and MATCH, but I couldn't find a working formula yet.我尝试了几个公式,使用 OR、HLOOKUP、INDEX 和 MATCH,但我还没有找到有效的公式。 It is all good if I look for a single value, but as soon as I add multiple criteria I get #VALUE or #N/A, or similar errors.如果我寻找单个值,这一切都很好,但是一旦我添加了多个条件,我就会得到 #VALUE 或 #N/A 或类似的错误。

Could you be so kind to help me out with this matter?你能帮我解决这个问题吗?

MyData:我的数据:

A一种 B C C D D E F F G G
Borehole钻孔 Week1第 1 周 Week2第二周 Week3第三周 Week4第四周 Wanted output:想要的输出:
ML 110 ML 110 06/10/2021 06/10/2021 W 01/11 W 01/11 ML 110 ML 110
ML 111 ML 111 W 18/10 W 18/10 ML 111 ML 111
ML 114 ML 114 W 25/10 W 25/10 ML 114 ML 114
ML 117 ML 117 10/10/2021 2021 年 10 月 10 日 11/11/2021 11/11/2021 W 06/12 W 06/12
ML 119 ML 119 W 08/11 W 08/11 ML 119 ML 119
ML 120毫升 120 25/10/2021 25/10/2021 W 01/11 W 01/11 ML 120毫升 120
ML 129 ML 129 19/09/2021 19/09/2021 22/10/2021 22/10/2021 05/11/2021 05/11/2021 W 06/12 W 06/12
I一世 J J K L M
Lookup Values:查找值: W 18/10 W 18/10 W 25/10 W 25/10 W 01/11 W 01/11 W 08/11 W 08/11

Excel setting and question explained Excel设置和问题说明

We can use MATCH to test if it exists in the lookup row:我们可以使用 MATCH 来测试它是否存在于查找行中:

=IF(OR(ISNUMBER(MATCH(B2:E2,$J$1:$M$1,0))),A2,"")

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM