Excel - Shading entire row based on change of value

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

    I have found a simple solution to banding by content at Pearson Software Consulting: Let's say the header is from A1 to B1, table data is from A2 to B5, the controling cell is in the A column

    1. Make a new column, C
    2. At first the first row to color make the formula =true in the C2 cell
    3. In the second row make the formula =IF(A3=A2,C2,NOT(C2))
    4. Fill the column down to the last row
    5. Select the data range
    6. Select conditional formatting, choose Use a formula... and put =$C2 as the formula

提交回复
热议问题