Excel tips, interlace discoloration, multi-line discoloration

Excel tips, interlaced color change, multi-line color change, interval color, the key lies in the formula:

=mod(row(),x)=y

Where x refers to the expected color change every (x-1) row, and y is equal to every (y+1)th row;

For example: =mod(row(),2)=0 is used to set the color of every other row, and the color of the first row is. . .

Another example: =mod(row(),3)=1 is used to set the color change every two rows, and the color of the second row is. . .

The operation steps are:

1. Start

2. Conditional format

3. New rules

The following figure is a screenshot of steps 1, 2, and 3;

4. Use formulas to determine the cells to be formatted

5. Enter the prepared formula

6. Choose a format

The following figure is a screenshot of steps 4, 5, and 6:

 

The last picture is the picture of the format pop-up box, where you can set various formats to take effect under specified conditions.

Guess you like

Origin blog.csdn.net/taozi550185271/article/details/108058092