Highlighting the top three finishers in different colors (gold, silver, bronze?)

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,535
Office Version
  1. 365
Platform
  1. Windows
I am aware of the Conditional Formatting option that will highlight the top N values in a range.

Is there an easy way to highlight each of the top 3 in a different color? Can I set the background fill to gold, silver, and bronze for 1st, 2nd, and 3rd?

I tried creating three rules, one for the top three, one for the top 2, and one for the top 1. It sorta worked, but the colors kinda merged.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Highlight the cells ( in the example B2:B15).
In the conditional formatting go to highlight cell rules and select equal to.
Then put the following formulas(from the =sign and adjust ranges to suit) in the box (obviously a separate formula & rule for each color).
You don't say much about what your data looks like (that's a little bit important) and so you might need to change the LARGE function to SMALL if your data goes 1,2,3 etc.
Sheet2

*B
1VALUE
2141
3104
4110
583
6102
766
866
9100
10147
1166
12144
1368
1464
15102

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:61px;"></colgroup><tbody>
</tbody>

Conditional formatting
CellNr.: / ConditionFormat
B21. / Cell Value equal to =LARGE($B$2:$B$15,3)Abc
B22. / Cell Value equal to =LARGE($B$2:$B$15,2)Abc
B23. / Cell Value equal to =LARGE($B$2:$B$15,1)Abc

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
Hi,

You can do this with conditional formatting.

You need to enter three rules. Enter these three rules in one cell and then you can just copy and paste the formatting over the range.

Rule 1

=RANK(L15,$L$15:$L$21)=1

Change L15, to the cell reference you are checking (I.e. you first number) . Change L15:L21 to your list of numbers.

Change the formatting to Gold.

=RANK(L15,$L$15:$L$21)=2 (Formatting Silver)

=RANK(L15,$L$15:$L$21)=3 (Formatting Bronze)
 
Upvote 0
Just in case I wasn't clear over the use of SMALL...
But you might get an issue with draws (See Column C)
Excel Workbook
BC
299
376
455
532
611
788
822
944
1063
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B21. / Cell Value equal to =SMALL($B$2:$B$15,3)Abc
B22. / Cell Value equal to =SMALL($B$2:$B$15,2)Abc
B23. / Cell Value equal to =SMALL($B$2:$B$15,1)Abc
 
Upvote 0
My data is in Y8:Y16. It currently looks like this:
Code:
[TABLE="width: 66"]
<tbody>[TR]
[TD]47.6[/TD]
[/TR]
[TR]
[TD]52.9[/TD]
[/TR]
[TR]
[TD]60.0[/TD]
[/TR]
[TR]
[TD]43.7[/TD]
[/TR]
[TR]
[TD]50.8[/TD]
[/TR]
[TR]
[TD]43.7[/TD]
[/TR]
[TR]
[TD]44.5[/TD]
[/TR]
[TR]
[TD]37.5[/TD]
[/TR]
[TR]
[TD]32.1[/TD]
[/TR]
</tbody>[/TABLE]

On my first try, I got the same results with both of your methods (Rank and Large). I started with one rule. It highlighted the entire range. I tried it several times. Then I noticed that in the Rank example, the target cell is relative (no $ signs). I tried it again removing the $ signs and it seems to be working.

I could not get the Large method to work.
 
Upvote 0
Mark858,

I can't get large or small to work. I'm not too concerned, because I got Rank to work.

Duplicates should not be a problem. If there are two second largest values, the next largest value will be the 4th.
 
Upvote 0
Yes, the target cell does not have $ signs, otherwise the Rank formula won't work.
 
Upvote 0
You need to enter three rules. Enter these three rules in one cell and then you can just copy and paste the formatting over the range.

ChrisR,

I need to do this in 7-8 columns of data. I wold love to be able to set it up once and copy the formatting to the other columns. The problem is the other columns are not all formatted the same. Some have a background, they use different font sizes, and there are different border situations.

Is there any way to copy just the conditional formatting?
 
Upvote 0
Is each column identical cell wise, but just different to other columns, or are there variations of formatting within the column?
 
Upvote 0
Just to add to the above........... I don't think it's possible to preserve the formatting on the cells when pasting conditional formatting, not without VBA anyway........

It may be easier to just copy and paste the conditional formatting across (Watch your $ references, as they will need to move to the new column (Unless of course you are looking for the top 3 out of all the columns)

Then once this is done, just reformat the columns manually..............It's difficult for me to know if this is suitable, however, as I have no idea what/why you have different formats and the necessity of these..........
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

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