在第1列中找到相同的值,如果所有值均为x,则在第3列中给出y

发布于 2025-02-03 19:23:41 字数 244 浏览 2 评论 0原文

我的目标是在第3列中获得1个单个公式,该公式执行以下操作:

在第1列中搜索所有与他们自己完全相同的值。如果所有值在第2列中是肯定的,则在第3列中给出。在第2列中,在第3列中no

。 /rk1gh.png“ alt =”在此处输入图像描述“>

我的实际数据集为10k行,第1列中的“ ID”,因此这是一个简化的示例。

我知道这不是最漂亮的问题,但请事先感谢您的所有帮助:)。

亲切的问候, 尤尔根

My goal is to get 1 single formula in Column 3 which does the following:

Search for all exact same values as themself in Column 1. If all the values are YES in Column 2, give YES in Column 3. If not all values are YES in Column 2, give NO in Column 3.

enter image description here

My actual dataset is 10k rows, with "id's" in Column 1, so this is a simplified example.

I know it is not the prettiest question, but thanks in advance for all the help :).

Kind regards,
Jurgen

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

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

发布评论

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

评论(1

甜味超标? 2025-02-10 19:23:41

假设:

  • 第1行是标题行,实际数据在第2列
  • 第1列是A
  • 第2列IS B

中使用该公式(或第3列实际上是任何第3列的第2行),然后复制:

=IF(COUNTIFS(A:A,A2,B:B,"NO"),"NO","YES")

必要时调整公式列参考适合您的数据。如果运行得太慢,请将列引用到实际数据集而不是使用完整列。

Assumptions:

  • Row 1 is a header row and actual data starts in row 2
  • Column 1 is A
  • Column 2 is B

Use this formula in cell C2 (or row 2 of whatever Column 3 actually is) and copy down:

=IF(COUNTIFS(A:A,A2,B:B,"NO"),"NO","YES")

Adjust formula column references as necessary to suit your data. If it runs too slowly, limit the column references to your actual dataset instead of using full column.

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