Hi Team,
Hope anyone can help me, I have column heading fields like New, Old, Exist, Duplicate and each column has its own values and require vba code to get each line separately. For example for product A, if you have value in New and Duplicate amounting $1000 and $2000 respectively then it shows in single line in both columns but I should be two different columns saying one for New and other for Duplicate.
Example:
Input data
<colgroup><col><col span="4"></colgroup><tbody>
</tbody>
Output:
<colgroup><col><col span="2"></colgroup><tbody>
</tbody>
Thank you,
Hope anyone can help me, I have column heading fields like New, Old, Exist, Duplicate and each column has its own values and require vba code to get each line separately. For example for product A, if you have value in New and Duplicate amounting $1000 and $2000 respectively then it shows in single line in both columns but I should be two different columns saying one for New and other for Duplicate.
Example:
Input data
Product Name | New | Old | Exists | Duplicate |
Product 1 | $ 1,000 | $ - | $ 100 | $ 10 |
Product 2 | $ 2,000 | $ 20 | $ - | $ - |
Product 3 | $ 300 | $ 500 | $ 1,000 | $ 100 |
Product 4 | $ 1,000 | $ 250 | $ 350 | $ 500 |
<colgroup><col><col span="4"></colgroup><tbody>
</tbody>
Output:
Product Name | Type | Amount |
Product 1 | New | $ 1,000 |
Product 1 | Exists | $ 100 |
Product 1 | Duplicate | $ 10 |
Product 2 | New | $ 2,000 |
Product 2 | Old | $ 20 |
Product 3 | New | $ 300 |
Product 3 | Old | $ 500 |
Product 3 | Exists | $ 1,000 |
Product 3 | Duplicate | $ 100 |
Product 4 | New | $ 1,000 |
Product 4 | Old | $ 250 |
Product 4 | Exists | $ 350 |
Product 4 | Duplicate | $ 500 |
<colgroup><col><col span="2"></colgroup><tbody>
</tbody>
Thank you,
Last edited: