I have two excel worksheets ("Sheet1" and "Sheet2"). Sheet2 contains rawdata that I want to group and present in "Sheet1" based on ID. That is, I want to coerce 'FEED' and 'NUMB' based on ID, and store 'FEED' and 'NUMB' as comma separated strings (see example data below).
This procedure needs to be dynamic, i.e. if I enter new data into Sheet2, the information presented in Sheet1 is updated automatically.
Note that I'd like to do this using VBA, in which I am an absolute beginner (Microsoft Excel 2019 and non-english). I've been trying to do this in reverse (i.e. splitting data stored according to Sheet1 to Sheet2) using VBA, however I've been unsuccessfull in my trials. I generally do not prefer working in Excel although current circumstances forces my hand at this
Sheet2
| Group | ID | FEED | NUMB |
|:-----:|:-----:|:-----:|:----:|
| B | B1 | C1 | 1 |
| B | B2 | L3 | 43 |
| B | B3 | K12 | 101 |
| B | B1 | G1 | 86 |
| B | B3 | H2 | 109 |
| C | C1 | L3 | 23 |
| C | C2 | G1 | 24 |
| C | C1 | L4 | 54 |
| C | C1 | K8 | 56 |
Sheet1
| Group | ID | FEED | NUMB |
|:-----:|:--:|:--------:|:--------:|
| B | B1 | C1,G1 | 1,86 |
| B | B2 | L3 | 43 |
| B | B3 | K12,H2 | 101,109 |
| C | C1 | L3,L4,K8 | 23,54,56 |
| C | C2 | G1 | 24 |