You could try the formula:
=IF(COUNTIFS(A:A,A1,B:B,B1,C:C,C1)>1, "ERROR", "OK")
COUNTIFS(A:A,A1,B:B,B1,C:C,C1)
counts the number of times a series of cells A1, B1 and C1 appear in the columns A, B and C.
If it's above 1 (there's more than one), put ERROR
, else OK
.