How would I write the formula in cell L2 to check for duplicates for the entire range A2:J5? Just in case there are duplicates of x,y coordinates on another row? For example if cell I5 is -2 and cell J5 is -7, this will be an x,y coordinates of -2,-7 in row four and not just in row one. The formula in L5 =LET(f,FILTER(A5:J5,A5:J5<>""),s,SEQUENCE(COLUMNS(f)/2,,0),u,UNIQUE(INDEX(f,,s*2+{1,2})),ss,SEQUENCE(COUNT(u),,0),TRANSPOSE(INDEX(u,INT(ss/2)+1,MOD(ss,2)+1))) of row four will not recognize -2,-7 as a duplicate from row one so -2,-7 and will be displayed twice, in range L2:U5 in row one and in row four.