是否有一个 Excel 函数来查找并且不在第一次匹配时停止而是查找所有值(日期)和 return "Yes/No" 如果它匹配特定日期

Is there an Excel function to look up & not stop at first match but look for all the values (dates) and return "Yes/No" if it matches certain date

我在excel中有两个数据集。如下所示(Table 1 和 Table 2)如果日期与 Table 中的相应 ID 匹配,我试图在 Table 1 中获得结果为 Yes/No 2. 查看 Table 中的结果列 1. 你能告诉我如何使用 excel 公式实现吗?谢谢

Table 1

Table1

Table 2

Table2

你可以试试这个:

我使用的公式是:

=IF(COUNTIFS($G:$G;A3;$H:$H;B3)=0;"No";"Yes")