Conditional Formatting question

tracer2062

New Member
Joined
Jun 8, 2011
Messages
6
I’m using Excel 2007. What I'm trying to do is compare two columns of numbers, and if the adjacent cell is different highlight it. The problem I have is that I do not want to go to each individual cell and do conditional formatting. I want to know how I can do this for the entire column. Thank you for the help. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Select the whole column of values, Conditional Formatting, New Rule, Use a Formula.. then use a formula like

=A1<>B1


Excel will automatically adjust the row numbers for rows further down.
 
Upvote 0
Let's say you are comparing A2:A100 with B2:B100 and you want to highlight B.

Select B2:B100. Click Conditional Formatting on the Home tab, choose New rule... and choose Use a formula to determine which cells to format...
In the formula box enter:
=B2<>A2

and choose the formatting you want, then OK out of the dialogs.
 
Upvote 0
Select the relevant cells in both columns, goto Conditional formatting, enter this formula:

=$A1<>$B1

and format as required.

That should highlight both cells if they are different.
 
Upvote 0
How do I prevent it from highlighting the entire column? I just want it to highlight the individual cell in the column if it's not equal to the other cell in the column.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,734
Members
452,939
Latest member
WCrawford

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