【问题标题】:Conditionally color highlight value in Column B based on adjacent Column A value in google spreadsheet根据谷歌电子表格中相邻的 A 列值有条件地在 B 列中突出显示值
【发布时间】:2019-02-19 07:39:23
【问题描述】:

环境:Google 电子表格。

我想做什么:

只要在 column2 中有 Value a 对应于 column1 中的 aValue 1。我希望Value a 单元格以特定颜色突出显示。

Col1    Col2
aValue 1    Value a
aValue 2    Value b
aValue 1    Value a
aValue 1    Value c

我在这里使用什么自定义公式?

我看到了这个类似的Q Excel Conditional Formatting If Column A Contains ANY Value Highlight Adjacent Cell In Column B 但这不是我想要的。

我对电子表格和 Excel 非常陌生。感谢任何指针。

更新:
有两套:
案例一:Column A has entry X and corresponding Column B has value of 0颜色1高亮

Case2 Column A has entry Y and Column B has non zero value. Color2 高光

【问题讨论】:

  • 您尝试了哪些条件格式公式?有多少条件?你提前认识他们吗?您需要提供更多信息。
  • 对不起,我忘了添加我试过的公式。是的,我提前知道了情况。有两组:案例1:Column A has entry X and corresponding Column B has value of 0 Case2 Column A has entry Y and Column B has non zero value.

标签: google-sheets gs-conditional-formatting


【解决方案1】:

请选择 ColumnB,从中清除所有 CF 规则和:格式 - 条件格式...,自定义公式是和:

=and(A1="aValue 1",B1="Value a")  

突出显示您的选择并完成。

【讨论】:

  • 抱歉,我更新了问题。在一种情况下,我希望单元格在具有非零值时突出显示,所以我这样做了:=and(A1="aValue 1",B1>0)
猜你喜欢
  • 1970-01-01
  • 2021-10-28
  • 1970-01-01
  • 1970-01-01
  • 2015-04-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多