|Well, your description is a tad confusing, but I'll give it a shot:|
I assume you know how to apply Conditional Formatting in 2007. if not, review Response # 4 this thread.
Let's say your 3 row table is in B2:D4.
Select B2:D2 and follow the steps to apply a formatting rule. This is the Formula (rule) to use:
=IF($B$2=5, 1, 0)
=IF($B$2=5, TRUE, FALSE)
Pick a Format.
Follow the same procedure for B3:D3 and B4:D4 using:
=IF($B$3=3, 1, 0) etc.
I hope that helps.