excel2007.Tips.Net Welcome toExcel2007.Tips.Net

Helpful Links

Excel 2007 Home
Tips.Net Home

Ask a Question
Make a Comment

Family Tips
Gardening Tips
Legal Tips
Wedding Tips

Newest Tips

Controlling How Excel Adjusts Capital Letters

Numbers Mysteriously Divided by 100

Counting Unique Names

Copying Filtering Results

Centering Your Worksheet Data

Displaying Comment Boxes where You Want Them

Turning the Formula Bar On and Off

 

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:

Create Rock-Solid Lists! Bulleted and numbered lists can help make your writing clearer and easier to follow. If not done properly, however, they can be a nightmare to work with. Discover the ins and outs of Word's lists with this great reference available in two versions. Check out Word Bullets and Numbering today!