finding top 3 countings and using conditional formatting

mwvirk

Board Regular
Joined
Mar 2, 2011
Messages
247
Office Version
  1. 2016
Platform
  1. Windows
hello

i am trying to find the top 3 counts and then applying the condition formatting using the below formulas:

=OR(L2=MAX(L$2:L$31),L2=LARGE(L$2:L$31,1))
=OR(L2=MAX(L$2:L$31),L2=LARGE(L$2:L$31,2))
=OR(L2=MAX(L$2:L$31),L2=LARGE(L$2:L$31,3))

when searching and applying for the 1st & 2nd, it's working but when applying the 3rd formula, it's not changing the format in fact applying the 3rd formula for the 1st condition.

Election 2022.xlsx
L
21,000
3500
42
59,000
64
72,700
830,000
932,000
102,700
1110
1211
1312
1413
1514
1615
1716
1817
1918
2019
2120
2221
2322
2423
2524
2625
2726
2827,000
2928
309
3110
Election 2022 (MNA)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L2:L31Expression=OR(L2=MAX(L$2:L$31),L2=LARGE(L$2:L$31,3))textNO
L2:M31Expression=OR(L2=MAX(L$2:L$31),L2=LARGE(L$2:L$31,1))textNO
L2:M31Expression=OR(L2=MAX(L$2:L$31),L2=LARGE(L$2:L$31,2))textNO



1704030778206.png
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
There is no reason to use the reference to MAX. With your original rules, they will all be TRUE for the largest number.

Excel Formula:
=L2=LARGE(L$2:L$31,1)
=L2=LARGE(L$2:L$31,2)
=L2=LARGE(L$2:L$31,3)
 
Upvote 1
CellConditionCell FormatStop If True
Cells with Conditional Formatting
L2:M31Expression=$L2=MAX($L$2:$L$31)numberNO
L2:M31Expression=$L2=LARGE($L$2:$L$31,2)numberNO
L2:M31Expression=$L2=LARGE($L$2:$L$31,3)numberNO
 
Upvote 1
Solution

Forum statistics

Threads
1,215,071
Messages
6,122,964
Members
449,094
Latest member
Anshu121

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