简体   繁体   English

在 Google 表格的条件格式中使用自定义公式时遇到问题

[英]Having trouble using custom formula in conditional formatting on Google Sheets

I am trying to get my list of names to conditional format based on which of another 2 columns a name appears.我试图根据名称出现的另外两列中的哪一列将我的名称列表设置为条件格式。

This is my sheet, nothing complicated mostly a random generator for a game I am running.这是我的工作表,没有什么复杂的,主要是我正在运行的游戏的随机生成器。

https://docs.google.com/spreadsheets/d/1xBv1QuMEohTGTZlFZ_FafB9QUA9z9pwk3oz0G3qEegk/edit?usp=sharing https://docs.google.com/spreadsheets/d/1xBv1QuMEohTGTZlFZ_FafB9QUA9z9pwk3oz0G3qEegk/edit?usp=sharing

Edit for more details:编辑以获取更多详细信息:

Range of names to be formatted is found in range O2:O52 and is generated randomly from a range of names in A2:A1977 which is a mixture of male and female names.要格式化的名称范围位于范围 O2:O52 中,它是从 A2:A1977 中的一系列名称中随机生成的,该范围是男性和女性名称的混合。

The same names from A2:A1977 are separated into ranges Male (D2:D996) and Female (F2:F981). A2:A1977 中的相同名称分为男性 (D2:D996) 和女性 (F2:F981) 范围。

blue color:蓝色:

=REGEXMATCH(O2, TEXTJOIN("|", 1, D:D))

pink color:粉色:

=REGEXMATCH(O2, TEXTJOIN("|", 1, F:F))

0

暂无
暂无

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

相关问题 在谷歌表格中运行用于条件格式的自定义公式仅格式化“应用于范围”中的第一个单元格 - Running a custom formula for conditional formatting in google sheets only formats the first cell in the “apply to range” 在 Google 表格中使用条件格式来突出显示单元格 - Use Conditional Formatting in Google Sheets to highlight cell 在条件格式中使用自定义公式突出显示单个单元格中包含逗号分隔列表中的字符串的单元格 - Using Custom Formula in Conditional Formatting to highlight cells containing string from comma-delimited list in a single cell 使用条件格式对不包含“ x”的文本进行Google表格突出显示-两个条件 - Google Sheets Highlighting using Conditional Formatting for Text that DOESN'T Contain “x” - TWO Criteria 如果行标题为大写,则 Google Sheets 条件格式 - Google Sheets conditional formatting if a row title is in capital letters 可以使用像条件格式自定义公式这样的 ArrayFormula 吗? - Possible to use ArrayFormula like Conditional Formatting Custom Formula? 使用 Google 表格公式进行正则表达式替换和拆分 - Regex replace and split using Google SHeets formula 正则表达式使用公式匹配 Google 表格中的换行符 - Regex to match newline in Google Sheets using a formula Google 表格的过滤列,其中包含使用自定义公式的另一列中的数据 - Google Sheets' filter column with data from another column using custom formula Google 表格中的范围公式 - Range formula in Google Sheets
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM