You left out the hard part. The code below will strip the string "years" and
convert the text number to an integer. Here are step by step instructions.
1) Highlight cells you want conditional formating
2) go to Tools Menu and Select conditional formating
3) Select condition 1 formula is
4) The box to the right enter:
=IF(VALUE(SUBSTITUTE(F5,"years",""))<5,TRUE,FALSE)
5) Press format button - select pattern. Pick color
6) Press OK
7) Press Add button
8) Select condition 2 formula is
9) The box to the right enter:
=IF(VALUE(SUBSTITUTE(F5,"years",""))>=5,TRUE,FALSE)
10) Press format button - select pattern. Pick color
11) Press OK