Trouble with conditional formatting (Xcel 2007)

Learningfun

New Member
Joined
Nov 1, 2011
Messages
2
Hi guys,

First of all, I am glad to be part of this great community.

I've Column A which contains 300 company names, and column B contains 50 company names. I want excel to highlight any company name match from column B.

Excel is only allowing me to do one cell at a time. When I select cells from column B, it is giving me an error, "you cannot use the direct reference to worksheet range in conditional format"

Any help will be greatly appreciated.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Can you explain that again?
Is it to highlight a cell in column A if it appears also in column B, or the other way around?
:confused:
 
Upvote 0
Are columns A and B on separate sheets? Conditional formatting won't let you refer to cells on another sheet. To work around this, create a named range which refers to the range on the other sheet.
 
Upvote 0
Can you explain that again?
Is it to highlight a cell in column A if it appears also in column B, or the other way around?
:confused:

Sorry for the confusion. Yes, you are correct. I want to high light cells in column A if it matches any cell in column B.


Are columns A and B on separate sheets? Conditional formatting won't let you refer to cells on another sheet. To work around this, create a named range which refers to the range on the other sheet.

Column A and B are on the same sheet. I have already tried this method and it doesn't work.
 
Upvote 0
Is a VBA solution, using macros, suitable for you?

I´m not much of a formula fan...
 
Upvote 0
It the columns are on the same sheet try conditional formatting using your custom formula. After selecting cells in column A and choosing Conditional formatting create a formula:
=COUNTIF(B:B;A1)>=1
It should work.
 
Upvote 0
Yes, it works, very simple.

I' ll not have the chance to write my macro... :p
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,255
Members
448,556
Latest member
peterhess2002

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