I looked here for a solution, but didn't find anything similar.
Here is my Discounts table:
| ID | SilverVAR | GoldVAR | PlatinumVAR |
|---|---|---|---|
| CA2R | 20 | 30 | 40 |
| GB34 | 22 | 25 | 45 |
| HT4R | 25 | 28 | 50 |
I need output that looks like this:
| ID | PartnerType | Discount |
|---|---|---|
| CA2R | SilverVAR | 20 |
| CA2R | GoldVAR | 30 |
| CA2R | PlatinumVAR | 40 |
| GB34 | SilverVAR | 22 |
| GB34 | GoldVAR | 25 |
| GB34 | PlatinumVAR | 45 |
| HT4R | SilverVAR | 25 |
| HT4R | GoldVAR | 28 |
| HR4R | PlatinumVAR | 50 |
Is this possible? How do I go about it?
I tried CrossTab but that doesn't seem to be the solution especially if there are more partner type columns across the Discounts table.
Here is an example VBA code you can adapt: