Tecnologia, programação e muito Visual FoxPro.

domingo, 19 de setembro de 2010

Re: ]] XL-mania [[ yang bisa bantu, ada imbalan deh.....

 

Kalau telat masih bisa dapat hadiah gak ?

Dengan UDF JumlahPesanan()

Public Function JumlahPesanan(sData As String, _
                              Optional sPemisahKodeBarang As String = "x", _
                              Optional sPemisahJenisBarang As String = ".") As Double
    Dim sNilai() As String
    Dim dblRes As Double
    Dim vVal As Variant
    Dim sDec As String
   
    sDec = Format$(0, ".")
    sNilai = Split(LCase$(sData), sPemisahKodeBarang)
    dblRes = 0
    For Each vVal In sNilai
        If IsNumeric(vVal) Then
            dblRes = dblRes + CInt(Replace$(vVal, sPemisahJenisBarang, sDec))
        End If
    Next vVal
    JumlahPesanan = dblRes
End Function

Cara pakai :
pada cell :
=JumlahPesanan( D12, "x", "." )

karena defaultnya adalah "x" dan "." dan data di kolom D juga menggunakan "x" dan "."
maka bisa ditulis :
=JumlahPesanan( D12 )

Regards.
Kid.

2010/9/14 dj amor <djamor_69@yahoo.com>
 

please help me........
temen-temen tolong bantu ya......?
slama ini aq ngitungnya MANUAL...... gak efisien bangetz......
file contoh aq lampirkan di attachment.....





--
Kid.

__._,_.___
Recent Activity:
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| oppsss... thr-nya kok cepet banget ya habisnya....  T_____T       |
| 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

Get great advice about dogs and cats. Visit the Dog & Cat Answers Center.


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


Hobbies & Activities Zone: Find others who share your passions! Explore new interests.

.

__,_._,___

Nenhum comentário:

Arquivo do blog