How to format entire row based on one cell in Excel?
Supposing you have multiple rows and columns data in Excel, and you want to format entire row based on the cell value in column, for instance, you want to highlight entire row with green color based on the cell value greater than 20 in column Unit as below screenshot shown, how could you quickly get it done? This article introduces some quick tricks to quickly format entire row based on one cell in Excel.
In Excel, you can apply Conditional Formatting utility to format row based on cell value.
1. Select the data range excludes column headers, and click Home > Conditional Formatting > New Rule. See screenshot:
2. In the New Formatting Rule dialog, click Use a formula to determine which cells to format option under Select a Rule Type section, and type this formula =$B2>20 into the Format values where this formula is true textbox. See screenshot:
3. Then click Format to go to format cells as you need. In our case, we select a green fill color on the Fill tab in the Format Cells dialog box. See screenshot:
4. Click OK > OK to close dialogs, and now the rows are formatted as green background based on the cell value.
1. You can change the formula in New Formatting Rule dialog as you need.
|Smaller than X||=$B2<X|
|Larger than X||=$B2>X|
|Smaller than X but larger than Y||=AND($B2>Y, $B2<X)|
|Smaller than X or larger than Y||=OR($B2>Y, $B2<X)|
2. In above formulas, B2 is the first cell of column you based on in your selected range.
Actually, with the Select Specific Cells utility of Kutools for Excel – a handy add in tool, also can help you select the entire rows based on cell value first, and then format them as you need.
|Kutools for Excel, with more than 300 handy functions, makes your jobs more easier.|
After free installing Kutools for Excel, please do as below:
1. Select the column range excluding column header that you will format rows based on, and click Kutools > Select > Select Specific Cells. See screenshot:
2. In the Select Specific Cells dialog, check Entire row option under Selection type section, and then specify the criterion you want to base on under Specific type section. See screenshot:
3. Click Ok, and a dialog pops out to remind you how many cells are selected. See screenshot:
4. Click OK to close the dialogs, and keep the rows are selected, and then go to format the rows under Home tab as you need. See screenshot:
- How to count/sum cells by colors with conditional formatting in Excel?
- How to change cell size to inches/cm/mm/pixels in Excel?
- How to find all underlined texts in a range or whole worksheet in Excel?
- How to find largest negative value (less than 0) in Excel?
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!