【问题标题】:Conditional Formatting Autofill on Google Sheets for Variable conditionGoogle表格上的条件格式自动填充变量条件
【发布时间】:2021-09-30 22:40:16
【问题描述】:

我在这里找了很多地方,但找不到特定于我的问题的解决方案,所以我创建了一个帐户来询问它。

在 Google 表格中,我制作了一张表格来宣布体育比赛的获胜者,例如:

播放器1 |播放器2 | player1score | player2score

播放器3 |播放器4 | player3score | player4score

播放器 5 |播放器6 | player5score | player6score

等等

我所做的是,如果 player1score 大于 player2score,则 Player1 以绿色突出显示,如果相反,则其Player 2 使用红色突出显示,反之亦然,使用条件格式:=player1score>player2score 表示绿色,=player2score>player1score 表示红色。 (带有单元 ID)

我有大约 100 奇数行,我想向下拖动并自动填充工作表中的所有其他玩家,但是当我这样做时,它会应用条件格式,例如 Player5 与 player1score 和player2score 而不是 player5score 和 player6score,因为自定义公式的值不会递增

有没有一种方法可以自动增加它而无需手动将它们全部写入?

【问题讨论】:

    标签: excel google-sheets spreadsheet conditional-formatting autofill


    【解决方案1】:

    黄色:

    =($C2=$D2)*(C2<>"")
    

    绿色:

    =(C2=MAX($C2:$D2))*($C2<>"")
    

    红色:

    =(C2=MIN($C2:$D2))*($C2<>"")
    

    注意范围 A2:B 或 C2:D

    here's the sheet

    【讨论】:

    • 哇,谢谢,正如我所愿!我现在了解范围,但我不太了解公式的结尾 *($C2"") ,这到底是做什么的?
    • @KutKommTom 它确保不会格式化空行
    猜你喜欢
    • 2015-03-21
    • 2022-01-08
    • 2014-04-22
    • 2013-10-04
    • 1970-01-01
    • 1970-01-01
    • 2021-11-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多