Peter Selwin
New Member
- Joined
- Apr 23, 2018
- Messages
- 4
Hello guys,
Can anyone think of a way to add a value to every Nth cell that has a repeating value?
Example:
[TABLE="width: 500"]
<tbody></tbody>[/TABLE]
[TABLE="width: 64"]
<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>[TR]
[TD="width: 64"]Bob
[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob
[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[/TR]
</tbody>[/TABLE]
Every 5th value in the column that has the same value would be renamed with a number when a macro is used:
[TABLE="width: 500"]
<tbody>[TABLE="width: 64"]
<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>[TR]
[TD="width: 64"]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob - 2[/TD]
[/TR]
[TR]
[TD]Bob - 2[/TD]
[/TR]
[TR]
[TD]Bob - 2[/TD]
[/TR]
[TR]
[TD]Bob - 2[/TD]
[/TR]
[TR]
[TD]Bob - 2[/TD]
[/TR]
[TR]
[TD]Bob - 3[/TD]
[/TR]
[TR]
[TD]Bob - 3[/TD]
[/TR]
[TR]
[TD]Bob - 3[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony - 2[/TD]
[/TR]
[TR]
[TD]Tony - 2[/TD]
[/TR]
[TR]
[TD]Tony - 2[/TD]
[/TR]
[TR]
[TD]Tony - 2[/TD]
[/TR]
[TR]
[TD]Tony - 2[/TD]
[/TR]
[TR]
[TD]Tony - 3[/TD]
[/TR]
[TR]
[TD]Tony - 3[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue - 2
[/TD]
[/TR]
</tbody>[/TABLE]
</tbody>[/TABLE]
I'm puzzled on this one!
Thanks!
Can anyone think of a way to add a value to every Nth cell that has a repeating value?
Example:
[TABLE="width: 500"]
<tbody></tbody>[/TABLE]
[TABLE="width: 64"]
<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>[TR]
[TD="width: 64"]Bob
[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob
[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[/TR]
</tbody>[/TABLE]
Every 5th value in the column that has the same value would be renamed with a number when a macro is used:
[TABLE="width: 500"]
<tbody>[TABLE="width: 64"]
<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>[TR]
[TD="width: 64"]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Bob - 2[/TD]
[/TR]
[TR]
[TD]Bob - 2[/TD]
[/TR]
[TR]
[TD]Bob - 2[/TD]
[/TR]
[TR]
[TD]Bob - 2[/TD]
[/TR]
[TR]
[TD]Bob - 2[/TD]
[/TR]
[TR]
[TD]Bob - 3[/TD]
[/TR]
[TR]
[TD]Bob - 3[/TD]
[/TR]
[TR]
[TD]Bob - 3[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony[/TD]
[/TR]
[TR]
[TD]Tony - 2[/TD]
[/TR]
[TR]
[TD]Tony - 2[/TD]
[/TR]
[TR]
[TD]Tony - 2[/TD]
[/TR]
[TR]
[TD]Tony - 2[/TD]
[/TR]
[TR]
[TD]Tony - 2[/TD]
[/TR]
[TR]
[TD]Tony - 3[/TD]
[/TR]
[TR]
[TD]Tony - 3[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue
[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Sue - 2
[/TD]
[/TR]
</tbody>[/TABLE]
</tbody>[/TABLE]
I'm puzzled on this one!
Thanks!