Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Conditionally Formatting an Entire Row.
Written by Allen Wyatt (last updated March 2, 2024)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021
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:
Figure 1. The New Formatting Rule dialog box.
Figure 2. Use a Formula to Determine Which Cells to Format.
Figure 3. The Format Cells dialog box.
The formula used in the conditional format (step 8) 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 (7360) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Excel here: Conditionally Formatting an Entire Row.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
After you've applied a conditional format to a cell, you may have a need to later delete that format so that the cell is ...
Discover MoreConditional formatting does not allow you to change the typeface and font size used in a cell. You can write your own ...
Discover MoreIf you need to find whether the duration between two dates is greater than the average of all durations, you'll find the ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2024-03-04 09:11:45
Kit
THANK YOU so much for this tip!!!
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments