基于仅匹配某些标准的唯一值过滤

发布于 2025-02-09 06:48:51 字数 1911 浏览 1 评论 0原文

这可能超出了我在Google表格中的技能,这肯定会使我的大脑思考,但是我有两个列的大型电子表格(30000行左右),我需要在一个列表上的唯一值之间找到匹配项,并且非唯一但仅在另一个列表上的特定值。也就是说,我需要以下列表仅返回左列中具有3个值的左侧的值,每当值出现在左侧上时,而不仅仅是针对特定实例。

“唯一”标识符(可以重复)
12
23
33
2 42
53
62
12
22
2 22
32 4
2 52
62

i有以下公式,来自另一对夫妇的答案,但没有把我一路走到那里:= unique(filter(a2:a,b2:b> 0)))

如何将其排除,例如,在右列中具有2和3左列中的值相同?

编辑:以更真实的方式说(我试图将其保持抽象的水平,以便我可以理解基础知识),我有一个目录ID和一个物品条件,并且需要查找所有仅具有良好副本的目录ID,而不是任何非常好的副本。此链接应显示我想实现的目标: https:// docs。 google.com/spreadsheets/d/e/2pacx-1vsjenkds2MK3T4KTCDOJQSC8AV6ONU4Q17K1HPAIUDJKB7DHDNBAT-CZUXGO3ZOJISNPGOJISNPGAJISNPGAJUTFTGZ8C/PUBHTML?

This may be beyond my skill level in Google Sheets, and it's certainly straining my brain to think through, but I have two columns out a large spreadsheet (30000 lines or so) that I need to find matches between unique values on one list, and non-unique but specific values ONLY on another list. That is, I would need the following list to return only the values on the left that had a 3 in the right column every time that value appears on the left, not just for a specific instance.

"Unique" Identifier (can repeat)Value
12
23
32
42
53
62
12
22
32
42
52
62

I have the following formula from another couple answers mocked up, but it doesn't get me all the way there:=UNIQUE(FILTER(A2:A,B2:B>0))

How can I get it to exclude the ones that have, for instance, both a 2 and a 3 in the right column for the same value in the left column?

Edit: To put it in more real terms (I was trying to keep it abstract so I could understand the basics), I have a Catalog ID and a Condition for items, and need to find all Catalog IDs that only have Good copies, not any Very Good copies. This link should show what I want to achieve:
https://docs.google.com/spreadsheets/d/e/2PACX-1vSjenkDS2Mk3t4kTcDoJqSc8AV6ONu4Q17K1HPaIUdJkb7dhdnbAt-CzUxGO3ZoJISNpGajUtFTGz8c/pubhtml?gid=0&single=true

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

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

发布评论

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

评论(1

迟月 2025-02-16 06:48:51

仅返回右列中左侧列中有3个值的值

=UNIQUE(FILTER(A:A; B:B=3))

更新1:

=UNIQUE(FILTER(Sheet1!A:A; Sheet1!B:B="Good"))

update 2:

=UNIQUE(FILTER(Sheet1!A:A, Sheet1!B:B="Good", 
 NOT(COUNTIF(FILTER(Sheet1!A:A, Sheet1!B:B<>"Good"), Sheet1!A:A))))

”

to return only the values on the left that had a 3 in the right column every time

try:

=UNIQUE(FILTER(A:A; B:B=3))

update 1:

=UNIQUE(FILTER(Sheet1!A:A; Sheet1!B:B="Good"))

update 2:

=UNIQUE(FILTER(Sheet1!A:A, Sheet1!B:B="Good", 
 NOT(COUNTIF(FILTER(Sheet1!A:A, Sheet1!B:B<>"Good"), Sheet1!A:A))))

enter image description here

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