Highlight with two conditions

VBAnewbie82

New Member
Joined
Nov 13, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
How do I highlight values that appear at least three times with matching value in different column?

For example below I would like to highlight values in column C that appear at least three times and they have matching value in column A. Right conditional formatting with right formula should highlight only values in cell C1, C3 and C7 for they have matching value "15" in column C and matching value "9999" in column A.

ABC
19999Randomtext115
22222Randomtext220
39999Randomtext315
44444Randomtext415
55555Randomtext520
66666Randomtext620
79999Randomtext715
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
You can use Conditional Formatting to do this. Follow these steps:
1. Select the range C1:C7
2. Go to Conditional Formatting
3. Select "New Rule"
4. Select the "Use a formula to determine which cells to format" option
5. Enter this formula:
Excel Formula:
=COUNTIFS(A:A,A1,C:C,C1)>=3
6. Click on the format, and select your desired format
7. Click OK

This should do what you want.
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
ABCD
1ABC
29999Randomtext115
32222Randomtext220
49999Randomtext315
54444Randomtext415
65555Randomtext520
76666Randomtext620
89999Randomtext715
9
10
11
12
Summary
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:C13Expression=AND(C2<>"",COUNTIFS($A$2:$A$100,A2,$C$2:$C$100,C2)>2)textNO
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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