简体   繁体   English

如何根据 Google 表格中的条件格式列表为单元格着色

[英]How can I color cells based on list with conditional formatting in Google Sheets

So I'm trying to make a few different lists with different colors and then I want google sheets color automatically whatever is on the list when it's shown elsewhere.因此,我尝试使用不同的 colors 制作一些不同的列表,然后我希望 google 表格自动为列表中显示的任何内容着色。 I've been trying a few different ways and found a solution that kind of works but isn't really scalable.我一直在尝试几种不同的方法,并找到了一种可行但不是真正可扩展的解决方案。

I'm bad at explaining things, so hopefully this example does a greater job on that than I did Here's example sheet我不擅长解释事情,所以希望这个例子比我做得更好这里的例子表

yellow list:黄名单:

=REGEXMATCH(G3, TEXTJOIN("|", 1, $B:$B))

green list:绿名单:

=REGEXMATCH(G3, TEXTJOIN("|", 1, $C:$C))

blue list:蓝名单:

=REGEXMATCH(G3, TEXTJOIN("|", 1, $D:$D))

red list:红名单:

=REGEXMATCH(G3, TEXTJOIN("|", 1, $E:$E))

0


0


UPDATE更新

catfish fix:鲶鱼修复:

=REGEXMATCH(LOWER(G3), LOWER("^"&TEXTJOIN("$|^", 1, $B:$B)&"$"))

暂无
暂无

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

相关问题 Google 表格 - 条件格式规则 - Google Sheets - Conditional formatting rules 在 Google 表格中使用条件格式来突出显示单元格 - Use Conditional Formatting in Google Sheets to highlight cell 在 Google 表格的条件格式中使用自定义公式时遇到问题 - Having trouble using custom formula in conditional formatting on Google Sheets 如果行标题为大写,则 Google Sheets 条件格式 - Google Sheets conditional formatting if a row title is in capital letters Google 表格:如何根据不同选项的列从字符串中提取部分文本? - Google Sheets: How can I extract partial text from a string based on a column of different options? 如何将条件格式(如果单元格在另一个范围内)应用于一系列单元格 - How to apply conditional formatting (if cell is in another range) to a range of cells 正则表达式 Google 表格有条件 - REGEX Google Sheets Conditional 使用条件格式对不包含“ x”的文本进行Google表格突出显示-两个条件 - Google Sheets Highlighting using Conditional Formatting for Text that DOESN'T Contain “x” - TWO Criteria 在谷歌表格中运行用于条件格式的自定义公式仅格式化“应用于范围”中的第一个单元格 - Running a custom formula for conditional formatting in google sheets only formats the first cell in the “apply to range” 如何将“+”字符转换为 Google 表格中 REGEXMATCH 的正则表达式? - How can I convert '+' character to a regular expression for REGEXMATCH in Google Sheets?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM