Please see the attached picture for details of what I'm trying to accomplish.
I have a string of numbers in A. Each number is separated by commas. Going down the column I would like to check the skipped rows of each number until it shows up again in the column.
For example Column B on row 6 shows 1 - 2 - x - 4 - x
# 02 skipped one row from row 4 to row 6 so the result on B should be (1)
# 05 appeared on row 3 then skipped 2 rows and it is again in row 6, so skipped (2)
# 22 and 33 are not on previous rows so it is first time numbers (x)
# 25 was on row 1 and skipped 4 rows before showing up on row 6 so skipped (4).
I can separate the string into columns of that option will be easier.
Any help is appreciated.
excel_skip.jpg
Bookmarks