Hello there,
I have a problem that hopefully someone can help me with. I need names and invoice numbers in column A to be placed in separate columns (B & C).
If you refer to my example below, column A is the data I have now, and columns B & C are what I need it to be.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]Doe, John[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]1111[/TD]
[TD]Doe, John[/TD]
[TD]1111[/TD]
[/TR]
[TR]
[TD="align: center"]2222[/TD]
[TD]Doe, John[/TD]
[TD]2222[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Smith, Ron[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]3333[/TD]
[TD]Smith, Ron[/TD]
[TD]3333[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jones, Brad[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]4444[/TD]
[TD]Jones, Brad[/TD]
[TD]4444[/TD]
[/TR]
[TR]
[TD="align: center"]5555[/TD]
[TD]Jones, Brad[/TD]
[TD]5555[/TD]
[/TR]
[TR]
[TD="align: center"]6666[/TD]
[TD]Jones, Brad[/TD]
[TD]6666[/TD]
[/TR]
</tbody>[/TABLE]
Any help someone can give in VBA form would be great. I have tried, but my knowledge of the syntax is very limited. Thanks!
I have a problem that hopefully someone can help me with. I need names and invoice numbers in column A to be placed in separate columns (B & C).
If you refer to my example below, column A is the data I have now, and columns B & C are what I need it to be.
- The name needs to be in the same row as the number indicating that this number belongs to this person.
- The names need to be listed next to each number.
- There is a blank cell below each person in my current data. I need these blank cells to remain present in B & C after the data is separated. The result should be two blank cells in between each name after the first person.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]Doe, John[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]1111[/TD]
[TD]Doe, John[/TD]
[TD]1111[/TD]
[/TR]
[TR]
[TD="align: center"]2222[/TD]
[TD]Doe, John[/TD]
[TD]2222[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Smith, Ron[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]3333[/TD]
[TD]Smith, Ron[/TD]
[TD]3333[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jones, Brad[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]4444[/TD]
[TD]Jones, Brad[/TD]
[TD]4444[/TD]
[/TR]
[TR]
[TD="align: center"]5555[/TD]
[TD]Jones, Brad[/TD]
[TD]5555[/TD]
[/TR]
[TR]
[TD="align: center"]6666[/TD]
[TD]Jones, Brad[/TD]
[TD]6666[/TD]
[/TR]
</tbody>[/TABLE]
Any help someone can give in VBA form would be great. I have tried, but my knowledge of the syntax is very limited. Thanks!