Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, and 2016. 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

by Allen Wyatt
(last updated July 2, 2018)

6

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

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

  12. Using the controls in the dialog box, specify how you want the cells that are greater than 40,000 to be displayed.
  13. Click OK to dismiss the Format Cells dialog box.
  14. 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, and 2016. 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

Sheets for Months

One common type of workbook used in offices is one that contains a single worksheet for each month of the year. If you ...

Discover More

Deleting a Hyperlink

Hyperlinks can be helpful in some worksheets but bothersome in others. Here's how to get rid of any hyperlinks you don't ...

Discover More

Maintaining Formatting when Inserting Documents

Word allows you to easily insert the contents of one document into another. Doing so, however, may result in unintended ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

Conditionally Highlighting Cells Containing Formulas

Excel's conditional formatting feature allows you to create formats that are based on a wide variety of criteria. If you ...

Discover More

Highlighting Cells Containing both Letters and Numbers

Conditional formatting is a great tool for changing the format of cells based on whether certain conditions (rules) are ...

Discover More

Detecting Errors in Conditional Formatting Formulas

If an error exists in a formula tucked inside a conditional format, you may never know it is there. There are ways to ...

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}] 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 five minus 4?

2017-09-22 13:15:13

Chuck Trese

@ Gregg, the "$" in the formula is critical. (in the example, "$E3", the dollar sign is important)


2017-09-22 11:06:24

Gregg

I'm finding when I use this formula only the first cell in a row gets highlighted, not the entire row. Am I missing something?


2017-09-22 09:13:36

Kit

UPDATE: I went back and tried again and it worked. :) Although one thing I'm finding it that it will highlight some letters...
I am not getting success with these directions. Does anyone have any tips on this?


2017-09-22 08:52:35

Kit

I am not getting success with these directions. Does anyone have any tips on this?


2017-09-22 06:05:59

Barry

@Glen

Yes you can. I use this all the time to highlight overdue payments. I'd use $E3>TODAY()+7 where E3 is a due date.
NOTE: the "$" in the formula is crucially important for this to work.

In fact I have a second condition which kicks in at +14 days which turns the row red (the first condition turns the row amber).


2016-11-06 07:19:08

Glen McKeown

Is it possible to use this approach when the election criteria is a date within 7 days of current date. I can use that to highlight a single cell, but not the whole row.

I am using XL 2011 for Mac


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.