are you sure? to correct fotis you need =IF(COUNTIF($B$2:B2,B2)>1,"Doumple","ok"),
why didn't you just use the remove duplicates option on the data tab?