Dazzawm
Well-known Member
- Joined
- Jan 24, 2011
- Messages
- 3,786
- Office Version
- 365
- Platform
- Windows
I have sheet 1 as laid out below. I need a code please that will transpose onto sheet 2 and give the example results on sheet 2.
Sheet 1 Before Code
Sheet 2 After Code
As you can see the code has put 3 headings on sheet 2. When a number is separated by a comma a row is added for each number where I have highlighted in yellow as an example. A little tricky to explain but please contact me for clarification of anything.
On sheet 1 there may be more columns with the same sort of data up to a possible 20 columns.
Sheet 1 Before Code
Excel 2010 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | STCODE | ALT5_CODE | ALT10_CODE | ALT11_CODE | ALT12_CODE | ||
2 | EXDN6031 | 22624 | NIS6032,38634 | P4261,NS53105,01.92170 | 51.24.07,32.7004,44.002.83 | ||
3 | EXCN2013 | 01236,01019 | CIT2014 | ||||
4 | EXCN6039 | 01011,01145,01033 | CIT6040 | ||||
5 | EXCN3035 | 01010 | CIT3036 | ||||
Sheet1 |
Sheet 2 After Code
Excel 2010 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Comparative Name | Comparative Part No. | Your Part No. | ||
2 | ALT10_CODE | 38634 | EXDN6031 | ||
3 | ALT10_CODE | NIS6032 | EXDN6031 | ||
4 | ALT10_CODE | CIT2014 | EXCN2013 | ||
5 | ALT10_CODE | CIT3036 | EXCN3035 | ||
6 | ALT10_CODE | CIT6040 | EXCN6039 | ||
7 | ALT11_CODE | 1.92170 | EXDN6031 | ||
8 | ALT11_CODE | NS53105 | EXDN6031 | ||
9 | ALT11_CODE | P4261 | EXDN6031 | ||
10 | ALT12_CODE | 32.7004 | EXDN6031 | ||
11 | ALT12_CODE | 44.002.83 | EXDN6031 | ||
12 | ALT12_CODE | 51.24.07 | EXDN6031 | ||
13 | ALT5_CODE | 01010 | EXCN3035 | ||
14 | ALT5_CODE | 01011 | EXCN6039 | ||
15 | ALT5_CODE | 01019 | EXCN2013 | ||
16 | ALT5_CODE | 01033 | EXCN6039 | ||
17 | ALT5_CODE | 01145 | EXCN6039 | ||
18 | ALT5_CODE | 01236 | EXCN2013 | ||
19 | ALT5_CODE | 22624 | EXDN6031 | ||
Sheet2 |
As you can see the code has put 3 headings on sheet 2. When a number is separated by a comma a row is added for each number where I have highlighted in yellow as an example. A little tricky to explain but please contact me for clarification of anything.
On sheet 1 there may be more columns with the same sort of data up to a possible 20 columns.