Is it possible to have 2 sets of CF for a cell or range based upon the text of another cell with a validation list?

I need to RAG a cell on values between 1 to 14 or 1 to 7 depending on whether another cell equals "PERM or "PROB". Essentially I suppose I need 6 conditions. I assume it will be a Formula is formatting rule?