Enter the formula in B 1 = IF(A2- 1 & lt; & gtA 1," X ","")
Copy the formula of B 1 and display the missing position directly.