Excel - Shading entire row based on change of value

后端 未结 11 1796
一生所求
一生所求 2020-12-23 20:05

I would like to shade entire rows in Excel based on the value of one cell. For example say I have the rows below:

**File No**
1122
1122
1144
1155
1155
1155
         


        
11条回答
  •  执念已碎
    2020-12-23 20:24

    This one has puzzled me for ages. Don't like the idea of creating an extra (irrelevant) row/column just to calculate formatting. Finally came up with the following rule:

    =INDIRECT("A"&ROW())<>INDIRECT("A"&(ROW()-1))
    

    This creates the reference A2<>A1 for row 2, A3<>A2 for row 3 etc. Adjust the letter "A" to be the column you wish to compare

提交回复
热议问题