COnditional formatting

kac1125

Board Regular
Joined
Jul 31, 2014
Messages
74
Office Version
  1. 365
Platform
  1. Windows
I have two columns. I want to have some sort of conditional format in the second column that highlights anything that is also in the first column. What it the easiest way to accomplish this. WHen I try conditional formatting I select the column that I want to highlight then i choose the range of the column I am looking up against and the system tells me to change to reference a single cell. Please let me know if you have any ideas.

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.
Let's say that you want to see if the value in B1 appears anywhere in the range A1:A100.
If cell B1, enter this Conditional Formatting formula:
Code:
=COUNTIF(A$1:A$100,B1)>0
then select your highlighting option.

If you have more cells to apply it to in column B, you can either use the Format Painter to copy the formatting from cell B1 to the other cells, or highlight all the cells in column B you want to apply it to, and write the formula as if you were just doing it to the first cell in your range (the rest will adjust automatically).
 
Upvote 0
Worked great! Just what I was looking for. Thanks Joe4!
 
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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