Forum Discussion
How to Format AutoFill Options in Excel
- Jan 25, 2024
Excel does not have a way to do this automatically - you have to create a conditional formatting rule for each value.
Let's say you want to apply this to rows 2 to 100. Select these rows.
The active cell in the selection should be in row 2.
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=$B2=7
Click Format...
Activate the Fill tab.
Select blue as highlight color.
Click OK, then click OK again.Repeat these steps with the formula =$B2=5 and yellow as highlight color.
Etc.
Since a cell cannot have multiple values at once, only one of the rules should be applied.
Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?
I need the highlight colors of the rows to change as the value in column F is changed according to the key.
- HansVogelaarJan 30, 2024MVP
Thanks. See the attached version.
I removed the fixed fill colors and created 5 conditional formatting rules.
On the Home tab of the ribbon, click Conditional Formatting > Manage Rules... to inspect these rules.