Excel.Tips.Net Welcome toExcel.Tips.Net

Helpful Links

Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment

Tips.Net Store

ExcelTips FAQ
ExcelTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
ExcelTips Site

Newest Tips

Removing Borders

Converting to Octal

Filtering Columns for Unique Values

Printing Multiple Worksheets on a Single Page

Changing the Default Font

Creating a Drawing Object

Determining a Value of a Cell

 

Conditionally Formatting an Entire 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. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)

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 if you are using Excel 2007:

  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:
     =$E3>40000
  1. Click the Format button. Excel displays the Format Cells dialog box. (Click here to see a related figure.)
  2. Using the controls in the dialog box, specify how you want the cells that are greater than 40,000 to be displayed.
  3. Click OK to dismiss the Format Cells dialog box.
  4. Click OK to accept your conditional format.

Follow these steps if you are using an older version of Excel:

  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. Choose Conditional Format from the Format menu. Excel displays the Conditional Formatting dialog box.
  5. In the left-most drop-down list for Condition 1, select Formula Is.
  6. In the formula space just to the right of the drop-down list, enter the following formula:
     =$E3>40000
  1. Click the Format button. Excel displays the Format Cells dialog box.
  2. Using the controls in the dialog box, specify how you want the cells that are greater than 40,000 to be displayed.
  3. Click OK to dismiss the Format Cells dialog box.
  4. 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.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2798) applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003 | 2007

Save Time and Money! Many people need to keep track of employee time, but don't know where to start when it comes to creating a spreadsheet. Here's a way to save time, effort, and money with ready-to-use timesheet templates.
 
Check out Timesheet Templates today!