简体   繁体   English

如果 table_2 任何地方包含来自 table_1 的 X、Y、Z 值,如何检查 function?

[英]How to check with function if table_2 anywhere contains X,Y,Z values from table_1?

There are two tables and both contain values XYZ.有两个表,都包含值 XYZ。 How to check if second table contains exact coordinates in all values.如何检查第二个表是否包含所有值的精确坐标。

`First Table:`
111, 222, 333
122, 123, 111
`Second Table:`
125, 111, 156
111, 222, 333

So, second table contains all 3 values from first one(row doesn't matter) and should return true.因此,第二个表包含第一个表中的所有 3 个值(行无关紧要)并且应该返回 true。

You should be able to do this:你应该能够做到这一点:

=SUM(COUNTIFS(Table2[X],Table1[X],Table2[Y],Table1[Y],Table2[Z],Table1[Z]))

assuming these are two actual tables as below.假设这是两个实际的表格,如下所示。

在此处输入图像描述

I have tested this in Microsoft 365 - you may need to use Sumproduct or enter as an array formula in lower versions of Excel.我已经在 Microsoft 365 中对此进行了测试 - 您可能需要在 Excel 的较低版本中使用 Sumproduct 或作为数组公式输入。

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

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