Autoformat cell background fill based on cell background fill above
- Jul 02, 2024
Select C1:Z25 or as far to the right as needed.
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Format only cells that contain'.
Leave the first drop down set to 'Cell Value'.
Select 'not equal to' from the second drop down.
In the box next to it, enter the formula=""
Click Format...
Activate the Fill tab.
Select red as fill color.
Click OK, then click OK again.Next, select C26:Z26 or as far to the right as needed. C26 should be the active cell in the selection.
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula=COUNTA(C1:C25)=0
Click Format...
Activate the Fill tab.
Select green as fill color.
Click OK, then click OK again.