find the top 3 and lowest number using the condition formatting

mwvirk

Active Member
Joined
Mar 2, 2011
Messages
293
Office Version
  1. 2016
Platform
  1. Windows
Hi,
I am trying to find the top 3 numbers in a cell range and then the lowest number but it seems it's not working to get the lowest number or sometimes it's changing the condition formatting for the full range. Like if the cell value is 0 then it will be considered as the lowest number and marked as BLACK but if somehow the cell value is blank then it's still marked as BLACK.
I would appreciate it if someone could help me here no matter if you want to change the color of the blank value to some other color.

Please also note that I will be copying the same condition formatting for the other 3000 records (each record has 50 entries as shown below screenshot (1 record of 50 entries)
All cells will have numeric values only.

1705794853035.png



Election 2024.xlsx
LM
2100.00%
3200.00%
4300.01%
5400.01%
6500.01%
7600.01%
8700.02%
9800.02%
10900.02%
11900.02%
12900.02%
13900.02%
14900.02%
1530.00%
1610.00%
17900.02%
1800.00%
19900.02%
20900.02%
21900.02%
22900.02%
2330.00%
2460.00%
2510.00%
26900.02%
27900.02%
28900.02%
29900.02%
30900.02%
311000.02%
322000.05%
333000.07%
344000.09%
355000.11%
36111,00025.39%
37122,00027.90%
38133,00030.42%
3950.00%
401,0000.23%
412,0000.46%
42 
434,0000.91%
445,0001.14%
456,0001.37%
46 
478,0001.83%
489,0002.06%
4910,0002.29%
5011,0002.52%
5112,0002.74%
Election 2022 (MNA)
Cell Formulas
RangeFormula
M2:M51M2=IF(L2="","",L2/$H$2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L2:L51Expression=OR(L2=MIN(L$2:L$51))textNO
L2:L51Expression=OR(L2=MAX(L$2:L$51),L2=LARGE(L$2:L$51,1))textNO
L2:L51Expression=OR(L2=MAX(L$2:L$51),L2=LARGE(L$2:L$51,2))textNO
L2:L51Expression=OR(L2=MAX(L$2:L$51),L2=LARGE(L$2:L$51,3))textNO
M2:M51Expression=OR(M2=MIN(M$2:M$51))textNO
M2:M51Expression=OR(M2=MAX(M$2:M$51),M2=LARGE(M$2:M$51,1))textNO
M2:M51Expression=OR(M2=MAX(M$2:M$51),M2=LARGE(M$2:M$51,2))textNO
M2:M51Expression=OR(M2=MAX(M$2:M$51),M2=LARGE(M$2:M$51,3))textNO
 
Last edited:
finding the top 3 issue are also resolved. so we can ignore it. thanks.
Out of interest in something we have put a bit of time into, would you care to share how you did that for the multiple ranges?


I also want to find the number that is the lowest but shouldn't be 0 (next higher number than 0)
Just clarifying: Do you actually mean shouldn't be 0 or do you mean shouldn't be blank?
In your earlier pictures some have blank cells highlighted and some have 0 cells highlighted so I'm not sure.
For example if the range contained only the values below, would you want the 3 or the 0 highlighted?

mwvirk.xlsm
L
26
3
43
50
64
Sheet2
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Election 2024 - Copy.xlsx
LMN
2100.00%42
3200.00%41
4300.00%40
5400.00%39
6500.00%38
7600.00%37
8700.00%36
9800.00%35
10144,0002.69%9
11144,0002.69%9
12900.00%25
13900.00%25
14900.00%25
1530.00%44
16880.00%34
17900.00%25
18990.00%22
19990.00%22
20900.00%25
21900.00%25
22900.00%25
2310.00%46
2460.00%43
2520.00%45
2600.00%47
27990.00%22
28 47
29900.00%25
30900.00%25
31333,3336.22%7
32555,55510.37%5
33444,4448.30%6
34333,3336.22%7
352220.00%21
36666,66612.44%4
37777,77714.52%3
38888,88816.59%2
39999,99918.66%1
401,0000.02%20
412,0000.04%19
42 47
434,0000.07%18
445,0000.09%17
456,0000.11%16
46 47
478,0000.15%15
489,0000.17%14
4910,0000.19%13
5011,0000.21%12
5112,0000.22%11
52100.00%42
53200.00%41
54300.00%40
55400.00%39
56500.00%38
57600.00%37
58700.00%36
59800.00%35
60144,0002.69%9
61144,0002.69%9
62900.00%25
63900.00%25
64900.00%25
6530.00%44
66880.00%34
67900.00%25
68990.00%22
69990.00%22
70900.00%25
71900.00%25
72900.00%25
7310.00%46
7460.00%43
7520.00%45
7600.00%47
77990.00%22
78 47
79900.00%25
80900.00%25
81333,3336.22%7
82555,55510.37%5
83444,4448.30%6
84333,3336.22%7
852220.00%21
86666,66612.44%4
87777,77714.52%3
88888,88816.59%2
89999,99918.66%1
901,0000.02%20
912,0000.04%19
92 47
934,0000.07%18
945,0000.09%17
956,0000.11%16
96 47
978,0000.15%15
989,0000.17%14
9910,0000.19%13
10011,0000.21%12
10112,0000.22%11
102100.00%42
103200.00%41
104300.00%40
105400.00%39
106500.00%38
107600.00%37
108700.00%36
109800.00%35
110144,0002.53%10
111144,0002.53%10
112900.00%25
113900.00%25
114900.00%25
11530.00%44
116880.00%34
117900.00%25
118990.00%22
119990.00%22
120900.00%25
121900.00%25
122900.00%25
12310.00%46
12460.00%43
12520.00%45
12600.00%47
127990.00%22
128 47
129900.00%25
130900.00%25
131333,3335.86%8
132555,5559.76%4
133444,4447.81%7
134333,3335.86%8
135555,5559.76%4
136666,66611.71%3
137999,99917.57%1
138888,88815.62%2
139555,5559.76%4
1401,0000.02%21
1412,0000.04%20
142 47
1434,0000.07%19
1445,0000.09%18
1456,0000.11%17
146 47
1478,0000.14%16
1489,0000.16%15
14910,0000.18%14
15011,0000.19%13
15112,0000.21%12
Election 2022 (MNA)
Cell Formulas
RangeFormula
M2:M51M2=IF(L2="","",L2/$H$2)
N2:N151N2=RANK($L2,INDEX($L:$L,FLOOR(ROW()-2,50)+2):INDEX($L:$L,FLOOR(ROW()-2,50)+51))
M52:M101M52=IF(L52="","",L52/$H$52)
M102:M151M102=IF(L102="","",L102/$H$102)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L102:L151Cellcontains a blank value textNO
L52:L101Cellcontains a blank value textNO
J2:N51Cellcontains a blank value textNO
M52:M13601Expression=OR(M52=MIN(M$2:M$51))textNO
M52:M13601Expression=OR(M52=MAX(M$2:M$51),M52=LARGE(M$2:M$51,1))textNO
M52:M13601Expression=OR(M52=MAX(M$2:M$51),M52=LARGE(M$2:M$51,2))textNO
M52:M13601Expression=OR(M52=MAX(M$2:M$51),M52=LARGE(M$2:M$51,3))textNO
M2:M51Expression=AND($M2<>"",$M2=MIN($M$2:$M$51))textNO
M2:M51Expression=OR(M2=MAX(M$2:M$51),M2=LARGE(M$2:M$51,1))textNO
M2:M51Expression=OR(M2=MAX(M$2:M$51),M2=LARGE(M$2:M$51,2))textNO
M2:M51Expression=OR(M2=MAX(M$2:M$51),M2=LARGE(M$2:M$51,3))textNO
L2:L151Expression=AND($L2<>"",$L2=MIN($L$2:$L$51))textNO
L2:L151Expression=$N2=1textNO
L2:L151Expression=$N2=2textNO
L2:L151Expression=$N2=3textNO
 
Upvote 0
Out of interest in something we have put a bit of time into, would you care to share how you did that for the multiple ranges?



Just clarifying: Do you actually mean shouldn't be 0 or do you mean shouldn't be blank?
In your earlier pictures some have blank cells highlighted and some have 0 cells highlighted so I'm not sure.
For example if the range contained only the values below, would you want the 3 or the 0 highlighted?

mwvirk.xlsm
L
26
3
43
50
64
Sheet2
results shared in the above post for the top 3

I want the lowest number. but it should not be 0
e.g. if cell values are
11
12
13
14
15
16
0
0
BLANK
19
20

then 11 must be considered the lowest number (pending)
20 19 16 are top 3 (this is resolved)
 
Upvote 0
results shared in the above post for the top 3
I'm afraid that I am getting lost. I thought that post #8 meant that you had solved the top 3 issue but from what appears in post #12 it seem to me that the only part that might work over your multiple records is the suggestion that I subsequently made in post #9.

Unless I am mis-understanding what you are trying to do, you have multiple CF rules that will not do what you want. For example the yellow highlighted rules below are applied to rows 52:13601 but are based on the values in rows 2:51 only so they will not work correctly in rows below 51. :huh:
The green highlighted rules only apply to the first record so they also will not be any use for other records.

1705882644206.png


Why do you have so many rules? You have 15 rules listed. Do you have 15 different formatting that you want applied? Should some of the rules be deleted?

Also, in earlier posts you wanted the top 3 with 3 different colours but in your last mini-sheet all 3 are black. :confused:

Until any mis-understanding outlined above is resolved, this is what I was going to suggest for 3 different colours for the top 3 and another colour for lowest above zero. 4 CF rules only.
I have assumed that there would not be any negative numbers in column L.

mwvirk.xlsm
LMNOP
1
25055
39019
48028
57046
61082
71873
84264
97537
1010-1
11010-1
12691
1310-1
1410-1
48010-1
4910-1
5010-1
5110-1
523064
53891
541682
557037
566246
574455
582873
5910-3
8310-3
8410-3
858628
8610-3
87010-3
88010-3
89010-3
90010-3
9110-3
929219
9310-3
9410-3
9910-3
10010-3
10110-3
Sheet1
Cell Formulas
RangeFormula
O2:O14,O48:O59,O83:O94,O99:O101O2=RANK($L2,INDEX($L:$L,FLOOR(ROW()-2,50)+2):INDEX($L:$L,FLOOR(ROW()-2,50)+51))
P2:P14,P48:P59,P83:P94,P99:P101P2=RANK(L2,INDEX($L:$L,FLOOR(ROW()-2,50)+2):INDEX($L:$L,FLOOR(ROW()-2,50)+51),1)-COUNTIF(INDEX($L:$L,FLOOR(ROW()-2,50)+2):INDEX($L:$L,FLOOR(ROW()-2,50)+51),0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L2:M101Expression=$P2=1textNO
L2:M101Expression=$O2=3textNO
L2:M101Expression=$O2=2textNO
L2:M101Expression=$O2=1textNO
 
Upvote 1
Thank you so much, Peter.

appreciate it if you could also help resolve the J & K cells so I can get rid of multiple CFs


Election 2024.xlsx
JKLM
2Candidate Name 0001Party Name A100.00%
3Candidate Name 0002Party Name B200.00%
4Candidate Name 0003Party Name C300.00%
5Candidate Name 0004Party Name D400.00%
6Candidate Name 0005Party Name E500.00%
7Candidate Name 0006Party Name F00.00%
8Candidate Name 0007Party Name G700.00%
9Candidate Name 0008Party Name H800.00%
10Candidate Name 0009Party Name I144,0003.65%
11Candidate Name 0010Party Name J144,0003.65%
12Candidate Name 0011Party Name K900.00%
13Candidate Name 0012Party Name L900.00%
14Candidate Name 0013900.00%
15Candidate Name 0014Party Name N30.00%
16Candidate Name 0015Party Name O88
17Candidate Name 0016Party Name P900.00%
18Candidate Name 0017Party Name Q990.00%
19Candidate Name 0018Party Name R00.00%
20Party Name S900.00%
21Candidate Name 0020Party Name T900.00%
22Candidate Name 0021Party Name U 
23Candidate Name 0022Party Name V30.00%
24Candidate Name 0023Party Name W60.00%
25Candidate Name 0023Party Name W20.00%
26Candidate Name 0023Party Name W00.00%
27Candidate Name 0026Party Name Z990.00%
28Candidate Name 0027Party Name AA 
29Candidate Name 0028Party Name AB900.00%
30Candidate Name 0029Party Name AC900.00%
31Candidate Name 0030Party Name AD999,99925.34%
32Candidate Name 0031Party Name AE666,66616.90%
33Candidate Name 0032Party Name AF444,44411.26%
34Candidate Name 0033Party Name AG333,3338.45%
35Candidate Name 0034Party Name AH888,88822.53%
36Candidate Name 0035Party Name AI2220.01%
37Candidate Name 0036Party Name AJ122,0003.09%
38Candidate Name 0037Party Name AK133,0003.37%
39Candidate Name 0038Party Name AL50.00%
40Candidate Name 0039Party Name AM1,0000.03%
41Candidate Name 0040Party Name AN2,0000.05%
42Candidate Name 0041Party Name AO 
43Candidate Name 0042Party Name AP4,0000.10%
44Candidate Name 0043Party Name AQ5,0000.13%
45Candidate Name 0044Party Name AR6,0000.15%
46Candidate Name 0045Party Name AS 
47Candidate Name 0046Party Name AT8,0000.20%
48Candidate Name 0047Party Name AU9,0000.23%
49Candidate Name 0048Party Name AV10,0000.25%
50Candidate Name 0049Party Name AW11,0000.28%
51Candidate Name 0050Party Name AX12,0000.30%
Election 2022 (MNA)
Cell Formulas
RangeFormula
M17:M51,M2:M15M2=IF(L2="","",L2/$H$2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L2:M13601Expression=AND($L2<>"",$L2=MIN($L2:$M13601))textNO
L2:M13601Expression=$AB2=1textNO
L2:M13601Expression=$AA2=3textNO
L2:M13601Expression=$AA2=2textNO
L2:M13601Expression=$AA2=1textNO
J2:M13601Cellcontains a blank value textNO
K2:K51Cell ValueduplicatestextNO
J2:J51Cell ValueduplicatestextNO
 
Upvote 0
I have 272 records now in my sheep (reduce/split so the sheet can work faster)
in each record, I have 50 entries (candidates) and a party name
right now I am checking all 50 entries for 272 records and each record has a CF
the way you helped to find the topper/lower by adding a dummy column, if the similar can be done for J & K can I can remove lot of CFs
 
Upvote 0
i am sharing the 1st 3 records to understand the requirement in better way:

Election 2024.xlsx
JKLM
2Candidate Name 0001Party Name A100.00%
3Candidate Name 0002Party Name B200.00%
4Candidate Name 0003Party Name C300.00%
5Candidate Name 0004Party Name D400.00%
6Candidate Name 0005Party Name E500.00%
7Candidate Name 0006Party Name F00.00%
8Candidate Name 0007Party Name G700.00%
9Candidate Name 0008Party Name H800.00%
10Candidate Name 0009Party Name I144,0003.65%
11Candidate Name 0010Party Name J144,0003.65%
12Candidate Name 0011Party Name K900.00%
13Candidate Name 0012Party Name L900.00%
14Candidate Name 0013900.00%
15Candidate Name 0014Party Name N30.00%
16Candidate Name 0015Party Name O88
17Candidate Name 0016Party Name P900.00%
18Candidate Name 0017Party Name Q990.00%
19Candidate Name 0018Party Name R00.00%
20Party Name S900.00%
21Candidate Name 0020Party Name T900.00%
22Candidate Name 0021Party Name U 
23Candidate Name 0022Party Name V30.00%
24Candidate Name 0023Party Name W60.00%
25Candidate Name 0023Party Name W20.00%
26Candidate Name 0023Party Name W00.00%
27Candidate Name 0026Party Name Z990.00%
28Candidate Name 0027Party Name AA 
29Candidate Name 0028Party Name AB900.00%
30Candidate Name 0029Party Name AC900.00%
31Candidate Name 0030Party Name AD999,99925.34%
32Candidate Name 0031Party Name AE666,66616.90%
33Candidate Name 0032Party Name AF444,44411.26%
34Candidate Name 0033Party Name AG333,3338.45%
35Candidate Name 0034Party Name AH888,88822.53%
36Candidate Name 0035Party Name AI2220.01%
37Candidate Name 0036Party Name AJ122,0003.09%
38Candidate Name 0037Party Name AK133,0003.37%
39Candidate Name 0038Party Name AL50.00%
40Candidate Name 0039Party Name AM1,0000.03%
41Candidate Name 0040Party Name AN2,0000.05%
42Candidate Name 0041Party Name AO 
43Candidate Name 0042Party Name AP4,0000.10%
44Candidate Name 0043Party Name AQ5,0000.13%
45Candidate Name 0044Party Name AR6,0000.15%
46Candidate Name 0045Party Name AS 
47Candidate Name 0046Party Name AT8,0000.20%
48Candidate Name 0047Party Name AU9,0000.23%
49Candidate Name 0048Party Name AV10,0000.25%
50Candidate Name 0049Party Name AW11,0000.28%
51Candidate Name 0050Party Name AX12,0000.30%
52Candidate Name 0001Party Name A100.00%
53Candidate Name 0002Party Name B200.00%
54Candidate Name 0003Party Name C300.01%
55Candidate Name 0004Party Name D400.01%
56Candidate Name 0005Party Name E500.01%
57Candidate Name 0006600.01%
58Candidate Name 0007Party Name G700.01%
59Party Name H800.02%
60Candidate Name 0009Party Name I900.02%
61Candidate Name 0010Party Name J900.02%
62Candidate Name 0011Party Name K 
63Candidate Name 0012Party Name L900.02%
64Candidate Name 0013Party Name M900.02%
65Candidate Name 0014Party Name N900.02%
66Candidate Name 0015Party Name O10.00%
67Candidate Name 0016Party Name P900.02%
68Candidate Name 0017Party Name Q90
69Candidate Name 0018Party Name R900.02%
70Candidate Name 0019Party Name S900.02%
71Candidate Name 0020Party Name T900.02%
72Candidate Name 0021Party Name U900.02%
73Candidate Name 0022Party Name V900.02%
74Candidate Name 0023Party Name W900.02%
75Candidate Name 0023Party Name W900.02%
76Candidate Name 0025Party Name Y900.02%
77Candidate Name 0026Party Name Z900.02%
78Candidate Name 0027Party Name AA900.02%
79Candidate Name 0028Party Name AB900.02%
80Candidate Name 0029Party Name AC80,00015.96%
81Candidate Name 0030Party Name AD75,00014.96%
82Candidate Name 0031Party Name AE85,00016.96%
83Candidate Name 0032Party Name AF3000.06%
84Candidate Name 0033Party Name AG4000.08%
85Candidate Name 0034Party Name AH5000.10%
86Candidate Name 0035Party Name AI50,0009.98%
87Candidate Name 0036Party Name AJ60,00011.97%
88Candidate Name 0037Party Name AK70,00013.97%
89Candidate Name 0038Party Name AL50.00%
90Candidate Name 0039Party Name AM1,0000.20%
91Candidate Name 0040Party Name AN2,0000.40%
92Candidate Name 0041Party Name AO3,0000.60%
93Candidate Name 0042Party Name AP4,0000.80%
94Candidate Name 0043Party Name AQ5,0001.00%
95Candidate Name 0044Party Name AR6,0001.20%
96Candidate Name 0045Party Name AS7,0001.40%
97Candidate Name 0046Party Name AT8,0001.60%
98Candidate Name 0047Party Name AU9,0001.80%
99Candidate Name 0048Party Name AV10,0002.00%
100Candidate Name 0049Party Name AW11,0002.19%
101Candidate Name 0050Party Name AX12,0002.39%
102Candidate Name 0001Party Name A100.00%
103Candidate Name 0002Party Name B200.01%
104Candidate Name 0003Party Name C300.01%
105Candidate Name 0004Party Name D400.02%
106Candidate Name 0005Party Name E500.02%
107Candidate Name 0006Party Name F600.02%
108Candidate Name 0007Party Name G700.03%
109Candidate Name 0008Party Name H800.03%
110Candidate Name 0009Party Name I900.03%
111Candidate Name 0010Party Name J900.03%
112Candidate Name 0011Party Name K900.03%
113Candidate Name 0012Party Name L900.03%
114Candidate Name 0013Party Name M900.03%
115Candidate Name 0014Party Name N900.03%
116Candidate Name 0015Party Name O10.00%
117Candidate Name 0016Party Name P900.03%
118Candidate Name 0017Party Name Q900.03%
119Candidate Name 0018Party Name R900.03%
120Candidate Name 0019Party Name S900.03%
121Candidate Name 0020Party Name T900.03%
122Candidate Name 0021Party Name U900.03%
123Candidate Name 0022Party Name V900.03%
124Candidate Name 0023Party Name W900.03%
125Candidate Name 0023Party Name W900.03%
126Candidate Name 0025Party Name Y900.03%
127Candidate Name 0026Party Name Z900.03%
128Candidate Name 0027Party Name AA900.03%
129Candidate Name 0028Party Name AB900.03%
130Candidate Name 0029Party Name AC900.03%
131Candidate Name 0030Party Name AD1000.04%
132Candidate Name 0031Party Name AE2000.08%
133Candidate Name 0032Party Name AF3000.11%
134Candidate Name 0033Party Name AG4000.15%
135Candidate Name 0034Party Name AH5000.19%
136Candidate Name 0035Party Name AI50,00019.11%
137Candidate Name 0036Party Name AJ60,00022.93%
138Candidate Name 0037Party Name AK70,00026.75%
139Candidate Name 0038Party Name AL50.00%
140Candidate Name 0039Party Name AM1,0000.38%
141Candidate Name 0040Party Name AN2,0000.76%
142Candidate Name 0041Party Name AO3,0001.15%
143Candidate Name 0042Party Name AP4,0001.53%
144Candidate Name 0043Party Name AQ5,0001.91%
145Candidate Name 0044Party Name AR6,0002.29%
146Candidate Name 0045Party Name AS7,0002.68%
147Candidate Name 0046Party Name AT8,0003.06%
148Candidate Name 0047Party Name AU9,0003.44%
149Candidate Name 0048Party Name AV10,0003.82%
150Candidate Name 0049Party Name AW11,0004.20%
151Candidate Name 0050Party Name AX12,0004.59%
Election 2022 (MNA)
Cell Formulas
RangeFormula
M17:M51,M2:M15M2=IF(L2="","",L2/$H$2)
M69:M101,M52:M67M52=IF(L52="","",L52/$H$52)
M102:M151M102=IF(L102="","",L102/$H$102)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L2:M13601Expression=AND($L2<>"",$L2=MIN($L2:$M13601))textNO
L2:M13601Expression=$AB2=1textNO
L2:M13601Expression=$AA2=3textNO
L2:M13601Expression=$AA2=2textNO
L2:M13601Expression=$AA2=1textNO
J2:M13601Cellcontains a blank value textNO
K102:K151Cell ValueduplicatestextNO
J102:J151Cell ValueduplicatestextNO
K52:K101Cell ValueduplicatestextNO
J52:J101Cell ValueduplicatestextNO
K2:K51Cell ValueduplicatestextNO
J2:J51Cell ValueduplicatestextNO
 
Upvote 0
Your requirement is not clear. I suggest that you
  • Make a copy of that last worksheet shown
  • Remove all Conditional Formatting from the sheet
  • Manually colour the required cells that you are now talking about (J:K?) the colour you want (except use another colour instead of black so the cell values can still easily be seen)
  • Post those first 3 records again with XL2BB
  • Explain exactly how you determined to what cells to colour. Remember that I know nothing about your data or requirements other than what you tell & show in the forum.
 
Upvote 0
Your requirement is not clear. I suggest that you
  • Make a copy of that last worksheet shown
  • Remove all Conditional Formatting from the sheet
  • Manually colour the required cells that you are now talking about (J:K?) the colour you want (except use another colour instead of black so the cell values can still easily be seen)
  • Post those first 3 records again with XL2BB
  • Explain exactly how you determined to what cells to colour. Remember that I know nothing about your data or requirements other than what you tell & show in the forum.
as you know, I am distributing the points to different candidates (L:L) <<< This is for ref only
now in cell J, I have the candidate's name, and cell K is his party.
from J2:J51, I have the candidate's name as a 1st record
then J52:J101 then J102:J151
on the other hand, against all candidates, I have mentioned their party name in K2:K51 as record 1 then K52:K101 2nd record then K102:K151, and so on
I want to check if each record (2:51 52:101 102:151) has any duplicate names and a duplicate party name then highlight it
in addition to the above, if the party name is a duplicate then the candidate name must be highlighted, and if the candidate name is a duplicate the part name must be highlighted.



Election 2024 - Copy.xlsx
JK
2Candidate Name 0001Party Name A
3Candidate Name 0002Party Name B
4Candidate Name 0003Party Name C
5Candidate Name 0004Party Name D
6Candidate Name 0005Party Name E
7Candidate Name 0006Party Name F
8Candidate Name 0007Party Name G
9Candidate Name 0008Party Name H
10Candidate Name 0009Party Name I
11Candidate Name 0010Party Name J
12Candidate Name 0011Party Name K
13Candidate Name 0012Party Name L
14Candidate Name 0013
15Candidate Name 0014Party Name N
16Candidate Name 0015Party Name O
17Candidate Name 0016Party Name P
18Candidate Name 0017Party Name Q
19Candidate Name 0018Party Name R
20Party Name S
21Candidate Name 0020Party Name T
22Candidate Name 0021Party Name U
23Candidate Name 0022Party Name V
24Candidate Name 0023Party Name W
25Candidate Name 0023Party Name W
26Candidate Name 0023Party Name W
27Candidate Name 0026Party Name Z
28Candidate Name 0027Party Name AA
29Candidate Name 0028Party Name AB
30Candidate Name 0029Party Name AC
31Candidate Name 0030Party Name AD
32Candidate Name 0031Party Name AE
33Candidate Name 0032Party Name AF
34Candidate Name 0033Party Name AG
35Candidate Name 0034Party Name AH
36Candidate Name 0035Party Name AI
37Candidate Name 0036Party Name AJ
38Candidate Name 0037Party Name AK
39Candidate Name 0038Party Name AL
40Candidate Name 0039Party Name AM
41Candidate Name 0040Party Name AN
42Candidate Name 0041Party Name AO
43Candidate Name 0042Party Name AP
44Candidate Name 0043Party Name AQ
45Candidate Name 0044Party Name AR
46Candidate Name 0045Party Name AS
47Candidate Name 0046Party Name AT
48Candidate Name 0047Party Name AU
49Candidate Name 0048Party Name AV
50Candidate Name 0049Party Name AW
51Candidate Name 0050Party Name AX
52Candidate Name 0001Party Name A
53Candidate Name 0002Party Name B
54Candidate Name 0003Party Name C
55Candidate Name 0004Party Name D
56Candidate Name 0005Party Name E
57Candidate Name 0006
58Candidate Name 0007Party Name G
59Party Name H
60Candidate Name 0009Party Name I
61Candidate Name 0010Party Name J
62Candidate Name 0011Party Name K
63Candidate Name 0012Party Name L
64Candidate Name 0013Party Name M
65Candidate Name 0014Party Name N
66Candidate Name 0015Party Name O
67Candidate Name 0016Party Name P
68Candidate Name 0017Party Name Q
69Candidate Name 0018Party Name R
70Candidate Name 0019Party Name S
71Candidate Name 0020Party Name T
72Candidate Name 0021Party Name U
73Candidate Name 0022Party Name V
74Candidate Name 0023Party Name W
75Candidate Name 0024Party Name X
76Candidate Name 0025Party Name Y
77Candidate Name 0026Party Name Z
78Candidate Name 0027Party Name AA
79Candidate Name 0028Party Name AB
80Candidate Name 0029Party Name AC
81Candidate Name 0030Party Name AD
82Candidate Name 0031Party Name AE
83Candidate Name 0032Party Name AF
84Candidate Name 0033Party Name AG
85Candidate Name 0034Party Name AH
86Candidate Name 0035Party Name AI
87Candidate Name 0035Party Name AI
88Candidate Name 0035Party Name AI
89Candidate Name 0038Party Name AL
90Candidate Name 0039Party Name AM
91Candidate Name 0040Party Name AN
92Candidate Name 0041Party Name AO
93Candidate Name 0042Party Name AP
94Candidate Name 0043Party Name AQ
95Candidate Name 0044Party Name AR
96Candidate Name 0045Party Name AS
97Candidate Name 0046Party Name AT
98Candidate Name 0047Party Name AU
99Candidate Name 0048Party Name AV
100Candidate Name 0049Party Name AW
101Candidate Name 0050Party Name AX
102Candidate Name 0001Party Name A
103Candidate Name 0002Party Name B
104Candidate Name 0003Party Name C
105Candidate Name 0004Party Name D
106Candidate Name 0005Party Name E
107Candidate Name 0006Party Name F
108Candidate Name 0007Party Name G
109Candidate Name 0007Party Name G
110Candidate Name 0007Party Name I
111Candidate Name 0010Party Name J
112Candidate Name 0011Party Name K
113Candidate Name 0012Party Name L
114Candidate Name 0013Party Name M
115Candidate Name 0014Party Name N
116Candidate Name 0015Party Name O
117Candidate Name 0016Party Name P
118Candidate Name 0017Party Name Q
119Candidate Name 0018Party Name R
120Candidate Name 0019Party Name S
121Candidate Name 0020Party Name T
122Candidate Name 0021Party Name U
123Candidate Name 0022Party Name V
124Candidate Name 0023Party Name W
125Candidate Name 0024Party Name W
126Candidate Name 0025Party Name Y
127Candidate Name 0026Party Name Z
128Candidate Name 0027Party Name AA
129Candidate Name 0028Party Name AB
130Candidate Name 0029Party Name AC
131Candidate Name 0030Party Name AD
132Candidate Name 0031Party Name AE
133Candidate Name 0032Party Name AF
134Candidate Name 0033Party Name AG
135Candidate Name 0034Party Name AH
136Candidate Name 0035Party Name AI
137Candidate Name 0036Party Name AJ
138
139
140
141
142Candidate Name 0041Party Name AO
143Candidate Name 0042Party Name AP
144Candidate Name 0043Party Name AQ
145Candidate Name 0044Party Name AR
146Candidate Name 0045Party Name AS
147Candidate Name 0046Party Name AT
148Candidate Name 0047Party Name AU
149Candidate Name 0048Party Name AV
150Candidate Name 0049Party Name AW
151Candidate Name 0050Party Name AX
Election 2022 (MNA)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,617
Latest member
Narendra Babu D

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