drayneal
New Member
- Joined
- Feb 4, 2008
- Messages
- 10
Hi gurus, I've spent 2 days looking for anything similar and have yet to find it. I have a download of a change log in SAP. I need to find the first and last instance of a change to get the beginning number and the end number. To do this I'm trying to insert a sequential number to identify the duplicates for the same stock number. I've used several of the formulas I've come across but none totally work. I originally used an IF(B1=B2,F1+1,"") but the last instance comes out null. This is part of a string of VBA macros that takes text and turns it into a table and this is the last piece. Please help, thanks.
<table x:str="" style="border-collapse: collapse; width: 619px; height: 144px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 59pt;" width="79"> <col style="width: 53pt;" width="70"> <col style="width: 260pt;" width="346"> <col style="width: 44pt;" width="59"> <col style="width: 48pt;" width="64"> <tbody><tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt; width: 59pt;" height="17" width="79">
</td> <td style="width: 260pt;" width="346">
</td><td class="xl106" style="width: 44pt;" width="59">
</td> <td class="xl106" style="width: 48pt;" width="64">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39653" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39738" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39486" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39521" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39639" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39639" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39638" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> </tbody></table>
<table x:str="" style="border-collapse: collapse; width: 619px; height: 144px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 59pt;" width="79"> <col style="width: 53pt;" width="70"> <col style="width: 260pt;" width="346"> <col style="width: 44pt;" width="59"> <col style="width: 48pt;" width="64"> <tbody><tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt; width: 59pt;" height="17" width="79">
</td> <td style="width: 260pt;" width="346">
</td><td class="xl106" style="width: 44pt;" width="59">
</td> <td class="xl106" style="width: 48pt;" width="64">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39653" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39738" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39486" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39521" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39639" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39639" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl107" style="height: 12.75pt;" x:num="39638" align="right" height="17">
</td> <td>
</td> <td class="xl106" x:num="">
</td> <td class="xl106" x:num="">
</td> </tr> </tbody></table>
Last edited: