Habe in Spalte A mehrere verschiedene Strings die es zu trennen gilt näheres im Angang!
https://www.herber.de/bbs/user/61147.xls
Gruß Tino
A | B | C | |
8 | QLA1 | QL | A1 |
9 | QLB4 | QL | B4 |
10 | QL345 | QL | 345 |
11 | XBA | X | BA |
12 | X334 | X | 334 |
13 | A34 | A | 34 |
14 | A23a | A | 23a |
15 |
Formeln der Tabelle | ||||||||||||||||||||||||||||||
|
A | B | C | |
1 | ZB3 | ZB | 3 |
2 | QLB4 | QL | B4 |
3 | QL345 | QL | 345 |
4 | XBA | X | BA |
5 | X334 | X | 334 |
6 | A34 | A | 34 |
7 | A23a | A | 23a |
8 | QLA1 | QL | A1 |
9 | QL234 | QL | 234 |
Sub t()
Dim i As Long, L As Byte
For i = 1 To 500
L = 2
If IsNumeric(Mid$(Cells(i, 1), 2, 1)) Then L = 1
If Len(Cells(i, 1)) = 3 And Not IsNumeric(Right$(Cells(i, 1), 1)) Then L = 1
Cells(i, 2) = Left$(Cells(i, 1), L)
Cells(i, 3) = Right$(Cells(i, 1), Len(Cells(i, 1)) - L)
Next
End Sub
Gruß Gerd
Die erweiterte Suchfunktion hilft dir, gezielt die besten Antworten zu finden
Suche nach den besten AntwortenEntdecke unsere meistgeklickten Beiträge in der Google Suche
Top 100 Threads jetzt ansehen