Forum Discussion
DaveHill
Aug 17, 2022Copper Contributor
golf league formula to calculate and flag age
I maintain records for a senior's golf league. In one workbook, Master List, each player's personal information is kept including his birth date. The second workbook, Weekly Scores is for recording each week's scores for the players. The names and other information are currently linked between these workbooks by league flight.
Our league awards players for scoring a round under his age, (last season a player 92 years old shot a 91).
I added a DATEDIF column in the Master List to return the age in years, but I want to add a 'flag', maybe the weekly score cell highlighted when a score is entered under the player's age.
Also, what function must be included to DATEDIF to return a blank cell when the DOB cell is blank?
Thanks in advance for any assistance!
Thank you.
Let's say you have the ages in E2 and down, and scores elsewhere in row 2 and down.
Select the range with the scores.
The active cell in the selection should be in the top row of the range, in this example in row 2.
On the home tab of the ribbon, select Conditional Formatting > New Rule...
Select 'Format only cells that contain'.
Leave the first drop down set to 'Cell Value'.
Select 'less than' from the second drop down.
In the box next to it, enter the formula =$E2
Remember, E is the column with the ages and 2 is the row of the active cell.
Click Format...
Activate the Font tab.
Select a font color, and perhaps other settings such as Bold.
Click OK, then click OK again.
7 Replies
Sort By