Match Excel Column A Colors to Column B Conditional Formatting
Question details
Color cells in column A to match the conditional formatting categories of the corresponding cells in column B.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Column B contains status values such as Yes and No, with a conditional formatting color for each value.
- Observed behavior
- Column B displays colors based on its values, while the corresponding cells in column A need the same colors.
Check the rules in Home > Conditional Formatting > Manage Rules to see which values and fill colors are used in column B. Identify the first data row; the examples below assume it is row 2.
Create matching conditional formatting rules for column A
Use formulas that check each row's column B value and apply the corresponding fill to column A.
Select the cells in column A that should change color, such as A2:A100.
Go to Home > Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.
Enter =$B2="Yes". Select Format > Fill, choose the same green used in column B, and click OK.
Create another formula rule for the same selected range using =$B2="No". Under Format > Fill, choose the same red used in column B.
Create one rule for each additional value and choose its matching fill. Use Home > Conditional Formatting > Manage Rules to check the Applies to range and rule order.

Match Status Colors Across Columns in WPS Spreadsheet
Use formula-based conditional formatting in WPS Spreadsheet to color column A according to the status in column B.
- 1. Open the workbook: Open your Excel workbook in WPS Spreadsheet and select the target cells, such as A2:A100.
- 2. Start a formula rule: On the Home tab, open Conditional Formatting > New Rule and choose the formula-based rule option.
- 3. Set the first color: Enter =$B2="Yes", choose a green fill under Format, and confirm the rule.
- 4. Add remaining colors: Create another rule using =$B2="No" with a red fill. Repeat for any other status values and matching colors.

Frequently Asked Questions
Why does the formula use $B2 instead of B2?
The dollar sign locks the reference to column B, while the row number changes for each cell in the selected range. If the range starts on a different row, use that row number in the formula.
How do I handle more than two status values?
In Home > Conditional Formatting > New Rule, create a formula rule for each additional value, such as =$B2="Pending", and select the fill color used for that value in column B.
Will column A automatically copy a manually applied color from column B?
No. These rules evaluate the value in column B rather than reading its displayed fill color. Recreate the conditions that determine the color, or apply matching formatting manually.
What if column A shows the wrong color?
Check Home > Conditional Formatting > Manage Rules. Confirm that Applies to covers the intended cells, the formula starts with the first row of that range, and overlapping rules have the appropriate order.




