Tecnologia, programação e muito Visual FoxPro.

domingo, 6 de novembro de 2011

]] XL-mania [[ Re: Extract Text

 

coba dengan UDF berikut ini:

Function udf(r As Range)
    'anton suryadi, 6/Nov/2011
    y = Split(r, ",")
    For i = 0 To UBound(y)
        s = Split(y(i), "-")
        d = Mid(s(0), 2, 2)
        For j = 0 To (s(1) - d)
            udf = udf & IIf(udf = "", "", ",") & IIf(j = 0, s(0), Left(s(0), 1) & (d + j))
        Next
    Next
End Function

NB: Hanya untuk 1 huruf dan max 99 urutan angka


>semoga bermanfaat


==================================================================
--- In XL-mania@yahoogroups.com, "henri_hutagalung" <henri_htgl@...> wrote:

 Dear XL-Mania,
 Mohon bantuannya untuk ekstraksi text pada cell yang seperti pada contoh berikut:
 di cell A1 ada data text dgn isi: A1-3,B1-5,C5-7

 hasilnya jika di ekstrak di cell B1 adalah: A1,A2,A3,B1,B2,B3,B4,B5,C5,C6,C7

 Terima kasih untuk bantuannya.

 Rgrds,
 Henri H

__._,_.___
Recent Activity:
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| ayooo... coba cari XL-mania di linkedin.com                       |
| selamat merayakan idul adha!                                      |
+-------------------------------------------------------------------+
| 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

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

Nenhum comentário:

Arquivo do blog