标签: regex google-sheets google-sheets-formula gs-conditional-formatting
在Google表格文档中,我有两个带有下拉列表的区域,基本上,我想根据下拉列表中选择的值对单元格进行着色,但是要使用一组值。
想象一下可能的值是:toto,titi,tutu,foo,bar。
我会有一个规则,该规则将格式应用于 toto 的列A和C 的单元格(A2:A11,C2:C11)或 foo 。
答案 0 :(得分:2)
您可以像这样使用正则表达式:
=REGEXMATCH(A2, "toto|foo")