• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

Satır ve Sütunları Değerlere Göre Sıralama.

  • Konbuyu başlatan Konbuyu başlatan Adalente
  • Başlangıç tarihi Başlangıç tarihi
Katılım
12 Mart 2012
Mesajlar
25
Excel Vers. ve Dili
2010 Türkce
Satır ve Sütunları Değerlere Göre Sıralamak istiyorum Resimde olan ve olmasını istediğim şekilde göstermeye çalıştım. Umarım açık ve net şekilde anlaşılabilir.

Örnek Resim Bu Şekilde. soldaki kısım olan tablo çevirmek istediğim sağdaki şekilde.
 
Merhaba,
Deneyiniz...
PHP:
Sub kod()
Dim s As Integer, t As Integer, x As Integer, a As Integer
Dim b As Byte
s = Cells(Rows.Count, "A").End(3).Row
t = Range("B3:E" & s).Count - Range("B3:E" & s).SpecialCells(xlCellTypeBlanks).Count
ReDim dz(1 To t, 1 To 3)
For b = 2 To 5
    For a = 3 To s
        If Cells(a, b) <> "" Then
            x = x + 1
            dz(x, 1) = Cells(2, b)
            dz(x, 2) = Cells(a, 1)
            dz(x, 3) = Cells(a, b)
        End If
    Next
Next
Range("G2").Resize(t, 3).Value = dz
End Sub
 
Geri
Üst