문제

I have two columns with telephone numbers in them, I want cells B2 and B3 to change colour depending on whether they match the last 4 digits in the column next to them:

SO20748315 question example

B2 turns green as it matches the end of A2 and B3 turns red as it does not match the last four digits of A3.

How would I go about doing this?

도움이 되었습니까?

해결책

I suggest you just use one rule, say format all red and use the CF to change that to green only when there is a match, say with:

=B1=VALUE(RIGHT(A1,4))  

in B1 and applied to B:B.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top