Sheet Clinic

Conditional formatting based on another cell: where the $ goes

A conditional formatting custom formula colors only column A or skips overdue rows. Lock the column with $C2 and a single date cell with $F$2.

Sheet Clinic editorsPublished
rule=AND($C2<>"Done", $D2<$F$2)

Before =C2="Done" and F2 without $

ACDLP
1TaskStatusDueTest BOverdue test
2Order name badgesIn progress11/7/2026FALSETRUE
3Book the venueDone11/4/2026FALSEFALSE
4Send invitesNot started11/20/2026FALSEFALSE
5Update rosterDone11/13/2026FALSEFALSE
6Print agendasNot started11/10/2026FALSEFALSE
7Collect RSVPsIn progress11/18/2026FALSEFALSE
8Order cateringDone11/9/2026FALSEFALSE
9Set up sign-in tableIn progress11/11/2026FALSEFALSE

What changed

  1. C2 became $C2
  2. F2 became $F$2

After both rules locked

ACDLP
1TaskStatusDueTest BOverdue test
2Order name badgesIn progress11/7/2026FALSETRUE
3Book the venueDone11/4/2026TRUEFALSE
4Send invitesNot started11/20/2026FALSEFALSE
5Update rosterDone11/13/2026TRUEFALSE
6Print agendasNot started11/10/2026FALSETRUE
7Collect RSVPsIn progress11/18/2026FALSEFALSE
8Order cateringDone11/9/2026TRUEFALSE
9Set up sign-in tableIn progress11/11/2026FALSEFALSE
Figure 1. Columns L and P hold the two rule formulas typed into cells, so the TRUE and FALSE values show what each rule sees. Column L is the Done rule as it lands on column B. Column P is the overdue rule as it lands on column A.

Only column A turns green when the rule was supposed to color the whole row, or a task that is overdue stays white. Both come from where the dollar signs sit in the custom formula of a conditional formatting rule. A rule that colors a whole row from one column needs a dollar sign in front of that column's letter, so the green rule here is =$C2="Done" and the broken one is =C2="Done". A single cell that every row is compared with, like the report date in F2, needs one on both the letter and the number, $F$2.

The copy runs six versions of these rules over one list of eight tasks, two rules per tab on three tabs. Each tab has a green rule for tasks marked Done in column C and a red rule for unfinished tasks due before the report date in F2, which holds 11/11/2026. None of these rules raised an error. Each one ran, saved, and colored something. They differ only in which cells, and the table lines them up against the same data.

Rule as typed, range and tabCells that changed color
=C2="Done"
on A2:D9, Broken tab
Green in A3, A5 and A8 only. Columns B to D of those rows stay white.
=$C2="Done"
on A2:D9, Fixed tab
Green across A to D in rows 3, 5 and 8, the three Done tasks.
=$C1="Done"
on A2:D9, More causes tab
Green across rows 4, 6 and 9, one row below each Done task.
=AND($C2<>"Done", $D2<F2)
on A2:D9, Broken tab
Red in A2 only. Row 6, overdue and Not started, stays white.
=AND($C2<>"Done", $D2<$F$2)
on A2:D9, Fixed tab
Red across A to D in rows 2 and 6.
=$D2<$F$2
on A2:D15, More causes tab
Red in rows 2, 3 and 8, and in the empty rows 10 to 15.

Two of the six do the job, =$C2="Done" and =AND($C2<>"Done", $D2<$F$2), both on the Fixed tab. They carry over to another sheet once C is swapped for the column the rule should read and F2 for the cell every row is compared with.

Highlighting a whole row based on one column, with $ before the column letter

Select A2:D9, the data rows without the header. Open Format, then Conditional formatting. In the sidebar, set Format cells if to Custom formula is, type =$C2="Done" in the Value or formula box, open the Default box under Formatting style, pick the green swatch, and click Done. A rule that is already there can be corrected in place: click it in the same sidebar and edit the formula.

A dollar sign in front of the column letter stops the reference from moving sideways. =$C2="Done" keeps pointing at column C from every cell in the row, while the row number still moves down, so row 5 checks $C5 and row 8 checks $C8. On the Fixed tab that one character turned all four cells of rows 3, 5 and 8 green.

Why a custom formula without $ colors only the first column

A custom formula is written for the top-left cell of the range, A2 here. For every other cell, Sheets shifts the references the same distance it would if you pasted the formula there. Google's page on conditional formatting rules says you often need dollar signs in front of letters and numbers so the rule uses absolute references instead of relative ones.

The Broken tab shows what that shift does to =C2="Done". Cell A2 checks C2, which is right. Cell B2, one column over, checks D2, the due date. C2 checks E2 and D2 checks F2, both outside the table. None of those can ever equal Done, and only column A lights up.

Broken tab with L3 selected. The formula bar shows =D3="Done". Rows 3, 5 and 8 are green only in column A. Column K shows TRUE in rows 3, 5 and 8 and columns L, M and N show FALSE in every row.
Figure 2. The Broken tab. L3 holds the rule formula filled one column right, and it now points at D3.

Testing the rule formula in cells to see what each cell checks

The rules sidebar shows the formula as typed, written for A2, so the shift stays invisible there. To watch it happen, type the same formula into an empty cell to the right of the table, K2 in the copy, and fill it across and down so the block is the same size as the range. Four columns and eight rows here, K2:N9.

