简体   繁体   English

在 Google 表格中使用条件格式来突出显示单元格

[英]Use Conditional Formatting in Google Sheets to highlight cell

Problem问题

I want to be able to highlight a cell in google sheets if a cell on the same row is TRUE and the value does not exist in a named range (or a sheet).如果同一行上的单元格为 TRUE 并且该值不存在于命名范围(或工作表)中,我希望能够突出显示 google 工作表中的单元格。

eg例如

Based on the scenario below in sheet1, if column a is TRUE, and the value in column b does not match anything in sheet2, highlight the cell red.根据 sheet1 中的以下情况,如果 a 列为 TRUE,并且 b 列中的值与 sheet2 中的任何内容都不匹配,则将单元格突出显示为红色。

sheet1
column a     column b
TRUE         value1
FALSE        value2

sheet2 
column a 
value2

I would like to do this in google sheets using conditional formatting custom formulas and named ranges (if required).我想在 google 工作表中使用条件格式自定义公式和命名范围(如果需要)执行此操作。

Edit编辑

I have tried this with my sheet but cant manage it... I have copied my sheet example below?我已经用我的工作表试过这个但无法管理它......我已经复制了下面的工作表示例? Are you able to work it with this?你能用这个工作吗?

sheet1工作表 1 在此处输入图像描述

sheet2工作表2 在此处输入图像描述

Edit 2编辑 2

Rather than just matching whats in Cell DI would like to only match the values of the string that is separated by commas and only search if the letters "tf" are in the string. DI 不只是匹配 Cell 中的内容,而是希望只匹配由逗号分隔的字符串的值,并且只搜索字符串中是否包含字母“tf”。

if column a is TRUE, and the value in column b does not match anything in sheet2, highlight the cell red如果 a 列为 TRUE,并且 b 列中的值与 sheet2 中的任何内容都不匹配,则将单元格突出显示为红色

try:尝试:

=(A1=TRUE)*(NOT(REGEXMATCH(B1&"", ""&TEXTJOIN("|", 1, INDIRECT("Sheet2!A:A")))))

4个

暂无
暂无

声明:本站的技术帖子网页,遵循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 表格的条件格式中使用自定义公式时遇到问题 - 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 合并单元格中的条件格式 - Conditional Formatting in merged cell 如果单元格包含对另一个工作表的引用,则 Google 工作表条件格式 - Google sheet conditional formatting if the cell contains ref to another sheet 在条件格式中使用自定义公式突出显示单个单元格中包含逗号分隔列表中的字符串的单元格 - Using Custom Formula in Conditional Formatting to highlight cells containing string from comma-delimited list in a single cell 正则表达式 Google 表格有条件 - REGEX Google Sheets Conditional 如果一列包含 5 列的某些文本,则 Google 表格条件格式会突出显示 2 列 - Google Sheet Conditional Formatting highlight 2 columns if one column contain certain text of 5 columns 如何根据 Google 表格中的条件格式列表为单元格着色 - How can I color cells based on list with conditional formatting in Google Sheets 使用条件格式对不包含“ x”的文本进行Google表格突出显示-两个条件 - Google Sheets Highlighting using Conditional Formatting for Text that DOESN'T Contain “x” - TWO Criteria
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM