How do you highlight a cell in Excel if value is greater than another cell?

Excel for Microsoft 365 for Mac Excel 2021 for Mac Excel 2019 for Mac Excel 2016 for Mac More...Less

Conditional formatting makes it easy to highlight certain values or make particular cells easy to identify. This changes the appearance of a cell range based on a condition (or criteria). You can use conditional formatting to highlight cells that contain values which meet a certain condition. Or you can format a whole cell range and vary the exact format as the value of each cell varies.

The following example shows temperature information with conditional formatting applied to the top 20% and bottom 20% values:

And here's an example with 3-color scale conditional formatting applied:

Apply conditional formatting

  1. Select the range of cells, the table, or the whole sheet that you want to apply conditional formatting to.

  2. On the Home tab, click Conditional Formatting.

  3. Do one of the following:

To highlight

Do this

Values in specific cells. Examples are dates after this week, or numbers between 50 and 100, or the bottom 10% of scores.

Point to Highlight Cells Rules or Top/Bottom Rules, and then click the appropriate option.

The relationship of values in a cell range. Extends a band of color across the cell. Examples are comparisons of prices or populations in the largest cities.

Point to Data Bars, and then click the fill that you want.

The relationship of values in a cell range. Applies a color scale where the intensity of the cell's color reflects the value's placement toward the top or bottom of the range. An example is sales distributions across regions.

Point to Color Scales, and then click the scale that you want.

A cell range that contains three to five groups of values, where each group has its own threshold. For example, you might assign a set of three icons to highlight cells that reflect sales below $80,000, below $60,000, and below $40,000. Or you might assign a 5-point rating system for automobiles and apply a set of five icons.

Point to Icon Sets, and then click a set.

Apply conditional formatting to text

  1. Select the range of cells, the table, or the whole sheet that you want to apply conditional formatting to.

  2. On the Home tab, click Conditional Formatting, point to Highlight Cells Rules, and then click Text that Contains.

  3. In the box next to containing, type the text that you want to highlight, and then click OK.

Create a custom conditional formatting rule

  1. Select the range of cells, the table, or the whole sheet that you want to apply conditional formatting to.

  2. On the Home tab, click Conditional Formatting, and then click New Rule.

  3. Select a style, for example, 3-Color Scale, select the conditions that you want, and then click OK.

Format only unique or duplicate cells

  1. Select the range of cells, the table, or the whole sheet that you want to apply conditional formatting to.

  2. On the Home tab, click Conditional Formatting, point to Highlight Cells Rules, and then click Duplicate Values.

  3. In the values in the selected range pop-up menu, click unique or duplicate.

Copy conditional formatting to additional cells

  1. Select the cell that has the conditional formatting that you want to copy.

  2. On the Home tab, click Format 

    , and then select the cells where you want to copy the conditional formatting.

Find cells that have conditional formatting

If only some part of your sheet has conditional formatting applied, you can quickly locate the cells that are formatted so that you can copy, change, or delete the formatting of those cells.

  1. Click any cell.

    If you want to find only cells with a specific conditional format, start by clicking a cell that has that format.

  2. On the Edit menu, click Find, and then click Go To.

  3. Click Special, and then click Conditional formats.

  4. If you want to locate only cells with the specific conditional format of the cell that you selected in step 1, under Options, click Same.

Clear conditional formatting from a selection

  1. Select the cells that have the conditional formatting that you want to remove.

  2. On the Home tab, click Conditional Formatting, point to Clear Rules, and then click the option that you want.

    Tip: To remove all conditional formats and all other cell formats for selected cells, on the Edit menu, point to Clear, and then click Formats.

Change a conditional formatting rule

You can customize the default rules for conditional formats to fit your requirements. You can change comparison operators, thresholds, colors, and icons.

  1. Click in the range that contains the conditional formatting rule that you want to change.

  2. On the Home tab, click Conditional Formatting, and then click Manage Rules.

  3. Select the rule, and then click Edit Rule.

  4. Make the changes that you want, click OK, and then click OK again.

Delete a conditional formatting rule

You can delete conditional formats that you no longer need.

  1. Click in the range that contains the conditional formatting rule that you want to change.

  2. On the Home tab, click Conditional Formatting, and then click Manage Rules.

  3. Select the rule, and then click

    in the lower-left.

  4. Click OK.

Im having a lot of trouble figuring this out and after a ton of search-fu I need to ask an expert. I need a formula that will change the background color of a cell in column G if its value is greater than the value of the cell next to it in column F. Ive tried all kinds of formulas and Im not sure if I need to select all cells in column G then go to Conditional Formatting>Highlight Cell Rules>Greater Than to apply a forumla or just use New Rule on a single cell and drag it out to the rest of the column. I seem to be finding conflicting answers.

Neuester Beitrag

Stichworte