Hi All ,
My input is like this .
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]ordernum[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]A23423[/TD]
[TD]Alex[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]B54534[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5/2/2019[/TD]
[TD]E454[/TD]
[TD]Joe[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4/2/2019[/TD]
[TD]C64354[/TD]
[TD]Ruby[/TD]
[/TR]
</tbody>[/TABLE]
In this above excel sheet, i need to repeat the values in 1st and 2nd column until the occurrence of a new value.
i.e the output should be like this.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]ordernum[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]A23423[/TD]
[TD]Alex[/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]A23423[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]A23423[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2019
[/TD]
[TD]A23423[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]B54534[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]B54534[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]B54534[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5/2/2019[/TD]
[TD]E454[/TD]
[TD]Joe[/TD]
[/TR]
[TR]
[TD]5/2/2019
[/TD]
[TD]E454[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4/2/2019[/TD]
[TD]C64354[/TD]
[TD]Ruby[/TD]
[/TR]
</tbody>[/TABLE]
please NOTE: the change needs to only happen in column 1 and 2.
I am beginner in Macros, anybody help with code and its explanation would be much appreciated.
Thanks,
Manvit
My input is like this .
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]ordernum[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]A23423[/TD]
[TD]Alex[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]B54534[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5/2/2019[/TD]
[TD]E454[/TD]
[TD]Joe[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4/2/2019[/TD]
[TD]C64354[/TD]
[TD]Ruby[/TD]
[/TR]
</tbody>[/TABLE]
In this above excel sheet, i need to repeat the values in 1st and 2nd column until the occurrence of a new value.
i.e the output should be like this.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]ordernum[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]A23423[/TD]
[TD]Alex[/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]A23423[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]A23423[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2019
[/TD]
[TD]A23423[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]B54534[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]B54534[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/2/2019[/TD]
[TD]B54534[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5/2/2019[/TD]
[TD]E454[/TD]
[TD]Joe[/TD]
[/TR]
[TR]
[TD]5/2/2019
[/TD]
[TD]E454[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4/2/2019[/TD]
[TD]C64354[/TD]
[TD]Ruby[/TD]
[/TR]
</tbody>[/TABLE]
please NOTE: the change needs to only happen in column 1 and 2.
I am beginner in Macros, anybody help with code and its explanation would be much appreciated.
Thanks,
Manvit
Last edited: