Hello,
I need VBA which can transpose each 4th row, 3 by 3 columns, 1st digits before "-" in the columns N:P and last digits after "-" in the columns S:U.
Example....
Cells C8, D8, E8 1st digits before "-" transpose in cells N8, N9, N10
Cells F8, G8, H8 1st digits before "-" transpose in cells O8, O9, O10
Cells I8, J8, K8 1st digits before "-" transpose in cells P8, P9, P10
Cells C8, D8, E8 last digits after "-" transpose in cells S8, S9, S10
Cells F8, G8, H8 last digits after "-" transpose in cells T8, T9, T10
Cells I8, J8, K8 last digits after "-" transpose in cells U8, U9, U10
Here is the example
Thank you all
Excel 2000
Regards,
Moti
I need VBA which can transpose each 4th row, 3 by 3 columns, 1st digits before "-" in the columns N:P and last digits after "-" in the columns S:U.
Example....
Cells C8, D8, E8 1st digits before "-" transpose in cells N8, N9, N10
Cells F8, G8, H8 1st digits before "-" transpose in cells O8, O9, O10
Cells I8, J8, K8 1st digits before "-" transpose in cells P8, P9, P10
Cells C8, D8, E8 last digits after "-" transpose in cells S8, S9, S10
Cells F8, G8, H8 last digits after "-" transpose in cells T8, T9, T10
Cells I8, J8, K8 last digits after "-" transpose in cells U8, U9, U10
Here is the example
Book1 | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | |||
1 | |||||||||||||||||||||||
2 | |||||||||||||||||||||||
3 | |||||||||||||||||||||||
4 | |||||||||||||||||||||||
5 | Col1 | Col2 | Col3 | Col4 | Col5 | Col6 | Col7 | Col8 | Col9 | ||||||||||||||
6 | |||||||||||||||||||||||
7 | |||||||||||||||||||||||
8 | 1 | 8 - 3 | 4 - 0 | 2 - 0 | 2 - 1 | 7 - 2 | 5 - 3 | 4 - 2 | 3 - 1 | 7 - 2 | 1 | 8 | 2 | 4 | 1 | 3 | 1 | 2 | |||||
9 | 2 | 8 - 2 | 1 - 0 | 5 - 1 | 4 - 3 | 7 - 3 | 3 - 1 | 2 - 1 | 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2 | 10 | 2 | 0 | 4 | 0 | |||||||
47 | 40 | 10 - 5 | 2 - 1 | 2 - 1 | 2 - 0 | 6 - 2 | 6 - 2 | 2 - 1 | 6 - 0 | 6 - 2 | 40 | 10 | 2 | 2 | 40 | 5 | 0 | 1 | |||||
48 | 2 | 6 | 6 | 1 | 2 | 0 | |||||||||||||||||
49 | 2 | 6 | 6 | 1 | 2 | 2 | |||||||||||||||||
50 | |||||||||||||||||||||||
51 | |||||||||||||||||||||||
52 | |||||||||||||||||||||||
53 | |||||||||||||||||||||||
54 | |||||||||||||||||||||||
Sheet1 |
Thank you all
Excel 2000
Regards,
Moti