I`m not a super experienced VBA developer and mostly relly on the Macro recorder, hence would appreciate any help by the community in helping me wrap my head around this problem. I havent used loops in the past but imagine this would be the best application for my problem.
I have the following Table;
Name | Year | Sec A | Sec B | Sec C |
---|---|---|---|---|
Joe | 2020 | 15 | 20 | 30 |
Mary | 2019 | 5 | 25 | 0 |
Peter | 2020 | 7 | 0 | 0 |
I would like to copy/paste the name,year and amounts bigger than zero on a new sheet like the following;
Name | Year | Section | Total |
---|---|---|---|
Joe | 2020 | A | 15 |
Joe | 2020 | B | 20 |
Joe | 2020 | C | 30 |
Mary | 2019 | A | 5 |
Mary | 2019 | B | 25 |
Peter | 2020 | A | 7 |
The copy/paste operation would continune until it reaches a "0" value on the section columns, then it would continue to the next row, until it reaches the end of the rows.
Many thanks!!!