please, I don't know what to do. I want to get (create) rows in Google Sheets from other row by number in this row. From other tab or diferent sheet.
For example: Create the second table from the first table. I tried Query and Sequence, but I guess I don't have that skill. Formula ideally based on "query".
1)
Code | PCS | Data |
---|---|---|
Product1 | 2 | DataA |
Product2 | 1 | DataB |
Product3 | 0 | DataC |
Product4 | 4 | DataD |
2)
Code | PCS | Data |
---|---|---|
Product1 | 2 | DataA |
Product1 | 2 | DataA |
Product2 | 1 | DataB |
Product4 | 4 | DataD |
Product4 | 4 | DataD |
Product4 | 4 | DataD |
Product4 | 4 | DataD |