exceluser9
Active Member
- Joined
- Jun 27, 2015
- Messages
- 388
Hi Team,
I have a below data and we would want to know how many time word P has repeated continuously for each name. I have give the result which I require for Jack it should be 4 (Its repeated 4 times continuously) and for Jill it should be 2 (Its repeated 2 times continuously) and for James it should be 1.
[TABLE="width: 212"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Names[/TD]
[TD]Attendance[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]S[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]N[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]N[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]F[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]H[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]P[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]P[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]A[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]L[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]P[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]James[/TD]
[TD]P[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]James[/TD]
[TD]A[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
I have a below data and we would want to know how many time word P has repeated continuously for each name. I have give the result which I require for Jack it should be 4 (Its repeated 4 times continuously) and for Jill it should be 2 (Its repeated 2 times continuously) and for James it should be 1.
[TABLE="width: 212"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Names[/TD]
[TD]Attendance[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]S[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]N[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]P[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]N[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]F[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]H[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]P[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]P[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]A[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]L[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD]P[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]James[/TD]
[TD]P[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]James[/TD]
[TD]A[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]