Skip to main content

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:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

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...

Description


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!
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations