Formatting Issues

Apply Conditional Formatting to Specific Cells Using Another Excel Table

Steven ParkerSteven Parker Nov 11, 2026 870 views

Question details

The user needs to apply conditional formatting to specific cells based on matching values in another worksheet or table.

How to Apply Conditional Formatting to Specific Cells Using Another Excel Table
Product
Excel
Device & OS
not provided
Scenario
Applying rules to dynamically change cell formatting when values correspond to a reference table on a separate sheet.
Observed behavior
The user requires the correct formula and 'Applies to' range adjustment to ensure only specific targeted cells are highlighted appropriately, rather than entire rows.
Before you start

Before setting up the rule, ensure both your source worksheet and the reference table are open, and clearly define which specific cell ranges on your main sheet map to the reference data on the other sheet.

Solution 1Recommended

Adjust the Conditional Formatting Formula and Applies To Range

Use a custom cross-sheet formula and precisely define the target cells to format specific areas based on another table.

To color specific cells based on another sheet's data, you must configure a custom formula and carefully manage the range it affects. By adjusting the 'Applies to' field, you prevent the formatting from spilling over to entire rows.

1
Select the target cells

Highlight only the specific cells on your main sheet (e.g., A1:A2) where you want the conditional formatting to appear. Avoid selecting entire rows if you only want paired cells to be formatted.

2
Create a new rule

Navigate to the 'Home' tab on the ribbon, click 'Conditional Formatting', and select 'New Rule' from the dropdown menu.

3
Enter the cross-sheet formula

Choose 'Use a formula to determine which cells to format'. Enter a formula that references the second sheet, such as `=A1=Sheet2!$A$1`, ensuring the logic accurately maps your specific data relationship.

4
Choose your formatting style

Click the 'Format' button, select your preferred fill color or font changes to highlight the matching cells, and click 'OK'.

5
Verify the Applies to range

Go to 'Conditional Formatting' > 'Manage Rules'. Verify that the 'Applies to' field displays exactly the range of specific cells you intended. Modify it manually if it incorrectly references full rows.

Adjust the Conditional Formatting Formula and Applies To Range
Check Absolute References: Pay close attention to absolute and relative cell references (the $ symbols) in your custom formula. Proper locking ensures the formula dynamically checks the correct cells in your reference table without breaking as it moves across your target range.
Efficient Spreadsheet Formatting

Use WPS Spreadsheet to Seamlessly Apply Cross-Sheet Conditional Formatting

WPS Spreadsheet provides a highly intuitive conditional formatting tool that perfectly supports cross-sheet formulas, making it simple to highlight specific data cells based on rules established in another table.

  1. 1. Open your workbook: Launch WPS Office and open the file containing your main data and reference sheets.
  2. 2. Select your specific range: Use your mouse to highlight the exact cells you wish to format on the main sheet.
  3. 3. Set up a new rule: Click 'Home' > 'Conditional Formatting' > 'New Rule', then select 'Use a formula' and type your cross-sheet reference.
  4. 4. Apply format and save: Set the desired cell color, click 'OK' to apply the formatting, and save your document to retain the rules.
Easily build formulas that reference external sheets and data tables.Fully compatible with Microsoft Excel (.xlsx) conditional formatting rules.Manage 'Applies to' ranges easily without accidental row-wide spillage.Free to use for daily data management and spreadsheet analysis.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my conditional formatting coloring the whole row instead of just the specific cells?

This usually happens when the 'Applies to' range in the Conditional Formatting Rules Manager is accidentally set to an entire row (e.g., =$1:$1). You can fix this by opening the Rules Manager and changing the 'Applies to' range to only the specific cells you need formatted (e.g., =$A$1:$B$1).

Can I use VLOOKUP or COUNTIF in a conditional formatting formula referencing another sheet?

Yes, you can use lookup functions. For example, using a formula like `=COUNTIF(Sheet2!$A$1:$A$100, A1)>0` will successfully check if the value in cell A1 exists within the specified range on Sheet2 and apply the formatting if a match is found.

Why isn't my conditional formatting updating when I change values on the reference sheet?

This could occur if your workbook calculation option is set to 'Manual'. Go to the Formulas tab and ensure Calculation Options are set to 'Automatic'. Additionally, verify that your formula references are pointing to the correct cells and using the proper absolute locking ($).