Im formatting a golf scorecard. What i need to do is highlight a cell where a score gets inputted if the player handicap is equal to or greater than the course handicap for that hole. If that makes sense. The numbers in red are the cells i want to highlight based on if the player handicap is higher or equal to the hole handicap.
For example
[TABLE="width: 600"]
<tbody>[TR]
[TD]Hole Number:[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Hole Handicap[/TD]
[TD][/TD]
[TD][/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]7[/TD]
[TD]1[/TD]
[TD]9[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Par[/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]5[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Player handicap[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Players:[/TD]
[TD]Johnathan[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Bill[/TD]
[TD]7[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]4[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
ex( John has a handicap of 4, on hole 1, the course handicap is 5, 4 < 5 thus it does not get highlighted for his score there. But on hole 2, the course handicap is 3, 4 is greater than 3, so it DOES get highlighted in the cell for his score on that hole.)
Any help is much appreciated
Thanks!!!
For example
[TABLE="width: 600"]
<tbody>[TR]
[TD]Hole Number:[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Hole Handicap[/TD]
[TD][/TD]
[TD][/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]7[/TD]
[TD]1[/TD]
[TD]9[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Par[/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]5[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Player handicap[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Players:[/TD]
[TD]Johnathan[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Bill[/TD]
[TD]7[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]4[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
ex( John has a handicap of 4, on hole 1, the course handicap is 5, 4 < 5 thus it does not get highlighted for his score there. But on hole 2, the course handicap is 3, 4 is greater than 3, so it DOES get highlighted in the cell for his score on that hole.)
Any help is much appreciated
