应用条件格式以将多个行和列与参考列进行比较

use*_*653 7 google-docs google-sheets gs-conditional-formatting

我有这张表格的Google表格:

   A    B C D E
1 A1 B1 C1 D1 E1
2 A2 B2 C2 D2 E2
3 A3 B3 C3 D3 E3
4 A4 B4 C4 D4 E4
5 A5 B5 C5 D5 E5

列$ A包含我想要比较表的其余部分的参考值.我想做的格式很简单:

For each row x of the table:

  For each column ? in columns (B:Z) of the table:

  • 应用绿色:if the cell ?x is greater than $Ax
  • 应用红色:if the cell ?x is less or equal to $Ax

我尝试了一个自定义公式=$A1:$A>B1:Z on range B1:Z,但它不起作用.

此公式适用于只有一列(例如B): =$A1:$A>B1:B on range B1:B.我现在正在寻找一种方法将这种格式同时应用于所有列,而无需为每列手动重建条件格式(数百列很多......)

pnu*_*uts 7

请试试:

SO24564331的例子

范围:调整到适合.(如果这不是您需要的,那么应该很容易修复.)