Loading

Got a version of Excel that uses the
menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)?
**This site is for you!** If you
use a later version of Excel, visit
our *ExcelTips* site focusing on the ribbon interface.

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company.

Learn more about Allen...

ExcelTips FAQ

ExcelTips Resources

Ask an Excel Question

Make a Comment

Free Business Forms

Free Calendars

** Please Note:** This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later),

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:

- Select cell A3.
- With A3 still selected, scroll the worksheet so you can see cell H50.
- 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. - Choose Conditional Format from the Format menu. Excel displays the Conditional Formatting dialog box.
- In the left-most drop-down list for Condition 1, select Formula Is. (See Figure 1.)
- In the formula space just to the right of the drop-down list, enter the following formula:

** Figure 1.** The Conditional Formatting dialog box.

=$E3>40000

- Click the Format button. Excel displays the Format Cells dialog box. (See Figure 2.)
- Using the controls in the dialog box, specify how you want the cells that are greater than 40,000 to be displayed.
- Click OK to dismiss the Format Cells dialog box.
- Click OK to accept your conditional format.

** Figure 2.** The Format Cells dialog box.

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 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Conditionally Formatting an Entire Row.

*Related Tips:*

**Save Time and Supercharge Excel!** Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out *Excel 2010 VBA and Macros* today!

If you copy/Insert a column/row within conditional formatting boundaries, the conditional formatting will stay intact for the new row/column, and extend the boundary to keep all the previous row/columns.

ie. if conditional formating of columns $A-$J is based on $K, you can insert a column at $C, and the conditional formula for the new larger section $A-$K will change to be based on $L

ie. if conditional formating of columns $A-$J is based on $K, you can insert a column at $C, and the conditional formula for the new larger section $A-$K will change to be based on $L

I have a table that has different text every row. The columns are configured so that each day has two columns, value and function, which repeat throughout the month.

I am having trouble with a formula. I have the following:

=COUNTIFS($K2,"0",$M2,"")

to format to a specified color applied to

=$A$2:$JA$216

(the whole table essentially)

The purpose is to highlight the whole row white if the value is 0 and the value two columns over is blank. It is in a constantly updating spreadsheet used to track daily numbers. The blank cell requirement is to ensure that the current days values will highlight the row, overriding the previous days value.

The problem I have is copying the formula to another column to the right as the spreadsheet grows with time. When I copy it, the values remain at "K" and "M" because of the absolute $.

I have experimented with variations to the formula which have not yielded acceptable results.

How do I write a formula, or modify the existing one, to highlight the whole row based on a value, and will also be transferable to the next row without manually altering the formula each time?

I am having trouble with a formula. I have the following:

=COUNTIFS($K2,"0",$M2,"")

to format to a specified color applied to

=$A$2:$JA$216

(the whole table essentially)

The purpose is to highlight the whole row white if the value is 0 and the value two columns over is blank. It is in a constantly updating spreadsheet used to track daily numbers. The blank cell requirement is to ensure that the current days values will highlight the row, overriding the previous days value.

The problem I have is copying the formula to another column to the right as the spreadsheet grows with time. When I copy it, the values remain at "K" and "M" because of the absolute $.

I have experimented with variations to the formula which have not yielded acceptable results.

How do I write a formula, or modify the existing one, to highlight the whole row based on a value, and will also be transferable to the next row without manually altering the formula each time?

Aha! I'm using 2010. I'll try again.

I tried this using the cell contains text "no longer", but it still only formatted the initial specific cell and not the whole ROW. ????