Highlight a Whole Row Based on One Cell's Value
How to highlight a whole row in Excel or Google Sheets when one cell says Done: the =$D2="Done" formula, why the dollar sign matters, the steps and AND for two conditions.

To colour a whole row when one cell says Done, apply a custom formula rule to the full row range and anchor the formula on the status column with a dollar sign. The rule works the same way in Excel and Google Sheets. The Conditional Formatting Generator writes the formula and the range for you.
The formula
Assume the status is in column D, the data starts in row 2 and the table runs from A to F. The rule is applied to A2:F100 with this formula:
=$D2="Done"
The formula is written for the first cell of the range, A2, and the application adjusts it for every other cell. The dollar sign in front of D fixes the column, and the missing dollar sign in front of 2 lets the row change. For row 5, every cell from A5 to F5 tests D5.

In the generator, pick the rule Highlight the whole row by one cell's value, enter the range A2:F100 under Range to format (whole rows), the column D under Column to test and the value Done. These are the values the tool opens with. The library has 27 rules, and they are built in the browser, so no data leaves your computer for this step.
Why the $ before the column matters
Without the dollar sign the formula is =D2="Done". Now the column moves along with the cell. In column E the formula tests E2, in column F it tests F2, and so on. Only the cells in column D itself are coloured, and only when they say Done. The rest of the row stays plain, which is the most common reason a "whole row" rule colours a single cell.
The rule for the dollar sign is short:
- $D2 fixes the column and lets the row change. Use it for a whole-row rule.
- D$2 fixes the row. Use it when you test a header cell.
- $D$2 fixes both, so every cell tests the same single cell.
If the colour lands on the wrong row, the formula is usually anchored on a different row from the first row of the range. The formula must be written for the first row of the selected range, here row 2. The generator checks the rules that the AI writes for this reason and shows a warning when the anchoring looks wrong.
Steps in Excel and Google Sheets
In Excel:
- Select A2:F100.
- Open Home > Conditional Formatting > New Rule.
- Choose Use a formula to determine which cells to format.
- Enter
=$D2="Done", click Format, choose a fill colour and confirm.
In Google Sheets:
- Select A2:F100.
- Open Format > Conditional formatting.
- Under Format cells if, choose Custom formula is.
- Enter
=$D2="Done", choose a fill colour and click Done.

Both programs use the same formula. If your Excel expects semicolons between arguments, replace the commas in formulas that have several arguments, as in the AND example below. The vendors describe the dialogs in their help pages: Google has Use conditional formatting rules in Google Sheets, and for Excel see Use conditional formatting to highlight information in Excel.
Two conditions with AND
A rule with two conditions is not in the library, so use the second part of the generator, Describe your own rule. Write what the rule should do, for example "highlight the row when Status in E is Overdue and Amount in D is over 1000", enter the range A2:G200, choose the app Excel and press Describe your own rule. This part uses AI, so the description, the range and the app are sent to our server and to the AI provider. The result is:
=AND($E2="Overdue",$D2>1000)

Both references keep the dollar sign in front of the column and no dollar sign in front of the row, so each row tests its own cells. Use OR instead of AND to colour the row when either condition is true. The same pattern is used in the guide Highlight Duplicates in One Column With a Formula, which applies a different test to one column.
Limits: no whole columns
The generator does not accept whole columns such as A:A. Use a bounded range such as A2:A1000, or for a whole row rule A2:F1000. A bounded range keeps the rule fast, and it starts at row 2, so the header row is not coloured. Extend the range when the table grows past the last row.
The rule colours the cells, and nothing else happens. If you also want an action when the status changes, for example an email to the owner, use the Apps Script Automation Generator. The steps are in Send an Email When a Google Sheets Cell Changes.
Do it with your own data
Open the Conditional Formatting Generator, pick Highlight the whole row by one cell's value and enter your range, column and value. Copy the formula into the rule dialog of your program and check the first and last rows.