In the Broken tab, column K returned TRUE for rows 3, 5 and 8, and every cell in L, M and N returned FALSE. Those values match the colors in A2:D9 cell for cell. Selecting L3 puts =D3="Done" in the formula bar, which is exactly the formula Sheets runs for B3. The same block on the Fixed tab, filled from =$C2="Done", returned TRUE across all four columns of rows 3, 5 and 8.

The test cells are plain formulas, so they work in any sheet you can edit. Delete them when the colors look right, or keep them in a column you hide.

One date cell for every row needs $F$2, not F2

The red rule goes on the same range. Select A2:D9, open Format, then Conditional formatting, and click Add another rule in the sidebar. Choose Custom formula is, type =AND($C2<>"Done", $D2<$F$2), open the Default box, pick the red swatch, and click Done.

In the Broken tab this rule has F2 in place of $F$2. It already had $C2 and $D2, so it looked locked. The weak spot is the report date. With no dollar sign on the row, row 3 compares against F3, row 6 against F6, and so on down an empty column. Every date compared with an empty cell came back FALSE.

Column P of the copy holds the overdue formula filled down. In the Broken tab it returned TRUE in P2 only. Selecting P6 shows =AND($C6<>"Done", $D6<F6) in the formula bar, and Print agendas, due 11/10/2026, comes back FALSE. The column letter has no dollar sign either, so the cells in column B compare against G2, column C against H2, column D against I2. That is why only A2 turned red in row 2.

Broken tab with P6 selected. The formula bar shows =AND($C6<>"Done", $D6<F6). P2 shows TRUE and P3 through P9 show FALSE. Only cell A2 is red.
Figure 3. P6 is the overdue rule as Sheets runs it for row 6. F6 is empty, so the test is FALSE.

A single cell that every row should read, like a report date or a target, needs both signs, $F$2. In the Fixed tab the formula =AND($C2<>"Done", $D2<$F$2) returned TRUE in P2 and P6, and rows 2 and 6 turned red across all four columns. Order catering in row 8 was due 11/9/2026, which is also before the report date, but its status is Done, so the first half of the AND kept it out. Set up sign-in table in row 9 is due on the report date itself, and the less-than sign leaves it uncolored.

Due dates that were pasted or imported as text are a separate problem. The post on dates that sort wrong shows how to tell text dates from real ones.

Input8 tasks in A2:D9, report date 11/11/2026 in F2
Formula=AND($C2<>"Done", $D2<$F$2)
ExpectedTRUE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE
Sheets returnedTRUE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE Matches expected
Checked2026-11-11, free personal account

A rule written for row 1 on a range that starts at row 2, and blank rows turning red

The More causes tab keeps the dollar signs and breaks the rules in two other ways.

Its green rule is =$C1="Done" on A2:D9. The formula is written for row 1 while the range starts at row 2, so every cell looks one row up. Rows 4, 6 and 9 turned green, each sitting under a Done row, while the real Done rows 3, 5 and 8 got no green. The test block agrees. K4 holds =$C3="Done" and K2:N9 returned TRUE in rows 4, 6 and 9 only. Google's help page says to write the rule for the first row, and for this range that is row 2, where A2:D9 begins.

Red comes from =$D2<$F$2, applied to A2:D15 so new tasks pick it up. Rows 10 through 15 have no tasks and turned red anyway. P10:P15 returned TRUE for every one of them. An empty due date compared with 11/11/2026 counts as earlier. Rows 3 and 8 went red too, since this version has no status check and those Done tasks have past due dates.

More causes tab with K4 selected. The formula bar shows =$C3="Done". Rows 4, 6 and 9 are green, rows 2, 3 and 8 are red, and the empty rows 10 to 15 are red in columns A to D. Column P shows TRUE in rows 10 to 15.
Figure 4. Green lands one row low, and the empty rows pick up the red fill.

Requiring a due date fixes the blank rows. =AND($D2<>"", $D2<$F$2) in column R of the same tab returned FALSE for rows 10 through 15 and still returned TRUE for rows 2, 3, 6 and 8. Add the status check from the Fixed tab inside the same AND if Done tasks should stay out of the red.

Row 6 shows one more thing. Its due test is TRUE and the row is still green. The green rule is listed first in the sidebar, and the help page says rules are evaluated in the order listed and the first rule found to be true sets the format. Drag the rules in the sidebar to change which one wins.

A rule can only read cells on its own tab. Google's help page says formulas there can only reference the same sheet and points to INDIRECT for a value kept on another tab. The copy does not test that case.

Editing both rules on the Try it yourself tab

The Try it yourself tab is the Broken tab again, rules and test cells included. Select A2:D9, open Format, then Conditional formatting, and click each rule to edit it. Change the first to =$C2="Done" and the second to =AND($C2<>"Done", $D2<$F$2), then click Done. Rows 3, 5 and 8 should turn green across all four columns and rows 2 and 6 red.

Fixed tab with P6 selected. The formula bar shows =AND($C6<>"Done", $D6<$F$2). Rows 2 and 6 are red in columns A to D, rows 3, 5 and 8 are green, and K2:N9 shows TRUE across rows 3, 5 and 8.
Figure 5. The Fixed tab. Once both rules are edited, A2:D9 on the Try it yourself tab has the same colors.

To check the overdue rule with numbers instead of colors, type =AND($C2<>"Done", $D2<$F$2) in P2 and fill it down to P9. The values should match P2:P9 on the Fixed tab, TRUE in rows 2 and 6 and FALSE everywhere else.

Take-home copy. Four tabs: Broken (as you see it), Fixed, Try it yourself, More causes. It opens as a copy in your own Drive.

Copy the sheet