GS条件格式设置多个范围匹配多个值

时间:2019-08-09 09:42:04

标签: regex google-sheets google-sheets-formula gs-conditional-formatting

在Google表格文档中,我有两个带有下拉列表的区域,基本上,我想根据下拉列表中选择的值对单元格进行着色,但是要使用一组值。

想象一下可能的值是:toto,titi,tutu,foo,bar。

enter image description here

我会有一个规则,该规则将格式应用于 toto 列A和C 的单元格(A2:A11,C2:C11)或 foo

1 个答案:

答案 0 :(得分:2)

您可以像这样使用正则表达式:

=REGEXMATCH(A2, "toto|foo")

0