Conditional Formatting Text Excel

If you just need to conditional formatting text excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: select the range, choose Home ▸ Conditional Formatting ▸ New Rule ▸ Use a formula to determine which cells to format, and enter a rule like =$B2>100 written for the top-left cell of the selection.

On this page7
▤Annotated stepsExcel
1

Select the exact range to format, starting at the top-left cell.

2

Choose Home ▸ Conditional Formatting ▸ New Rule ▸ Use a formula to determine which cells to format.

3

Write the formula for the top-left cell: =$B2>100 colors whole rows where column B exceeds 100.

4

For a contains-text rule, use =ISNUMBER(SEARCH("urgent",$A2)).

5

Click Format, set the fill, and confirm with OK.

6

Open Manage Rules to check the Applies to range and rule order; tick Stop If True when a higher rule should win.

=$B2>100
Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

What this does

Conditional formatting applies a fill, font or border automatically while a condition is true and removes it when it stops being true. The built-in presets cover simple cases; a formula rule handles everything else, including formatting a cell based on another cell. Excel evaluates the formula once per cell in the Applies to range, shifting relative references as it moves — so the $ anchors decide what each cell actually tests. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. Treat “conditional formatting text excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a workspace setting that makes a big sheet comfortable to navigate into a method you can reuse, explain, and defend when the workbook leaves your screen.

A worked example

Orders sit in A2:D10 with amounts in column B: B2 is 150, B3 is 80, B4 is 230. Select A2:D10, add the formula rule =$B2>100 and pick a green fill. Rows 2 and 4 turn green across all four columns; row 3 stays plain. $B locks the column while the row number stays relative, so every cell in a row tests its own row’s B value — B$2 would instead compare everything against row 2. A formula rule keeps status visible without manual recoloring: overdue rows, high amounts or matching text get marked the moment the data changes. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.

In Google Sheets

Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. For “conditional formatting text excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.

Common mistakes

  • Writing $B$2 instead of $B2, so every row tests the same single cell.
  • Using B$2 for a row-wise rule — that locks the row, not the column.
  • Writing the formula for the wrong cell: it must evaluate for the top-left cell of the Applies to range.
  • Letting an earlier rule mask a later one instead of reordering in Manage Rules or using Stop If True.
  • Comparing text values with > and expecting numeric behavior.

Frequently asked questions

How do I format a cell based on another cell?

Use a formula rule that references the other cell: select C2:C20 and use =$B2="Done". The formatted range and the tested cell do not have to be the same.

How do I highlight cells that contain specific text?

Use =ISNUMBER(SEARCH("urgent",$A2)) as the rule formula. SEARCH ignores case; use FIND for a case-sensitive match.

What is the Google Sheets equivalent?

Format ▸ Conditional formatting ▸ Custom formula is. The formula works the same way, anchors included, and must start with =.