How do I use conditional formatting if a cell is less than or equal to a value?

Conditional formatting allows you to format a cell if it meets certain criteria. To use conditional formatting if a cell is less than or equal to a value, select the cell or range of cells you wish to format, click the Conditional Formatting command on the Home tab, select the “Less Than or Equal To” option, enter the value you want to compare the cell or range of cells to, and then select the formatting you want to apply.


To apply conditional formatting to cells that are less than or equal to some value in Excel, you can use the New Rule option under the Conditional Formatting dropdown menu within the Home tab.

The following example shows how to use this option in practice.

Example: Apply Conditional Formatting if Cell is Less Than or Equal to Value

Suppose we have the following dataset in Excel that shows the number of points scored by various basketball players during three different games:

Now suppose that we would like to apply conditional formatting to each cell in the dataset that has a value less than or equal to 20.

First, type the value 20 into cell H1:

Next, highlight the cells in the range B2:D8, then click the Conditional Formatting dropdown menu on the Home tab and then click New Rule:

In the new window that appears, click Use a formula to determine which cells to format, then type =B2<=$H$1 in the box, then click the Format button and choose a fill color to use.

Excel conditional formatting less than or equal to

Once we press OK, all of the cells in the range B2:D8 that have a value less than or equal to 20 will be highlighted:

If we change the cutoff value to a different number, such as 30, then the conditional formatting rule will automatically adjust to only highlight cells with a value less than or equal to 30:

Excel: Apply Conditional Formatting if Cell Contains Text

x