Bobo72
Technical User
- Apr 7, 2004
- 19
Hi,
I have an xls spreadsheet that contains 7 columns of which 2 contains up to 8-10 comma-sep. values in each cell.
The data needs to be imported into an Oracle database. Before I can do that, I need to split the multiple values into new rows, in which the values in all other columns are copied to the new rows.
An example:
Itemnum Text Symbol Quantity
---------------------------------------------
123, 445 Description T, N 120
... should become
123 Description T 120
123 Description N 120
445 Description T 120
445 Description N 120
Any help would be very much appreciated. I guess that I need to build a new macro to do this? Best of all would be some help with VB-code - commented code even better so that I can understand what's going on : )
Best regards and thanks,
Bo
I have an xls spreadsheet that contains 7 columns of which 2 contains up to 8-10 comma-sep. values in each cell.
The data needs to be imported into an Oracle database. Before I can do that, I need to split the multiple values into new rows, in which the values in all other columns are copied to the new rows.
An example:
Itemnum Text Symbol Quantity
---------------------------------------------
123, 445 Description T, N 120
... should become
123 Description T 120
123 Description N 120
445 Description T 120
445 Description N 120
Any help would be very much appreciated. I guess that I need to build a new macro to do this? Best of all would be some help with VB-code - commented code even better so that I can understand what's going on : )
Best regards and thanks,
Bo