abdo meghari
Active Member
- Joined
- Aug 3, 2021
- Messages
- 465
- Office Version
- 2019
hello
I need making macro to make one space among numbers , letters and symbols let's take letters BS (always I have two letters in the beginning). it should make one space after two letters(BS ,FS,TQ.....)
about two numbers and letters R always I have two numbers and followed by letter R should not be space between each other of them like this (1200R20)
as to any letters contain (PR) and precede always two numbers should not be space between each other of them like this (18PR) and should be space where precede it (1200R20) and make one space after two numbers and letter R (G580) and make one space before the three letters(JAP,THI ,IND)
so based on item 2 should be like this BS 1200R20 18PR G580 JAP
as to items contain letter C the space should be after this letter and if there is no two numbers and letter R always like 18pr then should move to the next letter or number like BS 195R14C 613 JAP
as to stars BS 2400R25** VRLS JAP should make one space after stars
last thing if there are items contain hyphen"-" then should be delete it. the result in column B. when you see *** this is the short japan contains three letters J,A,P. the problem form tool XL2BB
I know there are many cases . this make things are complicated . if this is not clear just inform me
I need making macro to make one space among numbers , letters and symbols let's take letters BS (always I have two letters in the beginning). it should make one space after two letters(BS ,FS,TQ.....)
about two numbers and letters R always I have two numbers and followed by letter R should not be space between each other of them like this (1200R20)
as to any letters contain (PR) and precede always two numbers should not be space between each other of them like this (18PR) and should be space where precede it (1200R20) and make one space after two numbers and letter R (G580) and make one space before the three letters(JAP,THI ,IND)
so based on item 2 should be like this BS 1200R20 18PR G580 JAP
as to items contain letter C the space should be after this letter and if there is no two numbers and letter R always like 18pr then should move to the next letter or number like BS 195R14C 613 JAP
as to stars BS 2400R25** VRLS JAP should make one space after stars
last thing if there are items contain hyphen"-" then should be delete it. the result in column B. when you see *** this is the short japan contains three letters J,A,P. the problem form tool XL2BB
I know there are many cases . this make things are complicated . if this is not clear just inform me
Bridgestone Sales Report 11 Nov 2021.xlsx | ||||
---|---|---|---|---|
A | B | |||
1 | SIZE | RESULT | ||
2 | BS1200 R20 18PR G580JAP | BS 1200R20 18PR G580 JAP | ||
3 | BS 1200 R20 18PR G580 THI | BS 1200R20 18PR G580 THI | ||
4 | BS 1200 R20 18PRM802 THI | BS 1200R20 18P RM802 THI | ||
5 | BS 1200 R24 G582 JAP | BS 1200R24 G582 JAP | ||
6 | BS13 R22.5 R187JAP | BS 13R22.5 R187 JAP | ||
7 | BS 1400R20VSJ TCF JAP | BS 1400R20 VSJ TCF JAP | ||
8 | BS 155R12C R623 IND | BS 155R12C R623 IND | ||
9 | BS 175/70R14 EP150 THI | BS 175/70R14 EP150 THI | ||
10 | BS 175/70R14 MY02 THI | BS 175/70R14 MY02 THI | ||
11 | BS 185/65R14 EP150 IND | BS 185/65R14 EP150 IND | ||
12 | BS 185/65R14 TEC THI | BS 185/65R14 TEC THI | ||
13 | BS 185/65R15 T005 IND | BS 185/65R15 T005 IND | ||
14 | FS 195/60 R15 EP150THI | FS 195/60R15 EP150 THI | ||
15 | BS 195/65R15 EP15 JAP | BS 195/65R15 EP15 JAP | ||
16 | BS 195R14C 613 JAP | BS 195R14C 613 JAP | ||
17 | BS 195R15C R623 THI | BS 195R15C R623 THI | ||
18 | TQ 205/60R16 T001 JAP | TQ 205/60R16 T001 JAP | ||
19 | BS 205/70R15C R623 THI | BS 205/70R15C R623 THI | ||
20 | BS 215/55 R17 MY-02 THI | BS 215/55R17 MY-02 THI | ||
21 | LG 215/70R15C R623 THI | LG 215/70R15C R623 THI | ||
22 | BS 225/70R15C R623 JAP | BS 225/70R15C R623 JAP | ||
23 | BS225/70R16 H005 THI | BS 225/70R16 H005 THI | ||
24 | BS 235/60R16 T01 JAP | BS 235/60R16 T01 JAP | ||
25 | BS 245/45R17 T05A JAP | BS 245/45R17 T05A JAP | ||
26 | BS 255/70R15C D840 THI | BS 255/70R15C D840 THI | ||
27 | BS 265/65R17 D840 JAP | BS 265/65R17 D840 JAP | ||
28 | BS 275/65R18 AL01 JAP | BS 275/65R18 AL01 JAP | ||
29 | BS 285/60R18 DHPS JAP | BS 285/60R18 DHPS JAP | ||
30 | BS 285/65R17 R683 JAP | BS 285/65R17 R683 JAP | ||
31 | BS 315/80R22.5 R152 JAP | BS 315/80R22.5 R152 JAP | ||
32 | BS 315/80R22.5 R184 JAP | BS 315/80R22.5 R184 JAP | ||
33 | BS 315/80R22.5 R184 THI | BS 315/80R22.5 R184 THI | ||
34 | BS 315/80R22.5-18PR G580 JAP | BS 315/80R22.5 18PR G580 JAP | ||
35 | BS 315/80R22.5-18PR G582 THI | BS 315/80R22.5 18PR G582 THI | ||
36 | BS 385/65 R22.5 R164 JAP | BS 385/65R22.5 R164 JAP | ||
37 | BS 385/65 R22.5 R164 THI | BS 385/65R22.5 R164 THI | ||
38 | BS 445/65R22.5 R164 JAP | BS 445/65R22.5 R164 JAP | ||
39 | BS 750R16R230 TCF JAP | BS 750R16R230 TCF JAP | ||
40 | BS 750R16 VSJ TCF JAP | BS 750R16 VSJ TCF JAP | ||
41 | DT 1200R24 DA53 THI | DT 1200R24 DA53 THI | ||
42 | DT 315/80R22.5 DS50 THI | DT 315/80R22.5 DS50 THI | ||
43 | DT 385/65R22.5 DT40 THI | DT 385/65R22.5 DT40 THI | ||
44 | BS 2400R25**VRLS JAP | BS 2400R25** VRLS JAP | ||
45 | BS29.5R25** VKTIND | BS 29.5R25** VKT IND | ||
46 | BS1600-2528PR RLS IND | BS 1600-25 28PR RLS IND | ||
Sheet1 |