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

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,531
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.
 
Earlier in this thread, I posted an outline showing how to make conditional formatting rules work. There was an error in step 1. Here are the corrected steps (I believe):


  1. Use absolute references (with the $ signs: $B$3:$C$25) in the Applies to section.
  2. Use absolute references almost everywhere in the rules section. The exception is tha target cell. In my case, I was trying to highlight the 3 top (largest) values in a column (B3:B5). Using the RANK function, I coded the rule for top (largest) value as
    Code:
    =rank($B3,$B$3:$B$5,0)=1
    . Note that in the target cell ($B3), the colmn is absolute, but the row isn't. This is because I want the target cell to float over the range (column).
  3. Select the entire range that the rules will apply to, if possible. It's way better to have one set of rules for the entire range, than separate sets for each column.
  4. If the entire range cannot be selected all at once, select what you can, but then make sure to manually add the other pieces in the Applies to section. Separate non-contiguous sections with commas ($B$3:$B$25,$D$3:$F$25).
  5. Make sure to arrange the cells in order, if that matters.

n.b.: Using the format painter is very dangerous if there are conditional formatting (CF) rules. Any CF rules in the source cells will be added to any that are already there -- even if they are the same. I once found as many as 15 copies of the same or similar rules.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Thanks for sharing the answer...This helps me.

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

<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

Forum statistics

Threads
1,214,824
Messages
6,121,784
Members
449,049
Latest member
greyangel23

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