How do I highlight incorrectly matching keywords in a two column list that should match in Google sheets?

huangapple go评论57阅读模式
英文:

How do I highlight incorrectly matching keywords in a two column list that should match in Google sheets?

问题

我感觉这个很复杂,所以如果需要的话,请提出澄清的问题。我有一个关键词列表,以及下一列中的作者列表。基于另外两个列表,我需要突出显示任何与关键词不匹配的作者名称。请查看下面的屏幕截图,了解当前的电子表格和期望的输出。我最终要处理的实际关键词和作者列表将比这长得多,大约有13,000行。这里是一个测试表格: https://docs.google.com/spreadsheets/d/1_JppmT-KoUGIadm3uvgYaoGhRsnTn10kShRD6Ia3Dpk/edit#gid=0

How do I highlight incorrectly matching keywords in a two column list that should match in Google sheets?

How do I highlight incorrectly matching keywords in a two column list that should match in Google sheets?

英文:

I feel like this is complicated to explain so please ask clarifying questions if you need to. I have a list of keywords, with a list of authors in the next column. Based on two other lists, I need to highlight any author names that do not match the keyword. Please see screenshots below for the current spreadsheet and the desired output. The actual keyword and author list I will end up working with will be much longer than this, approximately 13,000 lines. Here is a testing sheet: https://docs.google.com/spreadsheets/d/1_JppmT-KoUGIadm3uvgYaoGhRsnTn10kShRD6Ia3Dpk/edit#gid=0

How do I highlight incorrectly matching keywords in a two column list that should match in Google sheets?

How do I highlight incorrectly matching keywords in a two column list that should match in Google sheets?

答案1

得分: 2

以下是翻译好的内容:

For those additional columns, you can use this formula that nests different REDUCE functions:

对于那些额外的列,您可以使用此嵌套不同REDUCE函数的公式:

=QUERY(REDUCE({"关键词","作者"},FILTER(A2:A,A2:A<>""),LAMBDA(a,b,{a;REDUCE({"",""},FILTER(E2:E,D2:D=b),LAMBDA(c,d,{c;REDUCE({"",""},FILTER(H2:H,G2:G=d),LAMBDA(e,f,{e;b,f}))}) )}), "WHERE Col1 is not null")

For conditional formatting, it checks with MATCH if it is found inside the filtered values of K column according with J column:

对于条件格式化,它使用MATCH检查是否在K列的过滤值中根据J列找到:

=ISNA(MATCH(B2,FILTER(K:K,J:J=A2),0))*(B2<>"")
英文:

For those additional columns, you can use this formula that nests different REDUCE functions:

=QUERY(REDUCE({&quot;Keyword&quot;,&quot;Author&quot;},FILTER(A2:A,A2:A&lt;&gt;&quot;&quot;),LAMBDA(a,b,{a;REDUCE({&quot;&quot;,&quot;&quot;},FILTER(E2:E,D2:D=b),LAMBDA(c,d,{c;REDUCE({&quot;&quot;,&quot;&quot;},FILTER(H2:H,G2:G=d),LAMBDA(e,f,{e;b,f}))}) )}) ),&quot;WHERE Col1 is not null&quot;)

How do I highlight incorrectly matching keywords in a two column list that should match in Google sheets?

For conditional formatting, it checks with MATCH if it is found inside the filtered values of K column according with J column:

=ISNA(MATCH(B2,FILTER(K:K,J:J=A2),0))*(B2&lt;&gt;&quot;&quot;)

How do I highlight incorrectly matching keywords in a two column list that should match in Google sheets?

huangapple
  • 本文由 发表于 2023年2月10日 05:54:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/75404828.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定