gpt4 book ai didi

excel - Google 表格中针对可变条件的条件格式自动填充

转载 作者:行者123 更新时间:2023-12-04 14:54:02 25 4
gpt4 key购买 nike

我在这里找了很多地方,但找不到针对我的问题的解决方案,所以我注册了一个帐户来提问。

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

玩家1 |玩家2 | player1分数|玩家2得分

玩家3 |玩家4 | player3分数| player4score

玩家5 |玩家6 | player5分数| player6得分

等等

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

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

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

最佳答案

黄色:

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

绿色:

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

红色:

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

enter image description here

enter image description here

注意范围 A2:B 或 C2:D

here's the sheet

关于excel - Google 表格中针对可变条件的条件格式自动填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68505335/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com