terça-feira, 10 de maio de 2011

Re: ]] XL-mania [[ Referance vlookup

 

sesuai saran Mr. Kid, berikut revisi kedua,

Function vlookupgab(x As Range, y, c As Long, Optional z As String = ",") As String
'anton suryadi 10/Mei/2011 (edisi revisi kedua)
For Each a In x.Resize(, 1)
    If a = y Then
    b = b & a.Offset(, c - 1).Text & z
    End If
Next
vlookupgab = Left(b, Len(b) - Len(z))
End Function


contoh penulisan:
=vlookupgab($B$3:$C$9,H3,2,",")
atau,
=vlookupgab($B$3:$C$9,"a",2,",")
atau,
=vlookupgab($B$3:$C$9,1,2,",")
atau dapat diperpendek,
=vlookupgab($B$3:$C$9,H3,2) <-- jika mengingingkan "," sebagai delimiter


>semoga bermanfaat



--- In XL-mania@yahoogroups.com, "summonery" <summonery@...> wrote:
>
> berikut ini dengan sedikit pemutakhiran atas versi sebelumnya,
> Function vlookupgab(x As Range, y, c As Long, Optional z As String = "")
> As String'anton suryadi 10/Mei/2011 (edisi revisi)For Each a In
> x.Resize(, 1) If a = y Then b = b & a.Offset(, c - 1).Text & z
> End IfNextvlookupgab = Left(b, Len(b) - Len(z))End Function
>
> contoh
> penulisan:=vlookupgab($B$3:$C$9,H3,2,",")atau,=vlookupgab($B$3:$C$9,"a",\
> 2,",")atau,=vlookupgab($B$3:$C$9,1,2,",")
>
>
> >semoga bermanfaat
>
>
> --- In XL-mania@yahoogroups.com, hendrik karnadi hendrikkarnadi@
> wrote:
> >
> > Pakai function vlookupgab dari Pak Anton
> >
> > Salam,
> > Hendrik Karnadi
> >
> >
> >
> >
> > ________________________________
> > From: "sandiwan.prihanto@" sandiwan.prihanto@
> > To: XL-mania@yahoogroups.com
> > Sent: Thursday, May 5, 2011 18:02:29
> > Subject: ]] XL-mania [[ Referance vlookup
> >
> >
> > Dh Dewa-dewi xl mania,
> >
> > Saya punya permasalahan dengan vlookup, saya ingin menangkap data
> namun datanya
> > lebih dari satu: Berikut saya sertakan contohnya,
> >
> >
> >
> >
> > Best regards, Sandiwan P
> > Sandiwan Prihanto
> > PT. Sandoz Indonesia
> > Planner
> > PT. Sandoz Indonesia
> > Jl. TB. Simatupang
> > Kp. Gedong, Pasar Rebo
> > Jakarta Timur 13760
> > Indonesia
> > Phone: +622130014200 ext.471
> > Cell: +6281808909044
> > Email : sandiwan.prihanto@
> > Web : http://www.sandoz.com
> >
>

__._,_.___
Recent Activity:
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| maaf baru moderate sekarang... momods kurang tidur berhari-hari   |
| jadi budak kantoooOOooorrr...                                     |
| 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

Find useful articles and helpful tips on living with Fibromyalgia. Visit the Fibromyalgia Zone today!


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

.

__,_._,___

Nenhum comentário:

Postar um comentário