Conditional Formatting

MarkyBoy

New Member
Joined
Aug 2, 2007
Messages
47
Hi there, this is my first post so sorry if its been asked before but I couldnt find anything anywhere else.

I am trying to conditionally format cells if any value in a range of cells appears more than twice.

so I have a list of values in a column and I want to highlight any where the values is listed 3 or more times

I have tried using countif but have been unsuccessful.

Please help

Thanks in advance
 
There's no need to copy the conditional formatting at all if you follow my advice above.

Just select the whole range first, then you only need to apply conditional formatting once, using the condition that applies to the first cell in the range. The conditions will adjust automatically for each of the cells in the range.

E.g. if your range is A1:A100 then select that range from A1 down and apply this formula

=(COUNTIF($A$1:$A$100,A1)>2)*(A1<>"")

the second part stops blank cells being highlighted
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
ok cool, however that is still basing the calculation on a specific cell.

I have a range of information A1:D10

I want to format the whole range to change colour if more than 2 values are the same in the range C2:C9

its the range formatting I am still stuck with

thanks
 
Upvote 0
ok cool, however that is still basing the calculation on a specific cell.

I have a range of information A1:D10

I want to format the whole range to change colour if more than 2 values are the same in the range C2:C9

its the range formatting I am still stuck with

thanks
I'm not exactly sure what you mean here, but if the result below is what you want, Select A1:D10 first and then use the CF formula shown.

Excel Workbook
ABCD
1aTimu
2blTomv
3Tedw
4dnTimx
5eoTed
6fpJoe
7gqTim
8hrTom2
9isTed3
10jtSue4
Conditional Format
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11. / Formula is =(COUNTIF($C:$C,$C1)>2)*(A1<>"")Abc
 
Upvote 0
I have a range of information A1:D10

I want to format the whole range to change colour if more than 2 values are the same in the range C2:C9

Do you really mean that? It seems a little different from what you originally asked. To do that

Select A1:D10

use this formula in conditional formatting

=MAX(FREQUENCY($C$2:$C$9,$C$2:$C$9))>2
 
Upvote 0

Forum statistics

Threads
1,224,798
Messages
6,181,038
Members
453,014
Latest member
Chris258

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