问题描述
我想应用一些条件格式,其中一行的每个单元格与前一行中的单元格进行比较。如果它不同,那么该行将被突出显示。
I'd like to apply some conditional formatting where each cell of a row is compared to the cell in the previous row. If it differs then the row is highlighted.
我正在使用Excel 2007.这是甚么可能吗?有没有人可以向我提供将其应用于整个数据表的步骤?
I'm using Excel 2007. Is this even possible? If so could someone provide me with the steps to apply this to an entire table of data?
推荐答案
是的,这是可能的。在以前版本的Excel中也是可能的。
Yes, it is possible. It was possible in previous versions of Excel, too.
条件非常简单。
选择数据从第二行数据开始(从标题开始计算第三行),打开条件格式化对话框,选择公式并输入, = A3<> OFFSET(A3,-1,0)
其中 A3
是选择的左上角的单元格。
注意没有美元符号 - Excel会自动建议他们,因此删除。
Select the data, starting from the second row of data (the third row counting from the header), bring up the condition formatting dialog, select "Formula" and enter , =A3<>OFFSET(A3,-1,0)
where A3
is the top-left cell of the selection.
Note the absence of dollar signs - Excel will automatically suggest them, so delete accordingly.
因为引用不是绝对的,格式化将适用于整个表格。
Because the reference is not absolute, the formatting will properly apply to the whole table.
这篇关于突出显示特定单元格的值与上一行不同的行中的单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!