I'm trying to create a second table from an original table based off of non zero values indicated in the third column of the original table. I need to do this using vba / macro, here is a visual of what I need to do.
the range of the table is cells G10 to I47, this is just a snippet. I was thinking of looping through the range and if last column value isn't zero copy to new range. But not sure how to do it... Thank you!
<tbody>
</tbody>
the range of the table is cells G10 to I47, this is just a snippet. I was thinking of looping through the range and if last column value isn't zero copy to new range. But not sure how to do it... Thank you!
Comp | ID | Wt% | Comp | ID | wt% | |
x1 | aa | 0 | x2 | bb | 2 | |
x2 | bb | 2 | x5 | ee | 3 | |
x3 | cc | 0 | x6 | ff | 4 | |
x4 | dd | 0 | ||||
x5 | ee | 3 | ||||
x6 | ff | 4 | ||||
<tbody>
</tbody>