if ";WER_DANE" is always on the right, use this in instead... =IF(RIGHT(C2,9)=";wer_dane",C2&";POBR_DANE",C2)
this will work.