Excel - Shading entire row based on change of value

后端 未结 11 1812
一生所求
一生所求 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:14

    A simpler version of one of the above answers. Column A is the key.
    Yes, it needs a helper column.  That's column K.
    1) Set first cell in table to TRUE (K8)
    2) On second row at K9, and to end of table (K99), paste: =IF(A8=A9,K8,NOT(K8))
    This gives a pattern of TRUE...TRUE, FALSE...FALSE,...
    3) Select key column A1:A99, or whole table A1:K99
    4) Set Home/Conditional/New Rule/Formula  =K8
    5) Format as you wish for the TRUE cells
    6) Select the range from (3) and Right-click Format White (or whatever
    background color you want) for the FALSE cells
    
    Note that this solution (and the others) have a major flaw, in that this
    highlighting doesn't work properly when you have filters active in your
    table.  I want that fix :)
    

提交回复
热议问题