I want to apply Data Validation on a cell. When a user enter a numeric value data validation should check its length 13 digits. If the length is greater than or less than 13 digits then message should be shows "Please enter 13 digit value" or do not accept the value. If the length is equal to 13 digits then the formula check duplicates within the range. If duplicate record found then a message should be shows "Please Enter Unique Records Only".
I am using this formula but it would not working properly...
=IF(LEN(A:A)=13,IF(COUNTIF(A:A,A1)>1,"duplicate",IF(LEN(A:A)<>13,"Please enter 13 digit","Please enter 13 digit")))
Thanks in Advance...