Formatting Issues

How to Apply Excel Conditional Formatting Borders Without Changing Fill Color

Khadija KhanKhadija Khan Oct 28, 2026 868 views

Question details

The user wants to apply a cell border using conditional formatting without changing or overriding the existing fill color of the cell.

Apply Excel Conditional Formatting Borders Without Changing Fill Color
Product
Excel
Device & OS
not provided
Scenario
Setting up conditional formatting rules to highlight specific data with borders while preserving the original background colors assigned to those cells.
Observed behavior
The conditional formatting rule must be configured strictly to apply line borders, ensuring the background fill parameter remains inactive or empty.
Before you start

Ensure you have selected the correct range of cells before creating or editing your conditional formatting rules. It is also helpful to review the 'Manage Rules' dialog to clear any conflicting legacy rules in the selected scope.

Solution 1Recommended

Configure the Conditional Formatting Rule with No Fill

By explicitly setting the fill option to 'No Color' inside the conditional formatting configuration, you instruct the software to apply only the border formatting.

In Excel, conditional formatting rules apply comprehensive formats. If a fill color is inadvertently set during rule creation, it will replace the cell's standard fill. Editing the specific rule to remove the fill color format resolves this issue.

1
Select the target cells

Highlight the range of cells or columns where you want to apply the conditional formatting border.

2
Open the Conditional Formatting menu

Navigate to the Home tab on the ribbon, click on 'Conditional Formatting', and select 'Manage Rules'.

3
Edit the specific rule

Select the rule you wish to modify from the list and click 'Edit Rule'. Then, click the 'Format' button to open the Format Cells dialog.

4
Clear the Fill color

Go to the 'Fill' tab within the Format Cells dialog and explicitly click 'No Color' to ensure no background color is applied by this rule.

5
Configure the Border

Switch to the 'Border' tab, choose your desired line style and color, click 'Outline' or select specific borders, and click 'OK' twice to apply the changes.

Configure the Conditional Formatting Rule with No Fill
Rule Order and Conflicts: If you have a separate conditional formatting rule for cell fill colors, ensure 'Stop If True' is unchecked in the rules manager so both border and fill rules can apply simultaneously.
Manage Formatting Easily with WPS Office

Use WPS Spreadsheet for Advanced Conditional Formatting

WPS Spreadsheet offers an intuitive rule manager for handling complex conditional formatting scenarios. You can easily separate border and fill formats to highlight your data accurately, with full compatibility for Microsoft Excel files.

  1. 1. Open your workbook in WPS: Launch WPS Office and open your spreadsheet document.
  2. 2. Access Conditional Formatting: Select your data range, go to the Home tab, and click the 'Conditional Formatting' icon.
  3. 3. Set your formatting condition: Choose 'New Rule', specify your data logic, and click the 'Format' button.
  4. 4. Apply border without fill: Under the Border tab, customize your cell borders. Under the Pattern (Fill) tab, ensure 'No Color' is selected, then click OK to save.
Fully compatible with Microsoft Excel (.xlsx) conditional formatting rules.Intuitive rule manager interface to easily separate border and fill color setups.Free, lightweight, and fast alternative for advanced data analysis and visualization.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my conditional formatting overwrite the cell background color?

This happens if a fill color (even a white fill) was accidentally selected when setting up the conditional formatting rule. To fix this, edit the rule, navigate to the Fill tab in the formatting dialog, and explicitly select 'No Color'.

Can I apply a fill color and a border using two separate conditional formatting rules?

Yes. You can create one rule exclusively for defining the fill color and a second rule just for the border. Make sure the 'Stop If True' checkbox is unchecked for both rules in the Conditional Formatting Rules Manager so that they seamlessly combine.

How do I remove a conditional formatting border without deleting the whole rule?

Go to Home > Conditional Formatting > Manage Rules. Select the rule and click 'Edit Rule', then click 'Format'. Open the Border tab, click the 'None' preset to remove the borders, and save your changes. The rest of your rule conditions will remain intact.

Does the order of conditional formatting rules affect how borders and fills are shown?

Yes. Rules located at the top of the Conditional Formatting Rules Manager take precedence. If a rule at the top dictates a specific fill or border, it will override the formatting of the rules below it unless they format distinct, non-conflicting properties.