The best way to describe this is by an example:
Row A
1- O
2- 1
3- 2
4- 3
5- R
6- 1
7- 2
8- B
9- 5
10 -6
What I am looking for is a formula I can fill down in Row B where the result will look like this:
O
O - 1
O - 2
O - 3
R
R - 1
R - 2
B
B - 5
B - 6
So when there is a letter in A1, as long as the next row does not contains that letter, then the next row will combine A1 with A2 in B2; A1 with A3 in B3; A1 with A4 in B4; but since A5 has a new letter, B5 will equal A5, then after, A5 with A6 in B6; A5 with A7 in B7 and so on
Row A
1- O
2- 1
3- 2
4- 3
5- R
6- 1
7- 2
8- B
9- 5
10 -6
What I am looking for is a formula I can fill down in Row B where the result will look like this:
O
O - 1
O - 2
O - 3
R
R - 1
R - 2
B
B - 5
B - 6
So when there is a letter in A1, as long as the next row does not contains that letter, then the next row will combine A1 with A2 in B2; A1 with A3 in B3; A1 with A4 in B4; but since A5 has a new letter, B5 will equal A5, then after, A5 with A6 in B6; A5 with A7 in B7 and so on