Skins Game Conditional Formatting

Gulfcourse

New Member
Joined
Nov 5, 2023
Messages
32
Office Version
  1. 365
Platform
  1. Windows
I've been unsuccessful trying to figure this out using multiple resources so I'm reaching out here.
I'm trying to be make the explanation thorough and apologize if it runs on too long.
Sheet 1 has everyones scores by hole who played the last round.
The Cells with front 9 scores go from E to M, column N being the front nine hole total, O to W the back 9 scores, column X the back 9 total, and Y the round total.
Some do not play all the time so some rows will have blank cells.
Sheet 1 has an additional row for each player that tracks Stableford points so I cannot do skins on the sheet, or don't know how to, that's why I created Sheet 2.
Sheet 2 lists everyones name and in cell C4 I used =('18-hole scores'!E6) to bring the score over and continued the formula throughout the sheet.
Columns C:K are holes 1-9 and M-U are 10-18.
If it makes any diference, if someone did not play and the cells in sheet 1 are blank, the corresponding cells in sheet 2 have 0's in them.
The row of scrores in sheet 2 go from 4 to 36.
Sheet 2's values change everytime we play another round and I change the scores on Sheet 1.

On sheet 2, I'm trying to conditionally format the lowest unique score that is not a 0 in each column, if the lowest score in a column is 3, and there were 2 of them it shouldn't be formatted.
I know there was only one 4 on the 18th hole, column U, so I tried =AND(U4=MIN($U$4:$U$36),COUNTIF($U$4:$U$36,U4)=1) and it does nothing to the cell with the 4.

I added a row (37) and used =SMALL(C4:C36,COUNTIF(C4:C36,0)+1) to find the lowest score for each hole and then added =COUNTIF(C4:C36,C37) in row (38) to find how many of the lowest scores were in each column.
I thought I could possibly use a formula that would look for a 1 in row 38, and then look and highlight the cell that matched the number in 37.
Per my effort in column U mentioned above, in this case U38 has a value of 1, U37 is 4, so I tried to many things to say if U38=1 format any cell in column U that matched the value in U37.
I don't know if I cannot get things to work because of using = to bring the values over, I tried formatting the cells as General and Numbers, didn't make any difference.
So that's were I'm at, I even went to the library and worked with someone there ann came up empty so any suggestions will be much appreciated.
 
Do I simply change the C4 values to D6 and the U57 to V59 in the formula?
If you applied the CF I gave before you inserted the new column & row you should not need to do anything as the CF formula would automatically adapt.

If you have not already applied the CF then select C6:V59 and apply this CF. See further information below the mini sheet.

Gulfcourse.xlsm
BCDEFGHIJKLMNOPQRSTUVW
3PLAYERHole123456789OUT101112131415161718IN
4PAR4434443453543444543435
5Hdcp715411173913162161218810414
6Bonham
7PTS
8Cox5534564574443544643538
9PTS112210110922122122115
10Dangerfield6534554444054454653642
11PTS0122111241411212112011
12Davis
13PTS
14Dufour0
15PTS
16Edmisten5436343563954565763546
17PTS122042011131110100217
18Funari
19PTS
20Gosnell
21PTS
22Gressell5646664574963455765647
23PTS10100011040221100006
24Hobbs
25PTS
26Keep
27PTS
28Kilroy
29PTS
30Lincoln6636663474765555765650
31PTS00200022060011100003
32Martin
33PTS
34Moderick
35PTS
36Nassar6525553564263565743544
37PTS014111211120210102219
38Nigro4544463363954656764548
39PTS211220241151101000115
40Palladino
41PTS
42Petro6555654574863545653643
43PTS010101110502121112010
44Phillips
45PTS
46Roderick4435443443553545543539
47PTS2221222241912121222114
48Sepic6544463554243555653440
49PTS0112202121122111112213
50Smigel
51PTS
52Theberge6434453474043555653642
53PTS0222212201322111112011
54Wallon5525553564164554555544
55PTS114111211130111221019
56Zeman
57PTS
58Terry
59PTS
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D6:V59Expression=AND(D6=MINIFS(D$6:D$59,D$6:D$59,">0",$B$6:$B$59,"<>"),COUNTIFS(D$6:D$59,D6,$B$6:$B$59,"<>")=1,-D$3,$B6<>"")textNO


If you are applying this CF to different rows/columns then select the range in question and then adapt the CF formulas as described below

=AND(D6=MINIFS(D$6:D$59,D$6:D$59,">0",$B$6:$B$59,"<>"),COUNTIFS(D$6:D$59,D6,$B$6:$B$59,"<>")=1,-D$3,$B6<>"")

Where I have 6 should be whatever the first row is of the selected area
59 should be the last row number of selection
D first column letter of selection
B column containing the names
3 is the row with the hole numbers (& "OUT" heading)
 
Upvote 0

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
Thank you so much, it is very much appreciated. Heading out the door so I'll try it later!
Really appreciate the explanation as well, great learning tool.
Steve
 
Upvote 0
I really do appreciate the help and try to find answers myself but come up empty sometimes, like now.
On the first sheet, the one will a row for scores and points for each player, I'd like to clear only the scores after the round.
If I select a range and clear contents it will no longer calculate the points.
I tried F5, Go to Special, Constants, and it selects all the scrore rows but also the names.
I only want to clear the cells, in the rows with the name, that I put scores into for holes 1-9 and 10-18, and have been unable to wrap my pea brain around it.
Thank you so much.
 
Upvote 0
Try this with a copy of your workbook.
  1. You probably already have a formula in the "OUT" and "IN" columns but if not try those shown in the mini sheet below

    Gulfcourse.xlsm
    BCDEFGHIJKLMNOPQRSTUVW
    3PLAYERHole123456789OUT101112131415161718IN
    4PAR4434443453543444543435
    5Hdcp715411173913162161218810414
    6Bonham  
    7PTS  
    8Cox5534564574443544643538
    9PTS112210110922122122115
    10Dangerfield6534554444054454653642
    11PTS0122111241411212112011
    12Davis  
    Sheet1
    Cell Formulas
    RangeFormula
    M6:M12,W6:W12M6=IF(COUNT(D6:L6),SUM(D6:L6),"")


  2. Unless you already have an AutoFilter set up, select from B5:AA59 (or whatever the last PTS row is) then Data ribbon tab -> AutoFilter. The sheet should then appear with drop-down arrows in row 5 like this.

    1699499330167.png


  3. Click the drop-down in column C and remove the tick from the 'PTS' box -> OK. This should now just show you the rows that have names in column B

  4. Select from D6:V58 (row 59 - last row - should now be hidden)

  5. Press F5 -> Special... -> Constants -> OK
    The sheet should now look something like this

    1699499599990.png


  6. Press the Delete key

  7. Click the drop-down arrow in column C again and choose (Select All) -> OK
 
Upvote 0
WOW, thank you Peter.
I'm amazed, and appreciative, of your knowledge and hope I'm not overstepping by asking for additional help.
I've found, in many instances, it's all a matter of how a problem is worded to be able to find a solution, and people use many different words to describe the same problem!
You, and the others, have made my life running this league easier, and have saved me from spending more money for headache relief medication!
All the best,
Steve
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,130
Members
453,021
Latest member
Justyna P

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