I need a formula to see similar ones differently in format rules. How can I do it

I need a formula to see similar ones differently in format rules. How can I do it