Mirror a Cell’s Value and Highlight Color in Excel
Question details
Mirror a source cell’s value and display a matching highlight color in another cell.

- 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.
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.
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.
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.
Select A1:B1, then go to Home > Conditional Formatting > New Rule.
Choose Use a formula to determine which cells to format. Enter =$A$1="Yes", select Format > Fill, choose a color, and click OK.
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.
Enter Yes or No in A1 and check that B1 updates and both cells receive the color assigned to that value.
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. Open the spreadsheet: Open your workbook in WPS Spreadsheet and identify the source cell and destination cell, such as A1 and B1.
- 2. Link the value: Select B1, enter =IF(A1="","",A1) in the formula bar, and press Enter.
- 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. 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.

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.




