When working with conditional formats, you'll often discover times when you need to apply multiple conditions to a single cell. How you define a single condition is described in other ExcelTips, but Excel allows you to define many conditions that can all apply to the same cell or range of cells.
Begin by selecting the cells for which you want to define conditional formatting rules. Then, with the Home tab of the ribbon displayed, click Conditional Formatting in the Styles group. From the resulting list of options, select Manage Rules. Excel displays the Conditional Formatting Rules Manager. (See Figure 1.)
Figure 1. The Conditional Formatting Rules Manager.
The Conditional Formatting Rules Manager is nothing but a list of the rules which have been defined for the selected cells. Each rule is shown on a separate line, and you can work with the rules by clicking one of the available buttons:
Rules are always evaluated in the order in which they appear in the Conditional Formatting Rules Manager. You can modify the evaluation order by using the up and down arrow tools.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6755) applies to Microsoft Excel 2007, 2010, 2013, and 2016.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
The conditional formatting capabilities of Excel are very helpful when you want to call attention to different values ...
Discover MoreWhen preparing a report for others to use, it is not unusual to add a horizontal line between major sections of the ...
Discover MoreSometimes the hardest part of getting your conditional formatting rules to work properly is figuring out the proper way ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2021-12-23 19:17:08
Phil
I'd just like to offer my solution to help with Conditional Formatting - For ages, I've had a button in my QAToolbar to run a macro to find all or same as selected cell's cond. formats. Here's the macro; simple enough, but saves me endless time -
'
Sub Condl_Frmts()
' Select all cells with the same conditional formatting as current selected cell.
' OR select all cells with ANY conditional formatting if multiple-cells selected.
'
On Error GoTo Err1
If ActiveSheet.ProtectContents = True Then
Call MsgBox("Contents locked - can't get info", , "Sub - Condl_Frmts")
Exit Sub '---->
End If
'
If Selection.Count = 1 Then
ActiveCell.SpecialCells(xlCellTypeSameFormatConditions).Select
Else
ActiveCell.SpecialCells(xlCellTypeAllFormatConditions).Select
End If
Exit Sub '---->
Err1:
Call MsgBox("No similar Cond. Format cells found.", , "Sub - Condl_Frmts")
End Sub
'
2017-09-17 09:57:54
Tim
Your tips have been quite helpful. Thank you.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2022 Sharon Parq Associates, Inc.
Comments