Search Contextures Sites ![]()
Format Entire Row Based on One Cell
- Format entire row with Conditional Formatting
- Video: Format Row with Conditional Formatting
- Format the Cells
- Download the Sample File
- More Excel Conditional Formatting Tutorials
For Excel 2003 instructions, please see:Format Entire Row Based on One Cell - Excel 2003
Format entire row with Conditional Formatting
You can apply conditional formatting that checks the value in one cell, and applies formatting to other cells, based on that value. For example, if the values in column B are over a set value, make the row blue..
In this example, we'll colour cells blue, if the number of units, in column B, is greater than 75. At a glance, we'll be able to see which dates have a high number of units.
Video: Format Row with Conditional Formatting
You can watch the steps in this video, and the written instructions are below the video.
Format the Cells
- Select the cells that you want to format (A2:D4 in this example)
- On the Ribbon's Home tab, click Conditional Formatting, then click New Rule
- In the New Formatting Rule window, click Use a Formula to Determine Which Cells to Format
- In the rule box, enter a formula that refers to the active cell in the selection. In this example, we selected A2:D4, and cell A2 is the active cell. So, in the formula, we'll refer to cell B2, because it's in the active row.
=$B2>75
We use an absolute reference to column B ($B), to ensure that the conditional formatting in all columns refers to the value in column B.
If we used a relative reference (B), the formula will be adjusted in each column, and won't work properly. Each cell would refer to the cell to its right, instead of refering to the cell in column B.
- Click the Format button.
- In the Format Cells dialog box, select the formatting options that you want. In this example a medium blue fill colour was selected. You could also select a Font format, and a Border format.
- Click OK to close the Format Cells dialog box.
Download the Sample File
Download a zipped sample file for this Excel tutorial
Excel Conditional Formatting Tutorials
- Excel Conditional Formatting -- Introduction
- Excel Conditional Formatting -- Multiple Cells
- Excel Conditional Formatting -- Examples
- Excel Conditional Formatting -- Documentation
- Excel Conditional Formatting -- Data Bars
Contextures Inc., Copyright ©2013
All rights reserved.
Last updated: April 10, 2013 2:20 PM