How to Highlight an Entire Row if a Cell Contains Text in Excel
Free formula generator
Open SEARCH formula generatorHighlighting entire rows based on a cell's content makes data patterns immediately visible. Here's how to do it with Conditional Formatting.
Step 1: Select Your Data Range
Select the full range you want to potentially highlight (e.g., A2:E100, not just one column).
Step 2: Open Conditional Formatting
Go to Home → Conditional Formatting → New Rule → Use a formula to determine which cells to format.
Step 3: Write the Formula
To highlight rows where column B contains the word "Pending":
=$B2="Pending"
Lock the column with $ but leave the row number free — this applies across the entire row.
Highlight Row if Cell Contains Partial Text (Case-Insensitive)
=ISNUMBER(SEARCH("pending",$B2))
SEARCH is case-insensitive and returns the position of the text, or an error if not found. ISNUMBER converts that to TRUE/FALSE.
Highlight Row if Cell Contains Any of Multiple Words
=OR(ISNUMBER(SEARCH("Pending",$B2)),ISNUMBER(SEARCH("Review",$B2)))
Highlight Row Based on Multiple Column Conditions
=AND($C2="High",$D2
Highlights rows where priority is "High" AND the due date has passed.
Step 4: Choose Your Highlight Color
Click Format → Fill, pick a color, and click OK twice.
FAQ
Why does my Conditional Formatting only highlight one cell?
Make sure you selected the entire row range before creating the rule, and that the column reference uses a $ before the letter (e.g., $B2, not B2).
How do I highlight a row if a cell is not empty?
Use the formula =$B2<>"" to highlight rows where column B has any value.
How do I highlight rows with multiple conditions?
Use AND() or OR() inside your formula: =AND($B2="Done", $C2>10)
📋 Related Formula Tools
Want to generate the formula directly? Try our free formula generators:
📬 Get Weekly Excel Tips
Join thousands of Excel users who receive our weekly formula tips, tricks, and productivity hacks.
Subscribe Free →📖 Continue Reading
How to Get First Word from Cell in Excel (3 Formulas Compared)
Learn 3 Excel formulas to extract the first word from a cell — LEFT+FIND for all versions, TEXTBEFORE for Excel 365. Step-by-step with examples.
How to Calculate Percentage Increase in Excel — Formula & Examples | SheetMaster
Master the Excel percentage increase formula in under 2 minutes. Step-by-step with real examples for sales growth, revenue tracking & YoY comparisons. Copy the formula, done.
Excel Formula to Find Duplicates in Two Columns (Step-by-Step)
Find duplicate values across two columns in Excel using COUNTIF, VLOOKUP, and conditional formatting. Includes formulas to highlight and extract duplicates.
Calculate Business Days Between Two Dates in Excel (NETWORKDAYS)
Use the NETWORKDAYS and NETWORKDAYS.INTL functions to calculate the number of business days between two dates in Excel. Includes examples and holiday handling.