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.

doc format row by cell 1

Format entire row based on one cell with Conditional Formatting

Format entire row based on one cell with Kutools for Excel good idea3


arrow blue right bubble Format entire row based on one cell with Conditional Formatting

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:
doc format row by cell 2

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:
doc format row by cell 3

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:
doc format row by cell 4

4. Click OK > OK to close dialogs, and now the rows are formatted as green background based on the cell value.
doc format row by cell 5

Tips:

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.


arrow blue right bubble Format entire row based on one cell with Kutools for Excel

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:
doc format row by cell 6

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:
doc format row by cell 7

3. Click Ok, and a dialog pops out to remind you how many cells are selected. See screenshot:
doc format row by cell 8

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:
doc format row by cell 9


Relative Articles:


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

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!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.