ADA !!
Ini Solusi Full_Macro, tinggal pencet tombol
maka ... Kun ! Fayakun..
2010/10/4 ANTONIUS TEGUH <qsetya@yahoo.co.id>
>
> Dear All
> Master Excel
> ada ngak cara bwt convert data yang bentuknya row menjadi column seperti contoh terlampir.
> butuh banget bantuannya nih dah buntu, mohon pencerahannya.
> Terima kasih
> Anton
maka ... Kun ! Fayakun..
Sub ReConstruct()
'---------------------------------
' siti Vi / Bluewater,5 Okt 2010
' reconstruct a table
'---------------------------------
Dim RefTbl As Range
Dim DesTbl As Range
Dim ArTgl, ArBayar
Dim i As Long, n As Long, r As Long
Set RefTbl = Sheets("Sumber").Cells(1).CurrentRegion
Set DesTbl = RefTbl.Offset(0, RefTbl.Columns.Count + 2)
RefTbl.Resize(1, RefTbl.Columns.Count).Copy DesTbl(1, 1)
r = 1
For i = 2 To RefTbl.Rows.Count
ArTgl = Split(RefTbl(i, 2), ";")
ArBayar = Split(RefTbl(i, 3), ";")
For n = LBound(ArTgl) To UBound(ArTgl)
r = r + 1
DesTbl(r, 1) = RefTbl(i, 1)
DesTbl(r, 2).NumberFormat = "dd mmm yyyy"
DesTbl(r, 2) = DateValue(ArTgl(n))
DesTbl(r, 3).NumberFormat = "#,##0"
DesTbl(r, 3) = Val(ArBayar(n))
Next n
Next i
DesTbl.EntireColumn.AutoFit
End Sub
kalau boleh menyarankan, hindari penulisan tanggal (text tanggal) di tabel awal yg
mencantumkan BAGIAN tahun sbg angka dua digit, tulislah tahun sbg 4 digit
Kalau ndak boleh, ya ndak pa pa..., lha wong cuma saran... o'
-siti-
>
> Dear All
> Master Excel
> ada ngak cara bwt convert data yang bentuknya row menjadi column seperti contoh terlampir.
> butuh banget bantuannya nih dah buntu, mohon pencerahannya.
> Terima kasih
> Anton
__._,_.___
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| eat pray love, eat eat love, eat eat eat... |
| http://www.facebook.com/group.php?gid=37671048001&ref=mf |
+-------------------------------------------------------------------+
| DILARANG : MLM, money game, OOT, iklan tanpa izin, SARA, testing, |
| pembicaraan pribadi, one line message, melecehkan, tidak sopan. |
+-------------------------------------------------------------------+
| Buat subjek yang kreatif, jangan : "tanya", "help", "mohon bantu" |
| Usahakan besar attachment < 200 kb. Gunakan winzip jika perlu. |
+-------------------------------------------------------------------+
| Ajak teman-teman Anda bergabung dengan mengirim e-mail kosong ke |
| XL-mania-subscribe@yahoogroups.com atau kirimkan mereka file dari |
| http://groups.yahoo.com/group/XL-mania/files/Promotion/ |
+-------------------------------------------------------------------+
| Berikan testimoni di : http://www.friendster.com/xlmania atau... |
| http://www.xl-mania.com/2008/06/testimoni-xl-mania.html |
+-------------------------------------------------------------------+
| Message lama ada di : |
| http://groups.yahoo.com/group/XL-mania/messages [perlu yahoo id] |
| http://www.mail-archive.com/xl-mania@yahoogroups.com |
+-------------------------------------------------------------------+
| eat pray love, eat eat love, eat eat eat... |
| http://www.facebook.com/group.php?gid=37671048001&ref=mf |
+-------------------------------------------------------------------+
| DILARANG : MLM, money game, OOT, iklan tanpa izin, SARA, testing, |
| pembicaraan pribadi, one line message, melecehkan, tidak sopan. |
+-------------------------------------------------------------------+
| Buat subjek yang kreatif, jangan : "tanya", "help", "mohon bantu" |
| Usahakan besar attachment < 200 kb. Gunakan winzip jika perlu. |
+-------------------------------------------------------------------+
| Ajak teman-teman Anda bergabung dengan mengirim e-mail kosong ke |
| XL-mania-subscribe@yahoogroups.com atau kirimkan mereka file dari |
| http://groups.yahoo.com/group/XL-mania/files/Promotion/ |
+-------------------------------------------------------------------+
| Berikan testimoni di : http://www.friendster.com/xlmania atau... |
| http://www.xl-mania.com/2008/06/testimoni-xl-mania.html |
+-------------------------------------------------------------------+
| Message lama ada di : |
| http://groups.yahoo.com/group/XL-mania/messages [perlu yahoo id] |
| http://www.mail-archive.com/xl-mania@yahoogroups.com |
+-------------------------------------------------------------------+
MARKETPLACE
.
__,_._,___
Nenhum comentário:
Postar um comentário