Conditional formatting

Ineedhelpaz

New Member
Joined
Sep 23, 2014
Messages
3
Excel 2007 question

I am attempting to highlight several thousand values in column B based on values in column A. An example...

A. B.

1. 1.
2. 1.
3. 2.
5. 4.
10. 9.


If 1, 2, 3, 5, 10 occur in column B at all I need all instances of them highlighted. Using duplicate values does not work since duplicate values in B that don't exist in A are highlighted.
 
Last edited:

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

skywriter

Well-known Member
Joined
Feb 15, 2014
Messages
1,642
In the example below. I select cells B1:B5, I go to conditional formatting and I new rule, use a formula to decide which cells to format. I then enter the formula: =COUNTIF($A$1:$A$5,B1), then choose a yellow fill if my equation evaluates to true. You get the results shown below.

Excel Workbook
AB
110
225
334
4510
5108
Sheet35
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B11. / Formula is =COUNTIF($A$1:$A$5,B1)Abc
B21. / Formula is =COUNTIF($A$1:$A$5,B1)Abc
B31. / Formula is =COUNTIF($A$1:$A$5,B1)Abc
B41. / Formula is =COUNTIF($A$1:$A$5,B1)Abc
B51. / Formula is =COUNTIF($A$1:$A$5,B1)Abc
 
Last edited:

Ineedhelpaz

New Member
Joined
Sep 23, 2014
Messages
3
I filled out formula exactly as you did and it worked but it is not working consistently. Some groups of numbers are labelled in all instances, some aren't labelled at all and some are even half and half (one filled one empty)
 

Ineedhelpaz

New Member
Joined
Sep 23, 2014
Messages
3
Nevermind. I wiped the first one, retyped, and chose a different color and the error stopped.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,598
Messages
5,832,645
Members
430,150
Latest member
amitk1

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
Top