
Tips.Net > ExcelTips Home > Formatting > Conditionally Formatting an Entire Row
Summary: Conditional formatting is a great tool, allowing you to adjust formatting dynamically based on the contents of your worksheet. Sometimes it can be confusing to put together a conditional format that affects more than just a single cell, as in the case of a format to be applied to an entire row. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, and Excel 2003.)
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:
=$E3>40000
This formula 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.
Tip #2798 applies to Microsoft Excel versions: 97 2000 2002 2003
PivotTables Got You Perplexed? Learn the ins and outs of this powerful data-crunching tool. ExcelTips: PivotTables for the Faint of Heart makes it easy.
If you have tons of data to analyze, one of the best tools in Excel's arsenal is the PivotTable. Learn how to use this tool to analyze your data. (more information...)
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site