My conditional formatting will not apply to my workbook.

Hanna Staub-Herzog 0 Reputation points
2026-11-23T14:37:24.3033333+00:00

I am using the 'applies to' formula of =$1:$1048576, and nothing is changing .

I am trying to have rows change color based on the letter inserted in column D.

Microsoft 365 and Office | Excel | For business | Windows

2 answers

Sort by: Oldest
  1. Darren Bruce 2,865 Reputation points Independent Advisor
    2026-11-23T14:57:45.5466667+00:00

    Dear Hanna Staub-Herzog,

    Based on your description, the issue is likely related to the conditional formatting rule rather than the Applies to range itself. To format entire rows based on a value entered in Column D, please try the following:

    1. Select the range you want to format.
    2. Go to Home > Conditional Formatting > Manage Rules and verify the rule formula.
    3. If you want a row to change color when Column D contains a specific letter (for example, "A"), use a formula similar to: =$D1="A"
    4. Ensure that the row number in the formula corresponds to the first row of the applied range.
    5. Confirm that the Applies to field includes the desired rows, for example: =$1:$1048576

    Note: Verify that the value in Column D exactly matches the expected letter and does not contain any leading or trailing spaces. If your data starts on a row other than Row 1, adjust the formula accordingly. For example, if your first data row is Row 2: =$D2="A"

    If there are multiple conditional formatting rules, check whether another rule is overriding the format.

    I hope it helps, feel free to reach out if you have any other questions.

    Was this answer helpful?


  2. Adeel Khan 735 Reputation points
    2026-11-23T15:55:01.6033333+00:00

    Hi Hanna,

    The Applies to range on its own does not colour anything. It only tells Excel where to apply a rule, so you still need a formula rule that tests column D.

    I would delete that rule and set it up again like this:

    1. Select the range you actually use, for example A1:Z500. I would not apply it to the whole sheet, because that slows Excel down and makes the rule harder to manage.
    2. Go to Home, Conditional Formatting, New Rule.
    3. Choose Use a formula to determine which cells to format.
    4. Enter this formula, using your own letter in place of A:

    =$D1="A"

    1. Click Format, pick the fill colour you want, then click OK twice.

    The dollar sign before D keeps the test on column D for every cell in the row, while the row number stays relative, so each row is tested against its own D cell. If your data starts in a different row, change the 1 in $D1 to that row number.

    If you need a different colour for another letter, add a separate rule in the same way, for example =$D1="B".

    One more check: make sure the entries in column D are only the single letter, with no extra space before or after it, because a space will stop the match.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.