i ask a question here that was long and knotty (here). i try to ask a simple question now:
i have two columns with more that 200,000 rows same this:
<table style="border-collapse: collapse; width: 108pt;" border="0" cellpadding="0" cellspacing="0" width="144"><col style="width: 54pt;" span="2" width="72"> <tbody><tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt; width: 54pt;" height="19" width="72">column1</td> <td class="xl64" style="width: 54pt;" width="72">column2</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">10501</td> <td class="xl64">1050103</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">10502</td> <td class="xl64">1050203</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">30102</td> <td class="xl64">1050204</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">30301</td> <td class="xl64">1050205</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">
</td> <td class="xl64">1050206</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">
</td> <td class="xl64">1050207</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">
</td> <td class="xl64">1050208</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">
</td> <td class="xl64">3010200</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">
</td> <td class="xl64">3030100</td> </tr> </tbody></table>i want a macro that divide cells in column2 on a cell in column1 that be equal to column2 after dropping two digit from right.
for example in this sample divide:
105103 to 10501
1050203, 1050204, 1050205,1050206,1050207, 1050208 to 10502
3010200 to 30102
3030100 to 30101
thanks a lot
i have two columns with more that 200,000 rows same this:
<table style="border-collapse: collapse; width: 108pt;" border="0" cellpadding="0" cellspacing="0" width="144"><col style="width: 54pt;" span="2" width="72"> <tbody><tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt; width: 54pt;" height="19" width="72">column1</td> <td class="xl64" style="width: 54pt;" width="72">column2</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">10501</td> <td class="xl64">1050103</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">10502</td> <td class="xl64">1050203</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">30102</td> <td class="xl64">1050204</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">30301</td> <td class="xl64">1050205</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">
</td> <td class="xl64">1050206</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">
</td> <td class="xl64">1050207</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">
</td> <td class="xl64">1050208</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">
</td> <td class="xl64">3010200</td> </tr> <tr style="height: 14.25pt;" height="19"> <td class="xl64" style="height: 14.25pt;" height="19">
</td> <td class="xl64">3030100</td> </tr> </tbody></table>i want a macro that divide cells in column2 on a cell in column1 that be equal to column2 after dropping two digit from right.
for example in this sample divide:
105103 to 10501
1050203, 1050204, 1050205,1050206,1050207, 1050208 to 10502
3010200 to 30102
3030100 to 30101
thanks a lot
Last edited: