DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Veri_Düzenle()
Application.ScreenUpdating = False
[B:D].ClearContents
For i = 1 To [M65536].End(3).Row
For j = 1 To Len(Cells(i, "M"))
If Not IsNumeric(Mid(Cells(i, "M"), j, 1)) Then
Harf = Harf & Mid(Cells(i, "M"), j, 1)
End If
Next j
Cells(i, "B") = Harf: Harf = ""
Cells(i, "B") = Split(Cells(i, "B"), "x")(0)
If Left(Cells(i, "M"), 1) <> "P" Then
Cells(i, "B") = Cells(i, "B") & " " & Split(Cells(i, "M"), Cells(i, "B"))(1)
Else
Cells(i, "C") = Split(Split(Cells(i, "M"), Cells(i, "B"))(1), "x")(0)
Cells(i, "D") = Split(Split(Cells(i, "M"), Cells(i, "B"))(1), "x")(1)
End If
Next i
Application.ScreenUpdating = True
End Sub
Sub sutunlaraayir()
ss = Range("m65536").End(xlUp).Row
For i = 1 To ss
If Not Left(Cells(i, "m"), 2) = "PL" Then
Cells(i, "b") = Left(Cells(i, "m"), 3) & " " & Right(Cells(i, "m"), (Len(Cells(i, "m")) - 3))
Else:
Cells(i, "b") = Left(Cells(i, "m"), 2)
Cells(i, "c") = Mid(Cells(i, "m"), 3, 2)
Cells(i, "d") = Right(Cells(i, "m"), 3)
Cells(i, "d") = Application.WorksheetFunction.Substitute(Cells(i, "d"), "x", "")
End If
Next
End Sub
Merhaba,
Bu şekilde deneyiniz..
Kod:Sub Veri_Düzenle() Application.ScreenUpdating = False [B:D].ClearContents For i = 1 To [M65536].End(3).Row For j = 1 To Len(Cells(i, "M")) If Not IsNumeric(Mid(Cells(i, "M"), j, 1)) Then Harf = Harf & Mid(Cells(i, "M"), j, 1) End If Next j Cells(i, "B") = Harf: Harf = "" Cells(i, "B") = Split(Cells(i, "B"), "x")(0) If Left(Cells(i, "M"), 1) <> "P" Then Cells(i, "B") = Cells(i, "B") & " " & Split(Cells(i, "M"), Cells(i, "B"))(1) Else Cells(i, "C") = Split(Split(Cells(i, "M"), Cells(i, "B"))(1), "x")(0) Cells(i, "D") = Split(Split(Cells(i, "M"), Cells(i, "B"))(1), "x")(1) End If Next i Application.ScreenUpdating = True End Sub
.
merhaba
bu kod işinizi görür mü?
Kod:Sub sutunlaraayir() ss = Range("m65536").End(xlUp).Row For i = 1 To ss If Not Left(Cells(i, "m"), 2) = "PL" Then Cells(i, "b") = Left(Cells(i, "m"), 3) & " " & Right(Cells(i, "m"), (Len(Cells(i, "m")) - 3)) Else: Cells(i, "b") = Left(Cells(i, "m"), 2) Cells(i, "c") = Mid(Cells(i, "m"), 3, 2) Cells(i, "d") = Right(Cells(i, "m"), 3) Cells(i, "d") = Application.WorksheetFunction.Substitute(Cells(i, "d"), "x", "") End If Next End Sub
Merhaba,
Bu şekilde deneyiniz..
Kod:Sub Veri_Düzenle() Application.ScreenUpdating = False [B:D].ClearContents For i = 1 To [M65536].End(3).Row For j = 1 To Len(Cells(i, "M")) If Not IsNumeric(Mid(Cells(i, "M"), j, 1)) Then Harf = Harf & Mid(Cells(i, "M"), j, 1) End If Next j Cells(i, "B") = Harf: Harf = "" Cells(i, "B") = Split(Cells(i, "B"), "x")(0) If Left(Cells(i, "M"), 1) <> "P" Then Cells(i, "B") = Cells(i, "B") & " " & Split(Cells(i, "M"), Cells(i, "B"))(1) Else Cells(i, "C") = Split(Split(Cells(i, "M"), Cells(i, "B"))(1), "x")(0) Cells(i, "D") = Split(Split(Cells(i, "M"), Cells(i, "B"))(1), "x")(1) End If Next i Application.ScreenUpdating = True End Sub
.
E ile S arasındaki değerler silinmemesi mi gerekiyor. Üstüne yazılacaksa silimesinde mahsur yok. Clear komutundaki aralığıda değiştirdiniz mi?
.
Soruyu anlayamadım. Küçük bir örnek ekleyerek dosya üzerinde olması gerekeni detaylı açıklarmısınız. Şuan zaman bulamazsam akşam bakıp geri dönüş yaparım.
.
Sub Veri_Düzenle()
Application.ScreenUpdating = False
On Error Resume Next
[F:G,M:M].ClearContents
For i = 2 To [E65536].End(3).Row
For j = 1 To Len(Cells(i, "E"))
If Not IsNumeric(Mid(Cells(i, "E"), j, 1)) Then
Harf = Harf & Mid(Cells(i, "E"), j, 1)
End If
Next j
Cells(i, "M") = Harf: Harf = ""
Cells(i, "M") = Split(Cells(i, "M"), "x")(0)
If Left(Cells(i, "E"), 1) <> "P" Then
Cells(i, "M") = Cells(i, "M") & " " & Split(Cells(i, "E"), Cells(i, "M"))(1)
Else
Cells(i, "F") = Split(Split(Cells(i, "E"), Cells(i, "M"))(1), "x")(0)
Cells(i, "G") = Split(Split(Cells(i, "E"), Cells(i, "M"))(1), "x")(1)
End If
Next
Application.ScreenUpdating = True
End Sub
Sub Birleştir()
Application.ScreenUpdating = False
[D:D].ClearContents
For i = 2 To [M65536].End(3).Row
Cells(i, "D") = Cells(i, "M") & "; , ; ;" & Cells(i, "L")
Next i
Application.ScreenUpdating = True
End Sub