Ranking Top 3 with Conditional Formatting

Renier

New Member
Joined
Dec 12, 2019
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Image 1.jpg


I would appreciate some help with a formula please. I would like to use conditional formatting to highlight the top 3 values in column A which has a column B value of more than 80 000. When conditional formatting is done it should look like this:

Image 2.jpg


Thanks in advance.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi, welcome to the forum!

Here is one option:

Book1
AB
158%106398
248%90961
329%69101
428%65961
528%78398
627%62548
724%68712
822%39405
921%154507
1020%149457
1119%165427
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:B11Expression=ISNUMBER(MATCH($A1,LARGE(IF($B$1:$B$11>80000,$A$1:$A$11),ROW(INDIRECT("1:3"))),0))textNO
 
Upvote 0
Select A1:B11
Home > conditional formatting > New rules > use a formula

=(SUM(($B$1:$B$11>80000)*($A$1:$A$11>$A1))/($B1>80000))<3

format > fill green > OK,OK
 
Upvote 0
Select A1:B11
Home > conditional formatting > New rules > use a formula

=(SUM(($B$1:$B$11>80000)*($A$1:$A$11>$A1))/($B1>80000))<3

format > fill green > OK,OK

also worked 100% thank you very much.
 
Upvote 0
Hi, and here's another option where you can use full column references without too much impact on performance.

=AND(COUNTIFS($A:$A,">"&$A1,$B:$B,">80000")<3,$B1>80000)
 
Upvote 0
Hi, and here's another option where you can use full column references without too much impact on performance.

=AND(COUNTIFS($A:$A,">"&$A1,$B:$B,">80000")<3,$B1>80000)

Thank you very much.
 
Upvote 0

Forum statistics

Threads
1,215,337
Messages
6,124,340
Members
449,155
Latest member
ravioli44

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