Conditional formatting to color amounts appearing more than twice with condition

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello guys
Using conditional formatting, I am trying to color the amounts which appear more than twice for each name. Sometimes the amounts are the same in 2 or more different names. The problem is the formula colors all the cells. I want to add a condition in the formula. The color should be applied at each change in name. But I don't know how to select the range in this case.
Nabeel new.xlsx
AB
1NameAmount
2April8379.00
3April9730.00
4April9730.00
5April10000.00
6April10000.00
7April10000.00
8April10500.00
9April10500.00
10April10500.00
11April15077.00
12April15077.00
13April4165.00
14August3596.00
15August4165.00
16August4165.00
17August4165.00
18August4582.00
19August4582.00
20August4582.00
21August4582.00
22August5117.00
23August5117.00
24August5800.00
25August5800.00
26August5800.00
27August5800.00
28August5950.00
29August5950.00
30August6160.00
31August6160.00
32August6160.00
33August6160.00
34August10000.00
35August10000.00
36August10500.00
37August10500.00
38August10500.00
39August11000.00
40August11500.00
41August11500.00
42August11500.00
43August11500.00
44August11500.00
45August120210.00
46December10000.00
47December10000.00
48December10000.00
49December10000.00
50December10500.00
51December10500.00
52December11500.00
53December11500.00
54December11500.00
55December11500.00
56December12500.00
57December12500.00
58December12500.00
59December12500.00
60December12500.00
61December12500.00
62DEEPAK10000.00
63DEEPAK10000.00
64DEEPIKA10000.00
65DEEPIKA10000.00
66DEEPIKA11500.00
67DEEPIKA11500.00
68DELHI10000.00
69DELHI10000.00
70FAB344246.00
71FAB344246.00
72February10500.00
73February10500.00
74February10500.00
75February10500.00
76FEELINGS430.00
77FLIPKART12811.22
78FLIPKART16472.86
79FLIPKART20054.15
80FLIPKART23086.97
81January10000.00
82January10000.00
83July6244.00
84July6395.00
85July8888.00
86July8898.23
87July9071.00
88July9082.00
89July9125.00
90July10000.00
91July10000.00
92July10500.00
93July10500.00
94July10500.00
95July10500.00
96July11000.00
97July11000.00
98July11000.00
99July11000.00
100July32146.00
101July32146.00
102July32146.00
103July32146.00
104June1050.00
105June10000.00
106June10000.00
107June10500.00
108June10500.00
109June10500.00
110June11000.00
111June11000.00
112June11000.00
113June11000.00
114June24806.00
115June27896.00
116June27896.00
117June30403.00
118June30403.00
119June32146.00
120June32146.00
121March10500.00
122March10500.00
123May8379.00
124May8379.00
125May8379.00
126May8379.00
127May10000.00
128May10000.00
129May10000.00
130May10000.00
131May10000.00
132May10000.00
133May17136.00
134May17136.00
135May17696.00
136May18771.00
137May23625.00
138May28350.00
139May30822.00
140May30822.00
141May30822.00
142May84840.00
143May84840.00
144May84840.00
145November2835.00
146November2835.00
147November3021.00
148November3021.00
149November4994.00
150November4994.06
151November10500.00
152November10500.00
153November11000.00
154November11000.00
155November11000.00
156November11000.00
157November12500.00
158November12500.00
159November13000.00
160November13000.00
161November13000.00
162November13000.00
163November13000.00
164October2835.00
165October2835.00
166October3021.00
167October3021.00
168October4994.00
169October4994.06
170October10500.00
171October10500.00
172October11000.00
173October11000.00
174October11000.00
175October11000.00
176October12500.00
177October12500.00
178October13000.00
179October13000.00
180October13000.00
181October13000.00
182October13000.00
183September10500.00
184September10500.00
185September11000.00
186September11000.00
187September11000.00
188September11000.00
189September12500.00
190September12500.00
191September13000.00
192September13000.00
193September13000.00
194September13000.00
195September13000.00
196Sunday10000.00
197Sunday10000.00
Color
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B197Expression=COUNTIF($B$2:$B$200,$B2)>2textNO
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
The formula should check each name where the same amount appears more than twice only then it should color the row.
Like in April 10000 appears more than twice and in August it appears only twice. So I need to color rows of April containing 10000 only and not August and so on.......
 
Upvote 0
Try this formula instead

Excel Formula:
=COUNTIFS(B$2:B$200,B2,A$2:A$200,A2)>2
 
Upvote 0
Solution

Forum statistics

Threads
1,214,601
Messages
6,120,465
Members
448,965
Latest member
grijken

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