excel2007.Tips.Net Welcome toExcel2007.Tips.Net

Helpful Links

Excel 2007 Home
Tips.Net Home

Ask a Question
Make a Comment

Cooking Tips
ExcelTips
Money Tips
Pest Tips

Newest Tips

Changing a Link's Source

Using Conditional Formatting to Shade Rows

Editing by Moving and Copying

Making Sure Duplicate Names Aren't Entered

Applying a Conditional Format to a Full Row

Hiding Worksheet Tabs

Making Cells Flash

 

Applying a Conditional Format to a Full Row

Summary: Need to conditionally highlight an entire row based on the contents of a single cell in each row? This tip explains how you can set up the conditional format that will do the trick.

Graham described a problem he was having with a worksheet. He wanted to use conditional formatting to highlight all the cells in a row, if the value in column E was greater than a particular value. He was having problems coming up with the proper way to do that.

Suppose for a moment that your data is in cells A3:H50. You can apply the proper conditional formatting by following these steps:

  1. Select cell A3.
  2. With A3 still selected, scroll the worksheet so you can see cell H50.
  3. Hold down the Shift key as you click on H50. The entire range A3:H50 should be selected, and A3 should still be the active cell.
  4. Make sure the Home tab of the ribbon is displayed.
  5. Click the Conditional Formatting tool. Excel displays a series of choices.
  6. Click New Rule. Excel displays the New Formatting Rule dialog box.
  7. In the Select a Rule Type area at the top of the dialog box, choose Use a Formula to Determine Which Cells to Format. (Click here to see a related figure.)
  8. In the formula space, enter the following formula:
  9.      =$E3>40000
    
  10. Click the Format button. Excel displays the Format Cells dialog box. (Click here to see a related figure.)
  11. Using the controls in the dialog box, specify how you want the cells that are greater than 40,000 to be displayed.
  12. Click OK to dismiss the Format Cells dialog box.
  13. Click OK to accept your conditional format.

This formula used in the conditional format works because you use the absolute indicator (the dollar sign) just before the column letter. Any reference that has the $ before it is not changed when Excel propagates it throughout a range. In this case, the cell reference will always be to column E, although the row portion of the reference can change.

Related Tips:

Tremendous Table Tips! We often take tables for granted, but Word includes some very powerful ways you can present your tabular data. Discover how to make your tables better, easier to understand, and more effective. Check out WordTips: Terrific Tables today!