I think the function you are thinking of is MID, MID allows you to refer to the Nth letter/ number of a string. See below for an example:
th
I think the function you are thinking of is MID, MID allows you to refer to the Nth letter/ number of a string. See below for an example:
this is my formula for a 4-digit number, would you plz tell me what is the bug that it doesn't work for successive digits like 8765?
IF(OR(AND(MID(A2, 2, 1)=MID(A2, 3, 1), MID(A2, 3, 1)=MID(A2, 4, 1)), AND(MID(A2, 1, 1)=MID(A2, 3, 1), MID(A2, 3, 1)=MID(A2, 4, 1)), AND(MID(A2, 1, 1)=MID(A2, 2, 1), MID(A2, 2, 1)=MID(A2, 4, 1)), AND(MID(A2, 1, 1)=MID(A2, 2, 1), MID(A2, 2, 1)=MID(A2, 3, 1)), AND(MID(A2, 1, 1)=MID(A2, 2, 1), MID(A2, 3, 1)=MID(A2, 4, 1)), AND(MID(A2, 1, 1)=MID(A2, 3, 1), MID(A2, 2, 1)=MID(A2, 4, 1)), AND(MID(A2, 1, 1)=MID(A2, 4, 1), MID(A2, 2, 1)=MID(A2, 3, 1)), AND(MID(A2, 2, 1)=MID(A2, 1, 1)+1, MID(A2, 3, 1)=MID(A2, 2, 1)+1, MID(A2, 4, 1)=MID(A2, 3, 1)+1), AND(MID(A2, 2, 1)=MID(A2, 1, 1)-1, MID(A2, 3, 1)=MID(A2, 2, 1)-1, MID(A2, 4, 1)=MID(A2, 3, 1)-1)), "Diamond", "none")