Hi guys, I am fairly new to doing VBA coding stuff so if my question seems a bit obvious, that's why.
I am trying to do a results table for football like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Team 1
[/TD]
[TD]Team 2
[/TD]
[TD]Team 3
[/TD]
[TD]Team 4
[/TD]
[/TR]
[TR]
[TD]Team 1
[/TD]
[TD][/TD]
[TD]2-1
[/TD]
[TD]0-3
[/TD]
[TD]2-2
[/TD]
[/TR]
[TR]
[TD]Team 2
[/TD]
[TD]1-0
[/TD]
[TD][/TD]
[TD]1-2
[/TD]
[TD]0-0
[/TD]
[/TR]
[TR]
[TD]Team 3
[/TD]
[TD]4-1
[/TD]
[TD]2-0
[/TD]
[TD][/TD]
[TD]2-0
[/TD]
[/TR]
[TR]
[TD]Team 4
[/TD]
[TD]2-1
[/TD]
[TD]1-1
[/TD]
[TD]0-2
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am trying to format the cells so that if the left hand number is bigger than the right, the cell colours green. If the right is bigger the cell colours red and if they are the same, yellow.
I have tried a few different ways to do this and it hasn't worked. I've also looked on the internet and can't find anything.
I am doing this in Excel 2010.
Can anyone help me out?
Thanks
I am trying to do a results table for football like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Team 1
[/TD]
[TD]Team 2
[/TD]
[TD]Team 3
[/TD]
[TD]Team 4
[/TD]
[/TR]
[TR]
[TD]Team 1
[/TD]
[TD][/TD]
[TD]2-1
[/TD]
[TD]0-3
[/TD]
[TD]2-2
[/TD]
[/TR]
[TR]
[TD]Team 2
[/TD]
[TD]1-0
[/TD]
[TD][/TD]
[TD]1-2
[/TD]
[TD]0-0
[/TD]
[/TR]
[TR]
[TD]Team 3
[/TD]
[TD]4-1
[/TD]
[TD]2-0
[/TD]
[TD][/TD]
[TD]2-0
[/TD]
[/TR]
[TR]
[TD]Team 4
[/TD]
[TD]2-1
[/TD]
[TD]1-1
[/TD]
[TD]0-2
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am trying to format the cells so that if the left hand number is bigger than the right, the cell colours green. If the right is bigger the cell colours red and if they are the same, yellow.
I have tried a few different ways to do this and it hasn't worked. I've also looked on the internet and can't find anything.
I am doing this in Excel 2010.
Can anyone help me out?
Thanks