Conditional Formatting - comparing text in two cells

aitzko

New Member
Joined
Apr 1, 2009
Messages
6
Hi everyone,

I'd like to highlight a row if the text in two cells does not match. For example, if cell D4 = "DC" and cell E4 = "DC", I'd like it to remain with no color. If cell D5 = "DC" and cell E5 = "CA," I'd like all of Row 5 to be highlighted. Can anyone help with this?

I'd like to apply this conditional formatting to the entire worksheet.

Thanks!!:)
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi Texasalynn,

Thanks for your reply. For some reason, this highlighted all of column B, and seemingly random cells in column A. Any idea what's going on? I"ve never used a formula like that before.

Thanks!
 
Upvote 0
Hi Texasalynn,

Thanks for your reply. For some reason, this highlighted all of column B, and seemingly random cells in column A. Any idea what's going on? I"ve never used a formula like that before.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,617
Messages
6,125,867
Members
449,266
Latest member
davinroach

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