Formatting Issues

Match Excel Column A Colors to Column B Conditional Formatting

Ayan MasoodAyan Masood Nov 25, 2026 869 views

Question details

Color cells in column A to match the conditional formatting categories of the corresponding cells in column B.

Match Excel Column A Colors to Column B Conditional Formatting
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the target cells

Select the cells in column A that should change color, such as A2:A100.

2
Create the first rule

Go to Home > Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.

3
Set the Yes condition

Enter =$B2="Yes". Select Format > Fill, choose the same green used in column B, and click OK.

4
Add the No condition

Create another formula rule for the same selected range using =$B2="No". Under Format > Fill, choose the same red used in column B.

5
Add other categories

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.

Create matching conditional formatting rules for column A
Match the first row: The row number in each formula must match the first row of the selected range. The dollar sign locks column B while allowing the row number to change.
Format status colors in WPS Spreadsheet

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. 1. Open the workbook: Open your Excel workbook in WPS Spreadsheet and select the target cells, such as A2:A100.
  2. 2. Start a formula rule: On the Home tab, open Conditional Formatting > New Rule and choose the formula-based rule option.
  3. 3. Set the first color: Enter =$B2="Yes", choose a green fill under Format, and confirm the rule.
  4. 4. Add remaining colors: Create another rule using =$B2="No" with a red fill. Repeat for any other status values and matching colors.
Apply matching status colors across columnsCreate separate rules for multiple status valuesOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface
microsoft office alternative - wps office

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.