Excel 2013-基于单元格数据更改的备用突出显示行 [英] Excel 2013 - Alternate Highlight Rows Based on Cell Data CHANGING

查看:58
本文介绍了Excel 2013-基于单元格数据更改的备用突出显示行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Excel中的条件格式了解不多。我希望能够使用行的背景色来表示行的组。单元格之一(所有相同的列)确定该行属于哪个组。我不想每个组关联一种颜色;相反,我想在2种(或更多?)颜色之间交替。因此,我很满意地说:当此列的值更改时切换颜色。 (我意识到,只有在该列上进行排序时,该方法才起作用,但是在该列上进行排序。)

I don't know much about conditional formatting in Excel. I'd like to be able to use the background color of rows to indicate "groups" of rows. One of the cells (all the same column) determines which "group" the row belongs to. I don't want to associate 1 color per group; instead, I'd like to alternate between 2 (or more?) colors. So, I am content to say, "switch colors when the value of this column changes". (I realize that will only work if I'm sorting on that column, but I am sorting on that column.)

这感觉应该很简单,但是我一直无法弄清楚,甚至无法弄清楚如何用Google搜索。

This feels like it should be dead simple, but I haven't been able to figure it out, or even figure out how to google for it.

推荐答案

以下是不使用帮助列的解决方案:

Here's a solution which doesn't use a helper column:

规则1: = MOD(SUMPRODUCT(1 / COUNTIF($ O $ 1:$ O1,$ O $ 1:$ O1)),2)= 1

规则2: = MOD(SUMPRODUCT(1 / COUNTIF($ O $ 1:$ O1,$ O $ 1:$ O1)),2)= 0

重要:这假定所有帐号实例总是组合在一起,例如,如果 O7 更改为帐户1。我认为这不是问题,因为您正在对O列进行排序。

Important: This assumes that all instances of account numbers are always grouped together - for example it will fail if O7 is changed to "Account 1". I assume this is not an issue since you are sorting on Column O.

这篇关于Excel 2013-基于单元格数据更改的备用突出显示行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