Share via

Excel Conditional formatting - extending the formatting to a range of cells in a column does not work

Anonymous
2014-02-23T01:56:35+00:00

Hello all,

I am trying to do what I think is a rather basic conditional formatting exercise.

However, I am not having much luck.  Here is what I am trying to do.

  1. There are a set of values in columns B and C - data for one week.
  2. I need to format C3 as follows:

    Fill with Red if C3 is less than B3

    Fill with Green if C3 greater than or equal to C3.

  1. I need to extend the conditional formatting to rows C4 thru C5 and C7 thru C9 (C3 thru C9 including C7 is also acceptable.)
  2. I also need to replicate B3:C9 for the remaining 50 weeks in the year.

I am able to apply conditional formatting to C3 and can get it behave the way I want it to.

However when I try to extend it by dragging the handle down to C9, the formatting seems

to get messed up.  All the cells in the range C4 thru C9 are comparing their value to B3 instead of

B4, B5, etc.

Another intriguing behavior I see is that if I create the rule manually for each cell, then changes made to

rules for any cell seem to be getting duplicated to all the other cells as though there is only one conditional

formatting specification.

I need a solution that works in Excel 2010 as well as Excel 2007.

Any help I can get is greatly appreciated.  Thanks in advance for all the help.

Regards,

Raghu

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2014-02-23T02:25:17+00:00

It sounds as though you are basing your conditional formatting rule on a formula and that formula uses $B$3 to reference cell B3. It should be $B3 so that the B is locked as absolute but the row (e.g. 3 is allowed to be relative to each new row.

If that isn't the problem then post back with how you created the rule(s) and what (if any) formula you are using.

Was this answer helpful?

5 people found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-02-23T04:10:57+00:00

    I'm glad to hear you got sorted out. Thanks for taking the time to follow up with your own results, positive feedback and your kind words.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2014-02-23T04:05:46+00:00

    It sounds as though you are basing your conditional formatting rule on a formula and that formula uses $B$3 to reference cell B3. It should be $B3 so that the B is locked as absolute but the row (e.g. 3 is allowed to be relative to each new row.

    If that isn't the problem then post back with how you created the rule(s) and what (if any) formula you are using.

    Thank you very much for the quick response.  I did try B3 and $B$3, but $B3.

    Your suggestion worked.  I had to change $b$3 to b3 because I had to replicate cells horizontally (columns)  as well for successive weeks.

    For some reason, the rule "Format cells based on their values with a 2-color scale" did not work.

    I had to use two rules using "Format cells that contain only" ...

    In any case, thanks a million for responding with the suggestion.  I really appreciate it.

    Raghu

    Was this answer helpful?

    0 comments No comments