Formatting Issues

Mirror a Cell’s Value and Highlight Color in Excel

Emma BrownEmma Brown Dec 2, 2026 868 views

Question details

Mirror a source cell’s value and display a matching highlight color in another cell.

How to Mirror a Cell’s Value and Highlight Color in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user wants a linked cell to show the source cell’s text and use the same color when the source value changes.
Observed behavior
The linked cell should update its value and display the appropriate matching color based on the source value.
Before you start

Identify the source and destination cells and decide which values should receive each highlight color. The example below uses A1 as the source and B1 as the destination.

Solution 1Recommended

Link the value and apply matching conditional formatting

Use this method when the highlight color can be determined from the source cell’s value.

A cell formula copies the value, not the fill color. Conditional formatting can give both cells matching fills when the same value-based rules apply to them.

1
Link the destination cell

Select B1, enter =IF(A1="","",A1) in the formula bar, and press Enter. B1 will display A1’s value and remain visually blank when A1 is empty.

2
Select both cells

Select A1:B1, then go to Home > Conditional Formatting > New Rule.

3
Create a color rule

Choose Use a formula to determine which cells to format. Enter =$A$1="Yes", select Format > Fill, choose a color, and click OK.

4
Add other value rules

With A1:B1 selected, use Home > Conditional Formatting > New Rule to add rules for other values, such as =$A$1="No", and choose a different fill for each.

5
Test the result

Enter Yes or No in A1 and check that B1 updates and both cells receive the color assigned to that value.

Manual colors are not mirrored: Changing A1’s fill manually does not copy that color to B1. Adjust the conditional formatting rules when you need to change the value-based colors.
WPS Spreadsheet

Mirror values and matching highlights in WPS Spreadsheet

Use a cell formula and conditional formatting in WPS Spreadsheet to show a source value and apply matching colors to both cells.

  1. 1. Open the spreadsheet: Open your workbook in WPS Spreadsheet and identify the source cell and destination cell, such as A1 and B1.
  2. 2. Link the value: Select B1, enter =IF(A1="","",A1) in the formula bar, and press Enter.
  3. 3. Set a highlight rule: Select A1:B1 and open Home > Conditional Formatting > New Rule. Choose a formula-based rule, enter =$A$1="Yes", and set the desired fill color.
  4. 4. Add rules and test: Add another conditional formatting rule for each value that needs a different color, then change A1 to check that B1 and both highlights update.
Link a destination cell to its source with a formulaApply matching highlights based on the source valueOpen and edit Microsoft Excel XLSX filesWork with a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Can an Excel formula copy a cell’s fill color?

No. A formula such as =A1 returns the cell’s value, not its fill. Use Home > Conditional Formatting to recreate the color based on the source value.

Will the destination color change if I manually change the source fill?

No. Value-based conditional formatting responds to the rule’s condition, not a manual fill change. Update the conditional formatting rule if you want a different value-based color.

How do I use different colors for different source values?

Select both cells and create a separate rule under Home > Conditional Formatting > New Rule for each value, such as =$A$1="Yes" and =$A$1="No". Assign a different fill to each rule.

How can I keep the linked cell blank when the source is empty?

In the destination cell, enter =IF(A1="","",A1), replacing A1 with your source reference. The destination will display an empty string when the source is blank.