Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to remove conditional formatting but keep format in Excel?

In Excel, you can apply Conditional Formatting to format cells or rows based on specific criterion. But in some cases, you may want to remove the conditional formatting rules but keep the format alone in the cells. Here in this article, you can find the tricks on removing conditional formatting but keeping format in Excel.

Remove conditional formatting but keep format with VBA

Easily format cells based on criteria by Kutools for Excel good idea3


Select Specific Cells

With Kutools for Excel's Select Specific Cells utility, you can select cells/row/columns based on one ore two criteria, then format them as you need, such change the font size, background and so on.

doc select specific cells

arrow blue right bubble Remove conditional formatting but keep format with VBA


In Excel, there is no direct method to remove conditional formatting except VBA.

1. Enable the sheet you want to remove conditional formatting rules but keep format, and press Alt + F11 keys to open Microsoft Visual Basic for Applications window.

2 Click Insert > Module, and paste below VBA to the Module script. See screenshot:

VBA: Remove conditional formatting rules but keep format.

Sub Keep_Format()
'UpdatebyExtendoffice20160614
    Dim xRg As Range
    Dim xTxt As String
    Dim xCell As Range
    On Error Resume Next
    If ActiveWindow.RangeSelection.Count > 1 Then
      xTxt = ActiveWindow.RangeSelection.AddressLocal
    Else
      xTxt = ActiveSheet.UsedRange.AddressLocal
    End If
    Set xRg = Application.InputBox("Select range:", "Kutools for Excel", xTxt, , , , , 8)
    If xRg Is Nothing Then Exit Sub
    For Each xCell In xRg
        With xCell
          .Font.FontStyle = .DisplayFormat.Font.FontStyle
          .Interior.Color = .DisplayFormat.Interior.Color
          .Font.Strikethrough = .DisplayFormat.Font.Strikethrough
        End With
    Next
    xRg.FormatConditions.Delete
End Sub

doc remove conditional formatting rule but keep format 1

3. Press F5 key to run the code, and a dialog pops out to select a range to remove conditional formatting. See screenshot:
doc remove conditional formatting rule but keep format 2

4. Click OK, the conditional formatting rules have been removed from the specify range but keep format.


arrow blue right bubble Easily format cells based on criteria by Kutools for Excel

Here is a handy tool – Kutools for Excel, you can quickly and easily format cells based on criteria without any formulas by its Select Specific Cells utility.

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

After free installing Kutools for Excel, please do as below:

1. Select the range you want to format, and click Kutools > Select > Select Specific Cells. See screenshot:
doc remove conditional formatting rule but keep format 3

2. In the Select Specific Cells dialog, check one option as you need from Selection type section, and then specify the criteria from the drop down list and the textbox under Specific type section. See screenshot:
doc remove conditional formatting rule but keep format 4

3. Click Ok. And then a dialog box comes out and shows how many cells have been selected. Please click OK to close this dialog box.
doc remove conditional formatting rule but keep format 5

4. Then you can see the cells based on criteria have been selected, and then right click selected cells and choose Format Cells form the context menu, and in the popping Format Cells dialog, specify the format you want. See screenshot:
doc remove conditional formatting rule but keep format 6

5. Click OK. Now the selected cells have been formatted without any conditional formatting rules. See screenshot:

                                                     Format Cells                                                                                 Format Rows
doc remove conditional formatting rule but keep format 7doc remove conditional formatting rule but keep format 8

doc download 1


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.