G
Gary Thomson
I have the following strings in the following cells:
A B C D E F G H
1 1-Feb 2-Feb 3-Feb 4-Feb 5-Feb 6-Feb 7-Feb 8-Feb
2 a b bc bd be bcd bd d
For each day, I want to know how many consecutive days one
of the letters has appeared in that cell (where two
letters appear, we take the maximum duration of the two).
The answers would be displayed in the range J2:Q2 as
follows:
A B C D E F G H
1 1-Feb 2-Feb 3-Feb 4-Feb 5-Feb 6-Feb 7-Feb 8-Feb
2 1 1 2 3 4 5 6 3
Since:
On the 1st feb, "a" has appeared in 1 consecutive cell
On the 2nd Feb, "b" has appeared in one consecutive cell
On the 3rd feb, "b" has appeared in 2 consecutive
cells, "c" has appeared in 1 consecutive cell, so we take
the maximum
and so on.....
..
How can I do this?
A B C D E F G H
1 1-Feb 2-Feb 3-Feb 4-Feb 5-Feb 6-Feb 7-Feb 8-Feb
2 a b bc bd be bcd bd d
For each day, I want to know how many consecutive days one
of the letters has appeared in that cell (where two
letters appear, we take the maximum duration of the two).
The answers would be displayed in the range J2:Q2 as
follows:
A B C D E F G H
1 1-Feb 2-Feb 3-Feb 4-Feb 5-Feb 6-Feb 7-Feb 8-Feb
2 1 1 2 3 4 5 6 3
Since:
On the 1st feb, "a" has appeared in 1 consecutive cell
On the 2nd Feb, "b" has appeared in one consecutive cell
On the 3rd feb, "b" has appeared in 2 consecutive
cells, "c" has appeared in 1 consecutive cell, so we take
the maximum
and so on.....
..
How can I do this?