I have a product numbers in a column A like this:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]42[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]5403[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]9519[/TD]
[/TR]
</tbody>[/TABLE]
Product numbers can be one to four numerals. Each product can have up to 9 sub-codes. For example: 40-1, 42-5, 9519-8.
Can I use a macro to quickly expand this list and give me all the possible sub-codes, like this?
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]40-1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]40-2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]40-3[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]40-4[/TD]
[/TR]
</tbody>[/TABLE]
And so on for all the variations.
Thanks!
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]42[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]5403[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]9519[/TD]
[/TR]
</tbody>[/TABLE]
Product numbers can be one to four numerals. Each product can have up to 9 sub-codes. For example: 40-1, 42-5, 9519-8.
Can I use a macro to quickly expand this list and give me all the possible sub-codes, like this?
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]40-1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]40-2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]40-3[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]40-4[/TD]
[/TR]
</tbody>[/TABLE]
And so on for all the variations.
Thanks!