From a range of given cells(let\'s say 5), there shouldn\'t be repetition of 2 particular values the 3rd time.
For example in the attached picture, if the values eith