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.

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


1

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. (See Figure 1.)
  7. Figure 1. The New Formatting Rule dialog box.

  8. In the Select a Rule Type area at the top of the dialog box, choose Use a Formula to Determine Which Cells to Format. (See Figure 2.)
  9. Figure 2. Use a Formula to Determine Which Cells to Format.

  10. In the formula space, enter the following formula: =$E3>40000
  11. Click the Format button. Excel displays the Format Cells dialog box. (See Figure 3.)
  12. Figure 3. The Format Cells dialog box.

  13. Using the controls in the dialog box, specify how you want the cells that are greater than 40,000 to be displayed.
  14. Click OK to dismiss the Format Cells dialog box.
  15. Click OK to accept your conditional format.

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.

Author Bio

Allen Wyatt

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. ...

MORE FROM ALLEN

Quickly Changing Columns

One of the tools on the Formatting toolbar is the Columns tool. You can use this tool to make quick changes to the number ...

Discover More

Changing Space between the Footnote Separator and Footnotes

When you add footnotes to a document, Word separates those footnotes from the document body with a separator line. Here's ...

Discover More

Displaying Edits by Date

Track Changes is a great tool; it allows you to see what changes were made in a document and then determine whether you ...

Discover More

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!

More ExcelTips (ribbon)

Deleting Conditional Formatting

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 More

Changing Font Face and Size Conditionally

Conditional formatting does not allow you to change the typeface and font size used in a cell. You can write your own ...

Discover More

Highlighting Greater Than Average Dry Durations

If you need to find whether the duration between two dates is greater than the average of all durations, you'll find the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 2?

2024-03-04 09:11:45

Kit

THANK YOU so much for this tip!!!


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.