Aug 17 2022 07:50 AM
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!
Aug 17 2022 08:10 AM
Let's say you enter date of birth in D2 and down. The formula for the age could be
=IF(D2="","",DATEDIF(D2,TODAY(),"Y"))
Aug 17 2022 08:16 AM
What exactly do you mean by "flagging"? (Please keep in mind that I know nothing about golf)
Aug 17 2022 08:32 AM
Aug 17 2022 08:38 AM
Aug 17 2022 08:40 AM
SolutionThank 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.
Aug 17 2022 09:17 AM
Aug 17 2022 08:40 AM
SolutionThank 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.