Conditionally formatting a row based on the value in one cell in Microsoft Excel

If we have a worksheet where we want to format a row based on the value in a cell, for example, we want to highlight all rows where the invoice date is more than 30 days old.

In this case I want to highlight rows where the value in column C is greater than 30.

Using Microsoft Excel 2007, Microsoft Excel 2010, Microsoft Excel 2013 or Microsoft Excel 2016:

Select the cell area to which the formatting should be applied. Do not include the column headings in your selection.

On the Home tab, in the Styles group, click Conditional Formatting, then from the dropdown, select Manage Rules. The Conditional Formatting Rules Manager will be displayed.

Click New Rule. The New Formatting Rule dialog box will be displayed. Select Use a formula to determine which cells to format.

In the Format values where this formula is true text box, type =$C2>30.

Click Format. Select the Fill tab. Click on the colour which you would like the row highlighted in.

Click OK. Click OK. The rows where the value in column C is greater than 30 will be coloured.

Using Microsoft Excel 2003 or earlier:

Select the cell area to which the formatting should be applied. Do not include the column headings in your selection.

Click Format – Conditional Formatting. The Conditional Formatting dialog box will be displayed.

From the first dropdown, select Formula is.

In the second box, type =$C2>30.

Click Format. The Format Cells dialog box will be displayed. Select the Patterns tab. Click on the colour which you would like the row highlighted in.

Click OK. Click OK. The rows where the value in column C is greater than 30 will be coloured.

Find out more about our Microsoft Excel training London, UK or our Microsoft Excel training in Dorset, Wiltshire and Hampshire.

Find out about our Microsoft Excel training Sydney, Australia.

About jdonbavand

I am a trainer of Microsoft Office, Microsoft Project and Crystal Reports. I have called my blog "If Only I'd Known That...." because I hear it so many times in training sessions. In fact, if only I had a £100 for every time someone says "If only I'd known that." ....
This entry was posted in Microsoft Excel, Microsoft Excel 2003, Microsoft Excel 2007, Microsoft Excel 2010, Microsoft Excel 2013, Microsoft Excel 2016 and tagged , . Bookmark the permalink.

Leave a comment