Hi Everyone,
I'm trying to create multiple files based on 2 input files. One file has entity ID and corresponding relevant columns for example
| entity 1 | C1 |
| entity 1 | C2 |
| entity 1 | C5 |
entity 2 | C2 |
| entity 2 | C3 |
| entity 3 | C1 |
| entity 3 | C4 |
The second table is
| C1 | C2 | C3 | C4 | C5 |
| 1 | 23 | 4 | 6 | 34 |
| 2 | 21 | 2 | 23 | 32 |
| 3 | 3 | 7 | 78 | 87 |
The output will be one file for each entity containing columns relevant to them i.e. file for entity 1 will have columns C1, C2 and C5 and so on. I have been successful in doing this using a macro. The problem is that I want each file to have a column that will have the sum of the values from all other columns. Has anyone come across an issue such as this? If yes, please share your approach.