pleasefreeus
New Member
- Joined
- Jan 12, 2010
- Messages
- 11
This is a small sample of the data I am looking at:
<table width="148" border="0" cellpadding="0" cellspacing="0"><col style="width: 53pt;" width="71"> <col style="width: 58pt;" width="77"> <tbody><tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt; width: 53pt;" width="71" align="right" height="15">Pedido</td> <td class="xl24" style="width: 58pt;" width="77" align="right">Item</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">Recebimen</td> <td class="xl24" align="right">1004</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">Nota:</td> <td class="xl24" align="right">49280</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">6200156</td> <td class="xl24" align="right">40X0100</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">Recebimen</td> <td class="xl24" align="right">1005</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">Nota:</td> <td class="xl24" align="right">108109</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">6200767</td> <td class="xl24" align="right">C53034X</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">6200767</td> <td class="xl24" align="right">C930X72</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">6200912</td> <td class="xl24" align="right">C930H2K</td> </tr> </tbody></table>
I need code that will find the rows with Recebimen in column c, copy the cell in the same row in column d and paste it in column a.
If it is possible I really need it to be pasted in column a for all the rows until the next Recebimen is found. This data has thousands of rows and the number of rows changes each time I run it.
I am using Excel 2003.
I thank you in advance for any help with this.
<table width="148" border="0" cellpadding="0" cellspacing="0"><col style="width: 53pt;" width="71"> <col style="width: 58pt;" width="77"> <tbody><tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt; width: 53pt;" width="71" align="right" height="15">Pedido</td> <td class="xl24" style="width: 58pt;" width="77" align="right">Item</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">Recebimen</td> <td class="xl24" align="right">1004</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">Nota:</td> <td class="xl24" align="right">49280</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">6200156</td> <td class="xl24" align="right">40X0100</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">Recebimen</td> <td class="xl24" align="right">1005</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">Nota:</td> <td class="xl24" align="right">108109</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">6200767</td> <td class="xl24" align="right">C53034X</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">6200767</td> <td class="xl24" align="right">C930X72</td> </tr> <tr style="height: 11.25pt;" height="15"> <td class="xl24" style="height: 11.25pt;" align="right" height="15">6200912</td> <td class="xl24" align="right">C930H2K</td> </tr> </tbody></table>
I need code that will find the rows with Recebimen in column c, copy the cell in the same row in column d and paste it in column a.
If it is possible I really need it to be pasted in column a for all the rows until the next Recebimen is found. This data has thousands of rows and the number of rows changes each time I run it.
I am using Excel 2003.
I thank you in advance for any help with this.