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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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:
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,927
Members
448,533
Latest member
thietbibeboiwasaco

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