Jumparound
New Member
- Joined
- Aug 4, 2015
- Messages
- 45
- Office Version
- 2016
- Platform
- Windows
Hi, I have a need to copy data from one sheet to another but with the added complication that some of the cells need splitting into subsequent rows and the rows that are not split should skip down to the next row below the last split row. I'm finding this difficult to explain but hopefully the examples will help!
What it needs to do is:
Copy from L4 sheet1 down to last entry in column L to L4 down to end in sheet2 but split all values by semi colon, paste each into the next row in column L
Copy from n4 in sheet1 down to last entry in column N to n4 down to end in sheet2, remove any spaces, if the character length of the cell is greater than 29 characters split into next row but split at a semi colon and remove the now redundant semi colon from either the end of the list of values or the start of the new list of values.
Copy from O4 in sheet1 down to last value in column O to O4 down to end in sheet2, remove any spaces, if the character length of the cell is greater than 29 characters split into next row down but split at a semi colon and remove the now redundant semi colon from either the end of the list of values or the start of the new list of values.
Copy from D4 to K4 in sheet1 down to last values in these columns to sheet2 D4 to K4 down to end but skip to next blank row that does not have data in column L, N or O
Copy from P4 in sheet1 to end of data in P to P4 to end in sheet2 but skip to next blank row that does not have data in column L, N or O
Copy from Q4 in sheet1 to end of data in Q to Q4 to end in sheet 2, remove spaces, remove asterisks, format as text (to preserve leading zeros) but skip to next blank row that does not have data in column L, N or O
Copy from R4 to Y4 to end of data n sheet1 to R4 to Y4 to end in sheet 2 but skip to next blank row that does not have data in column L, N or O
For example sheet1:
This should copy into Sheet2 like this:
What it needs to do is:
Copy from L4 sheet1 down to last entry in column L to L4 down to end in sheet2 but split all values by semi colon, paste each into the next row in column L
Copy from n4 in sheet1 down to last entry in column N to n4 down to end in sheet2, remove any spaces, if the character length of the cell is greater than 29 characters split into next row but split at a semi colon and remove the now redundant semi colon from either the end of the list of values or the start of the new list of values.
Copy from O4 in sheet1 down to last value in column O to O4 down to end in sheet2, remove any spaces, if the character length of the cell is greater than 29 characters split into next row down but split at a semi colon and remove the now redundant semi colon from either the end of the list of values or the start of the new list of values.
Copy from D4 to K4 in sheet1 down to last values in these columns to sheet2 D4 to K4 down to end but skip to next blank row that does not have data in column L, N or O
Copy from P4 in sheet1 to end of data in P to P4 to end in sheet2 but skip to next blank row that does not have data in column L, N or O
Copy from Q4 in sheet1 to end of data in Q to Q4 to end in sheet 2, remove spaces, remove asterisks, format as text (to preserve leading zeros) but skip to next blank row that does not have data in column L, N or O
Copy from R4 to Y4 to end of data n sheet1 to R4 to Y4 to end in sheet 2 but skip to next blank row that does not have data in column L, N or O
For example sheet1:
Test material 1 | 1 | Bucket | 10 | No | 20140 | Yes | n/a | Component 1; Component 2;Component 3 | 01-May | H325; H123; H234; H356; H345;H319; H456 | HP4; HP6; HP7; HP8; HP11; HP13 | Solid | 16 03 05* | 2923 | CORROSIVE SOLID, TOXIC, N.O.S. | Yes | contains paraformaldehyde | 8 (6.1) | II | E | |
Test material 2 | 2 | Kegs | 20 | No | 20140 | No | n/a | Component 1; Component 2;Component 3 | 01-May | H325; H123; H234; H356 | HP4; HP6; HP7; HP8; HP11; HP13 | Solid | 16 03 05* | 2923 | CORROSIVE SOLID, TOXIC, N.O.S. | Yes | contains paraformaldehyde | 8 (6.1) | II | E | |
Test material 3 | 3 | Buckets | 10 | No | 20140 | Yes | n/a | Component 1; Component 2;Component 3 | 01-May | H325; H123; H234; H356 | HP4; HP6; HP7; HP8; HP11; HP13 | Solid | 16 03 05* | 2811 | TOXIC SOLID, ORGANIC, N.O.S. | Yes | contains paraformaldehyde | 6.1 | II | E |
This should copy into Sheet2 like this:
Test material 1 | 1 | Bucket | 10 | No | 20140 | Yes | n/a | Component 1 | 01-May | H325;H123;H234;H356;H345;H319 | HP4;HP6;HP7;HP8;HP11;HP13 | Solid | 160305 | 2923 | CORROSIVE SOLID, TOXIC, N.O.S. | Yes | contains paraformaldehyde | 8 (6.1) | II | E | |
Component 2 | H456 | ||||||||||||||||||||
Component 3 | |||||||||||||||||||||
Test material 2 | 2 | Kegs | 20 | No | 20140 | No | n/a | Component 1 | 01-May | H325;H123:H234;H356 | HP4;HP6;HP7;HP8;HP11;HP13 | Solid | 160305 | 2923 | CORROSIVE SOLID, TOXIC, N.O.S. | Yes | contains paraformaldehyde | 8 (6.1) | II | E | |
Component 2 | |||||||||||||||||||||
Component 3 | |||||||||||||||||||||
Test material 3 | 3 | Buckets | 10 | No | 20140 | Yes | n/a | Component 1 | 01-May | H325;H123:H234;H356 | HP4;HP6;HP7;HP8;HP11;HP13 | Solid | 160305 | 2811 | TOXIC SOLID, ORGANIC, N.O.S. | Yes | contains paraformaldehyde | 6.1 | II | E | |
Component 2 | |||||||||||||||||||||
Component 3 |