simonharry
New Member
- Joined
- Jun 17, 2016
- Messages
- 8
Hi All,
Not been here for a while. Hope you are all ok and can help.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Column A
[/TD]
[TD]Column B
[/TD]
[/TR]
[TR]
[TD]A123
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A123
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A124
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A125
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have 2 columns as above. I want to add the incremental count of each number in column A into column B to look as below using VBA.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Column A
[/TD]
[TD]Column B
[/TD]
[/TR]
[TR]
[TD]A123
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A123
[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]A124
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A125
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
Thanks Simon
Not been here for a while. Hope you are all ok and can help.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Column A
[/TD]
[TD]Column B
[/TD]
[/TR]
[TR]
[TD]A123
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A123
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A124
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A125
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have 2 columns as above. I want to add the incremental count of each number in column A into column B to look as below using VBA.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Column A
[/TD]
[TD]Column B
[/TD]
[/TR]
[TR]
[TD]A123
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A123
[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]A124
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A125
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]A126
[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
Thanks Simon