So I have data that appears as follows:
and I'd like a macro to pull the unique "LAC" values (column A) and the unique "TRID" values (Row 1) and convert that data into a chart that appears as follows:
where the corresponding "Group" value in Sheet1 is inserted in the cell where the LAC & TRID intersect.
MODLBUTN(Test2).xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | LAC | TRID | Group | |||
2 | 2456 | 4 | Mort | |||
3 | 2457 | 4 | Mort | |||
4 | 2458 | 4 | Mort | |||
5 | 2459 | 5 | Muni | |||
6 | 2460 | 5 | Muni | |||
7 | 2461 | 5 | Muni | |||
8 | 2456 | 6 | EM | |||
9 | 2457 | 6 | EM | |||
10 | 2458 | 6 | EM | |||
11 | 2459 | 7 | Deriv | |||
12 | 2460 | 7 | Deriv | |||
13 | 2461 | 8 | Mort | |||
14 | 2468 | 8 | Mort | |||
15 | 2469 | 8 | Mort | |||
16 | 2470 | 8 | Mort | |||
Sheet1 |
and I'd like a macro to pull the unique "LAC" values (column A) and the unique "TRID" values (Row 1) and convert that data into a chart that appears as follows:
MODLBUTN(Test2).xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | TRID | 4 | 5 | 6 | 7 | 8 | ||
2 | Lac | |||||||
3 | 2456 | Mort | EM | |||||
4 | 2457 | Mort | EM | |||||
5 | 2458 | Mort | EM | |||||
6 | 2459 | Muni | Deriv | |||||
7 | 2460 | Muni | Deriv | |||||
8 | 2461 | Muni | Mort | |||||
9 | 2468 | Mort | ||||||
10 | 2469 | Mort | ||||||
11 | 2470 | Mort | ||||||
Sheet2 |
where the corresponding "Group" value in Sheet1 is inserted in the cell where the LAC & TRID intersect.
Last edited: