Bintang
Altın Üye
- Katılım
- 31 Ekim 2006
- Mesajlar
- 363
- Excel Vers. ve Dili
- Microsoft Office Professional Plus 2019,Türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub ayır()
' İsimler 2. satırdan başlıyor. Bu nedenle satır=2 olarak belirtiliyor.
sat = 2
basa:
' İsimler birleşik olarak 2. sütunda
adsoy = Cells(sat, 2)
If adsoy = "" Then End
uz = Len(adsoy)
s = 0
For i = uz To 1 Step -1
s = s + 1
harf = Mid(adsoy, i, 1)
If harf = " " And s < 2 Then GoTo bidaa
If harf = " " Then
soy = Right(adsoy, s - 1)
ad = Left(adsoy, uz - s)
Cells(sat, 3) = ad
Cells(sat, 4) = soy
sat = sat + 1
GoTo basa
End If
bidaa:
Next i
sat = sat + 1
GoTo basa
End Sub
Sub ayır()
sat = [COLOR="Red"][B]3[/B][/COLOR]
basa:
adsoy = Cells(sat, [COLOR="Red"][B]1[/B][/COLOR])
If adsoy = "" Then End
uz = Len(adsoy)
s = 0
For i = uz To 1 Step -1
s = s + 1
harf = Mid(adsoy, i, 1)
If harf = " " And s < 2 Then GoTo bidaa
If harf = " " Then
soy = Right(adsoy, s - 1)
ad = Left(adsoy, uz - s)
Cells(sat, 2) = ad
Cells(sat, 3) = soy
sat = sat + 1
GoTo basa
End If
bidaa:
Next i
sat = sat + 1
GoTo basa
End Sub
Merhaba şirket bünyemizde uzun isim ve soy isimli arkadaşlar var bunları isim ve soy isim olarak ayırmak istiyorum ama başaramadım bana bu konuda yarıdımcı olurmusunuz. Örnek ektedir.
[SIZE="2"]=[COLOR="Red"]SOLDAN[/COLOR](A1;[COLOR="Blue"]BUL[/COLOR]("*";[COLOR="DarkOrange"]YERİNEKOY[/COLOR](A1;" ";"*";[COLOR="MediumTurquoise"]UZUNLUK[/COLOR](A1)-[COLOR="mediumturquoise"]UZUNLUK[/COLOR]([COLOR="DarkOrange"]YERİNEKOY[/COLOR](A1;" ";"")))))[/SIZE]
[SIZE="2"]=[COLOR="Blue"]YERİNEKOY[/COLOR](A1;B1;"")[/SIZE]
[SIZE="2"]=[COLOR="Red"]soldan[/COLOR](a1;bul("*";[COLOR="Blue"]yerinekoy[/COLOR](a1;" ";"*";[COLOR="SeaGreen"]2[/COLOR])))[/SIZE]