Conditional Formatting Issue

MN_Excel

Board Regular
Joined
Nov 8, 2010
Messages
153
I am attempting to format data in particular columns. If the cell in C2 doesn't equal the value in B2 I would like C2 to be yellow, if it does equal B2 I don't want any formatting. I've worked through the conditional formatting options, but have been unable to find a solution. Any ideas?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I am attempting to format data in particular columns. If the cell in C2 doesn't equal the value in B2 I would like C2 to be yellow, if it does equal B2 I don't want any formatting. I've worked through the conditional formatting options, but have been unable to find a solution. Any ideas?
What version of Excel are you using?
 
Upvote 0
Try this...

  • Select cell C2
  • Goto the Home tab>Styles>Conditional Formatting>Manage rules>New rule>Use a formula to determine which cells to format
  • Enter this formula in the box below: =C2<>B2
  • Click the Format button
  • Select the desired style(s)
  • OK out
 
Upvote 0
Thanks, that almost gets me there. Now my issue is that when I try and copy the format down to rows 3, 4, etc it continues to use row 2......in short, I'm looking to copy the formula down
 
Upvote 0
Thanks, that almost gets me there. Now my issue is that when I try and copy the format down to rows 3, 4, etc it continues to use row 2......in short, I'm looking to copy the formula down
Ok, if you want to format a RANGE of cells...

Let's assume you want to format C2:C10.

Select the *entire* range C2:C10 starting from cell C2. Cell C2 will be the active cell. The active cell is the one cell in the selected range that is not shaded. The formula will be relative to the active cell.

Then follow the steps to apply the format.
 
Upvote 0
Unfortunately I think I took a step backward in my understanding. In my example I don't want the formatting to be contigent on one cell. See example below.......the 4th and 6th lines in column B would be yellow because they are different than column A. The others, which are the same, would have no formatting. Thanks for your patience.

Column A Column B
1 1
2 2
1 1
1
1 1
1
 
Upvote 0
Unfortunately I think I took a step backward in my understanding. In my example I don't want the formatting to be contigent on one cell. See example below.......the 4th and 6th lines in column B would be yellow because they are different than column A. The others, which are the same, would have no formatting. Thanks for your patience.

Column A Column B
1 1
2 2
1 1
1
1 1
1
Hmmm...

What I suggested does what you asked for. :confused:
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top