hi there
I need to count repeated values and consecutive repeated values in each row
based on the rows above I would get this two columns below (1st column is number of repetitions and 2nd column is number of consecutive repetitions)
0 0
1 1
1 0
1 0
1 1
0 0
2 1
1 1
0 0
for example:
<table border="0" cellpadding="0" cellspacing="0" width="130"><col style="mso-width-source:userset;mso-width-alt:950; width:20pt" span="5" width="26"> <tbody><tr style="height:15.0pt" height="20"> <td style="height:15.0pt;width:20pt" height="20" align="right" width="26">16</td> <td style="width:20pt" align="right" width="26">7</td> <td style="width:20pt" align="right" width="26">1</td> <td style="width:20pt" align="right" width="26">2</td> <td style="width:20pt" align="right" width="26">3</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20" align="right">9</td> <td align="right">8</td> <td align="right">8</td> <td align="right">3</td> <td align="right">21</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20" align="right">1</td> <td align="right">8</td> <td align="right">1</td> <td align="right">12</td> <td align="right">28</td> </tr> </tbody></table>
1st row: no repetitions, no consecutive repetitions
2nd row: 1 repetition; 1 consecutive repetition
3rd row: 1 repetition; no consecutive repetitions