TheTallBloke
New Member
- Joined
- Sep 3, 2015
- Messages
- 30
Hi all,
I've got a massive sales order report where all multiple row data (products, quantity, prices) belonging to the same order have been concatenated in a single cell (rather than a nice, structured 1/row that I could pivot easily).
Can you please help with converting all the concatenated data (always delimited by the colon symbol) breaks into separate rows, whilst the non-concatenated data gets repeated against them?
If possible I would like to be able to specify the columns where concatenated data is expected, to make this scalable.
Many thanks in advance!
Example below of before/after:
I've got a massive sales order report where all multiple row data (products, quantity, prices) belonging to the same order have been concatenated in a single cell (rather than a nice, structured 1/row that I could pivot easily).
Can you please help with converting all the concatenated data (always delimited by the colon symbol) breaks into separate rows, whilst the non-concatenated data gets repeated against them?
If possible I would like to be able to specify the columns where concatenated data is expected, to make this scalable.
Many thanks in advance!
Example below of before/after:
order number | product id | product name | product price | product quantity | order total | etc |
1 | 1 | a | 100.00 | 50.00 | 5000 | abc |
2 | 2:3 | b:c | 100.00:26.50 | 4.00:8.50 | 625.25 | def |
3 | 4:5:6 | d:e:f | 200.50:45.50:72.00 | 1.00:1.00:2.50 | 426 | ghi |
order number | product id | product name | product price | product quantity | order total | etc |
1 | 1 | a | 100.00 | 50.00 | 5000 | abc |
2 | 2 | b | 100.00 | 4.00 | 625.25 | def |
2 | 3 | c | 26.50 | 8.50 | 625.25 | def |
3 | 4 | d | 200.50 | 1.00 | 426 | ghi |
3 | 5 | e | 45.50 | 1.00 | 426 | ghi |
3 | 6 | f | 72.00 | 2.50 | 426 | ghi |