Hi, hoping that somebody may be able to help with some code to help reorganise some info...
Please see raw data on the left: there are 2 columns of data plus a helper column.
On the right is the (hopefully)! reorganised data.
Effectively, we would like one single row of data for each Line-ID on the reorganised version. And to have the different Part Numbers going across the columns (from H to L).
Just to add to the complications (oops!), we'd like to this to work with
- larger sets of raw data (up to 100K rows)
- we'd like the Part Numbers to keep their upper and lower case characters
NB the Part Numbers themselves can be alpha (a-z or A-Z), numeric (0-9) or alphanumeric and also contain other characters (dashes, slashes, space etc)
- sometimes the Part Numbers can be blank
Hope this helps.
Huge thanks for any help!
Please see raw data on the left: there are 2 columns of data plus a helper column.
On the right is the (hopefully)! reorganised data.
Effectively, we would like one single row of data for each Line-ID on the reorganised version. And to have the different Part Numbers going across the columns (from H to L).
Book2 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | Raw-Data | Line-ID | Part-Number | Helper: Occurrence | Reorganised-Data | Line ID | PN-1 | PN-2 | PN-3 | PN-4 | PN-5 | |||
2 | 19231 | ABC/123 | 1st | 19231 | ABC/123 | 5962-99 | 54LS_TCX | MC54hc | MC54hc | |||||
3 | 19231 | 5962-99 | 2nd | 19232 | ABC/123 | Sn54LS | MC54LS | |||||||
4 | 19231 | ABC/123 | 3rd | 19233 | 123456 | |||||||||
5 | 19231 | MC54hc | 4th | 19234 | ||||||||||
6 | 19231 | MC54hc | 5th | |||||||||||
7 | 19232 | XYZ78-9 | 1st | |||||||||||
8 | 19232 | Sn54LS | 2nd | |||||||||||
9 | 19232 | MC54LS | 3rd | |||||||||||
10 | 19233 | 123456 | 1st | |||||||||||
11 | 19234 | |||||||||||||
Sheet1 |
Just to add to the complications (oops!), we'd like to this to work with
- larger sets of raw data (up to 100K rows)
- we'd like the Part Numbers to keep their upper and lower case characters
NB the Part Numbers themselves can be alpha (a-z or A-Z), numeric (0-9) or alphanumeric and also contain other characters (dashes, slashes, space etc)
- sometimes the Part Numbers can be blank
Hope this helps.
Huge thanks for any help!