Conditional Formatting - Sports (Golf) Leaderboard

gorodn444

New Member
Joined
Aug 27, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello, first time poster, so please be gentle.

I help run golf competitons for junior golfers and use Excel for all my leaderboards etc. We run a season long competiton where the best 7 scores from all 14 tournaments count towards your end of season score.

I'd like to find a way of highighting each player's best/lowest 7 scores that have been used. I've tried using the Bottom 7 in conditional formatting. Unfortunately, if their 7th lowest score is equal to the 8th/9th etc it highights them all. In certain circumstances plyers can have up to 9 or 10 scores highlighted when I only need a maximum of 7 highlighted.

Is this possible. to do?
 

Attachments

  • Screenshot 2024-08-27 114910.png
    Screenshot 2024-08-27 114910.png
    19 KB · Views: 12

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
As it is seen on the screenshot the results are always whole (integer) numbers.
You may use a cell content+0.000001*column_number as a value.
And select 7 highest (or shall they be lowest in golf?) numbers.
There will be only 7 such numbers as every 5 in case of first palyer in your screenshot is different: F1=5.000006, G1=5.0000007 etc.
 
Upvote 0
Welcome to the MrExcel board!

What about something like this?

24 08 27.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
211374731
37870137167636
40154377047400
5451
63333223333333
Lowest 7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:Z6Expression=AND(D2<>"",COUNTIF($D2:$Z2,"<"&D2)+COUNTIF($D2:D2,D2)<=7)textNO
 
Upvote 0
I suppose that it means Even that is we can take it as 0 points. Is that correct?

If that is so then how about this? Taking the idea from @Kaper .
We create a named range:
With the cell F2 selected, create the named range named "HighLight" with this formula:

Excel Formula:
=LET(n, Sheet2!$F2:$S2, d, IF(n="", "", IF(n="E", 0, n)), v, TAKE(SORT(FILTER(d+SEQUENCE(,14)/100, d<>""),,,1),,7 ), nv, IF(Sheet2!F2="E", 0, Sheet2!F2), ISNUMBER(MATCH(nv+(COLUMN(Sheet2!F2)-COLUMN(Sheet2!$E$1))/100, v, 0)) )

And then we use this named range in the CF:

here is the working file to download: GoldHighLight.zip

Book1.xlsx
ABCDEFGHIJKLMNOPQRS
1IdPlayer numberRounds playedTotal score
21Player 155551665475
32Player 288738108814871
43Player 311E11881114111281157
5
6
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:S11Expression=HighLighttextNO
 
Upvote 0
I suppose that it means Even that is we can take it as 0 points.
I had forgotten about the "E" (= "Even" = 0)

This would be my suggestion
Format the score entry columns with a Custom number format of +0;-0;"E"
1724801313787.png


So for "even" scores just enter a 0. For example, cell G3 below contains a 0, not an "E"

Then use the same Conditional Formatting rule I suggested above.

24 08 27.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
2+1+1+3+7+4+7+3+1
3+7+8+7E+1+3+7+1+6+7+6+3+6
4E+1+5+4+3+7+7E+4+7+4EE
5+4+5+1
6+3+3+3+3+2+2+3+3+3+3+3+3+3
7-1-1-1-1-3-1-1-2-1-1EEE
8+1-5E+3-3+1+1E-4-2
9
10
Lowest 7 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:Z10Expression=AND(D2<>"",COUNTIF($D2:$Z2,"<"&D2)+COUNTIF($D2:D2,D2)<=7)textNO
 
Last edited:
Upvote 0
As it is seen on the screenshot the results are always whole (integer) numbers.
You may use a cell content+0.000001*column_number as a value.
And select 7 highest (or shall they be lowest in golf?) numbers.
There will be only 7 such numbers as every 5 in case of first palyer in your screenshot is different: F1=5.000006, G1=5.0000007 etc.
Yes, they are all whole numbers.
 
Upvote 0
I had forgotten about the "E" (= "Even" = 0)

This would be my suggestion
Format the score entry columns with a Custom number format of +0;-0;"E"
View attachment 116040

So for "even" scores just enter a 0. For example, cell G3 below contains a 0, not an "E"

Then use the same Conditional Formatting rule I suggested above.

24 08 27.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
2+1+1+3+7+4+7+3+1
3+7+8+7E+1+3+7+1+6+7+6+3+6
4E+1+5+4+3+7+7E+4+7+4EE
5+4+5+1
6+3+3+3+3+2+2+3+3+3+3+3+3+3
7-1-1-1-1-3-1-1-2-1-1EEE
8+1-5E+3-3+1+1E-4-2
9
10
Lowest 7 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:Z10Expression=AND(D2<>"",COUNTIF($D2:$Z2,"<"&D2)+COUNTIF($D2:D2,D2)<=7)textNO
This is brilliant. Thank you.
 
Upvote 0

Forum statistics

Threads
1,224,761
Messages
6,180,818
Members
452,997
Latest member
gimamabe71

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