Re: [belajar-excel] Mohon petunjuk Angka Terbilang dengan desimal

2019-04-14 Terurut Topik Agus nanga...@gmail.com [belajar-excel]

Dear Monang.
Macronya belum dihidupkan
silahkan dipilih:
Excel Option, Trust Center, Trust Center Setting, Macro Setting, Enable 
All Macros, OK, OK

Regard
Agus
On 4/12/2019 16:12, Monang Pasaribu monang_pasar...@hotmail.com 
[belajar-excel] wrote:


Mas Agus

terlampir adalah sheet yang saya masukkan script nya, entah kenapa 
kalau sekarang di buka di excel komputer saya malah muncul error 
#NAME?, padahal awalnya


terima kasih banyak sebelumnya

Best Regards,
Monang









Re: [belajar-excel] Mohon petunjuk Angka Terbilang dengan desimal

2019-04-14 Terurut Topik hendrik karnadi hendrikkarn...@yahoo.com [belajar-excel]
Pak Monang,Ikutan jawab ya
Coba cek apakah function spellnumbernya ada di module atau kalau sdh ada di 
AddIns sdh dicentang atau belum.
Salam,HK

Sent from Yahoo Mail on Android 
 
  On Sun, Apr 14, 2019 at 14:58, Monang Pasaribu monang_pasar...@hotmail.com 
[belajar-excel] wrote:       

Mas Agus
terlampir adalah sheet yang saya masukkan script nya, entah kenapa kalau 
sekarang di buka di excel komputer saya malah muncul error #NAME?, padahal 
awalnya 
terima kasih banyak sebelumnya
Best Regards,
Monang 

From: belajar-excel@yahoogroups.com  on behalf 
of Agus nanga...@gmail.com [belajar-excel] 
Sent: Tuesday, April 9, 2019 1:20 PM
To: belajar-excel@yahoogroups.com
Subject: Re: [belajar-excel] Mohon petunjuk Angka Terbilang dengan desimal  

sudah dicobakah cekripnya?Untuk sen saya buat fungsi tersendiri,dicoba dahulu, 
jika ada kesalahan posting lagi di milis.RegardNangAgus
Function SpellNumber(ByVal MyNumber)
    Dim Point, Cents, Temp
    Dim DecimalPlace As Integer, Count As Integer
    ReDim Place(9) As String
    Place(2) = "Thousand "
    Place(3) = "Million "
    Place(4) = "Billion "
    Place(5) = "Trillion "
    ' Position of decimal place 0 if none.
    DecimalPlace = Len(MyNumber) - Len(Int(MyNumber)) - 1
    ' Convert cents and set MyNumber to Point amount.
    If DecimalPlace > 0 Then
    Cents = Sent(Format(MyNumber, "#.##"))
  '  MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))
   End If
  If Left(MyNumber, 1) = "0" Then
  MyNumber = ""
  Else
  MyNumber = Int(MyNumber)
  MyNumber = Trim(Str(MyNumber))
  End If
    Count = 1
    Do While MyNumber <> ""
    Temp = GetHundreds(Right(MyNumber, 3))
    If Temp <> "" Then Point = Temp & Place(Count) & Point
    If Len(MyNumber) > 3 Then
    MyNumber = Left(MyNumber, Len(MyNumber) - 3)
    Else
    MyNumber = ""
    End If
    Count = Count + 1
    Loop
    Select Case Point
    Case ""
    Point = "Zero Point "
    Case "One"
    Point = "One Point "
 Case Else
    Point = Point & "Point "
    End Select
    Select Case Cents
    Case ""
    Cents = "Zero "
    Case "One"
    Cents = "One "
  Case Else
    Cents = " " & Cents
    End Select
    SpellNumber = Point & Cents
End Function
 
' Converts a number from 100-999 into text
Function GetHundreds(ByVal MyNumber)
    Dim Result As String
    If Val(MyNumber) = 0 Then Exit Function
    MyNumber = (Right("000" & Int(MyNumber), 3))
    ' Convert the hundreds place.
    If Mid(MyNumber, 1, 1) <> "0" Then
    Result = GetDigit(Mid(MyNumber, 1, 1)) & "Hundred "
    End If
    ' Convert the tens and ones place.
    If Mid(MyNumber, 2, 1) <> "0" Then
    Result = Result & GetTens(Mid(MyNumber, 2))
    Else
    Result = Result & GetDigit(Mid(MyNumber, 3))
    End If
    GetHundreds = Result
End Function
 
' Converts a number from 10 to 99 into text.
Function GetTens(TensText)
    Dim Result As String
    Result = ""   ' Null out the temporary function value.
    If Val(Left(TensText, 1)) = 1 Then   ' If value between 10-19...
    Select Case Val(TensText)
    Case 10: Result = "Ten "
    Case 11: Result = "Eleven "
    Case 12: Result = "Twelve "
    Case 13: Result = "Thirteen "
    Case 14: Result = "Fourteen "
    Case 15: Result = "Fifteen "
    Case 16: Result = "Sixteen "
    Case 17: Result = "Seventeen "
    Case 18: Result = "Eighteen "
    Case 19: Result = "Nineteen "
    Case Else
    End Select
    Else ' If value between 20-99...
    Select Case Val(Left(TensText, 1))
    Case 2: Result = "Twenty "
    Case 3: Result = "Thirty "
    Case 4: Result = "Forty "
    Case 5: Result = "Fifty "
    Case 6: Result = "Sixty "
    Case 7: Result = "Seventy "
    Case 8: Result = "Eighty "
    Case 9: Result = "Ninety "
    Case Else
    End Select
    Result = Result & GetDigit _
    (Right(TensText, 1))  ' Retrieve ones place.
    End If
    GetTens = Result
End Function
 
' Converts a number from 1 to 9 into text.
Function GetDigit(Digit)
    Select Case Val(Digit)
    Case 0: GetDigit = "Zero "
    Case 1: GetDigit = "One "
    Case 2: GetDigit = "Two "
    Case 3: GetDigit = "Three "
    Case 4: GetDigit = "Four "
    Case 5: GetDigit = "Five "
    Case 6: GetDigit = "Six "
    Case 7: GetDigit = "Seven "
    Case 8: GetDigit = "Eight "
    Case 9: GetDigit = "Nine "
    End Select
End Function

Function Sent(d As String)
Dim c As String, e As String
Dim b As Double, i As Integer
b = Int(d)
If Len(d) - Len(Format(b, "##")) = 0 Then
Sent = ""
Exit Function
End If
c = Right(d, Len(d) - Len(Format(b, "##")) - 1)
For i = 1 To Len(c)
e = e & 

Re: [belajar-excel] Mohon petunjuk Angka Terbilang dengan desimal [1 Attachment]

2019-04-14 Terurut Topik Monang Pasaribu monang_pasar...@hotmail.com [belajar-excel]
Mas Agus

terlampir adalah sheet yang saya masukkan script nya, entah kenapa kalau 
sekarang di buka di excel komputer saya malah muncul error #NAME?, padahal 
awalnya

terima kasih banyak sebelumnya

Best Regards,
Monang


From: belajar-excel@yahoogroups.com  on behalf 
of Agus nanga...@gmail.com [belajar-excel] 
Sent: Tuesday, April 9, 2019 1:20 PM
To: belajar-excel@yahoogroups.com
Subject: Re: [belajar-excel] Mohon petunjuk Angka Terbilang dengan desimal



sudah dicobakah cekripnya?
Untuk sen saya buat fungsi tersendiri,
dicoba dahulu, jika ada kesalahan posting lagi di milis.
Regard
NangAgus

Function SpellNumber(ByVal MyNumber)
Dim Point, Cents, Temp
Dim DecimalPlace As Integer, Count As Integer
ReDim Place(9) As String
Place(2) = "Thousand "
Place(3) = "Million "
Place(4) = "Billion "
Place(5) = "Trillion "
' Position of decimal place 0 if none.
DecimalPlace = Len(MyNumber) - Len(Int(MyNumber)) - 1
' Convert cents and set MyNumber to Point amount.
If DecimalPlace > 0 Then
Cents = Sent(Format(MyNumber, "#.##"))
  '  MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))
   End If
  If Left(MyNumber, 1) = "0" Then
  MyNumber = ""
  Else
  MyNumber = Int(MyNumber)
  MyNumber = Trim(Str(MyNumber))
  End If
Count = 1
Do While MyNumber <> ""
Temp = GetHundreds(Right(MyNumber, 3))
If Temp <> "" Then Point = Temp & Place(Count) & Point
If Len(MyNumber) > 3 Then
MyNumber = Left(MyNumber, Len(MyNumber) - 3)
Else
MyNumber = ""
End If
Count = Count + 1
Loop
Select Case Point
Case ""
Point = "Zero Point "
Case "One"
Point = "One Point "
 Case Else
Point = Point & "Point "
End Select
Select Case Cents
Case ""
Cents = "Zero "
Case "One"
Cents = "One "
  Case Else
Cents = " " & Cents
End Select
SpellNumber = Point & Cents
End Function

' Converts a number from 100-999 into text
Function GetHundreds(ByVal MyNumber)
Dim Result As String
If Val(MyNumber) = 0 Then Exit Function
MyNumber = (Right("000" & Int(MyNumber), 3))
' Convert the hundreds place.
If Mid(MyNumber, 1, 1) <> "0" Then
Result = GetDigit(Mid(MyNumber, 1, 1)) & "Hundred "
End If
' Convert the tens and ones place.
If Mid(MyNumber, 2, 1) <> "0" Then
Result = Result & GetTens(Mid(MyNumber, 2))
Else
Result = Result & GetDigit(Mid(MyNumber, 3))
End If
GetHundreds = Result
End Function

' Converts a number from 10 to 99 into text.
Function GetTens(TensText)
Dim Result As String
Result = ""   ' Null out the temporary function value.
If Val(Left(TensText, 1)) = 1 Then   ' If value between 10-19...
Select Case Val(TensText)
Case 10: Result = "Ten "
Case 11: Result = "Eleven "
Case 12: Result = "Twelve "
Case 13: Result = "Thirteen "
Case 14: Result = "Fourteen "
Case 15: Result = "Fifteen "
Case 16: Result = "Sixteen "
Case 17: Result = "Seventeen "
Case 18: Result = "Eighteen "
Case 19: Result = "Nineteen "
Case Else
End Select
Else ' If value between 20-99...
Select Case Val(Left(TensText, 1))
Case 2: Result = "Twenty "
Case 3: Result = "Thirty "
Case 4: Result = "Forty "
Case 5: Result = "Fifty "
Case 6: Result = "Sixty "
Case 7: Result = "Seventy "
Case 8: Result = "Eighty "
Case 9: Result = "Ninety "
Case Else
End Select
Result = Result & GetDigit _
(Right(TensText, 1))  ' Retrieve ones place.
End If
GetTens = Result
End Function

' Converts a number from 1 to 9 into text.
Function GetDigit(Digit)
Select Case Val(Digit)
Case 0: GetDigit = "Zero "
Case 1: GetDigit = "One "
Case 2: GetDigit = "Two "
Case 3: GetDigit = "Three "
Case 4: GetDigit = "Four "
Case 5: GetDigit = "Five "
Case 6: GetDigit = "Six "
Case 7: GetDigit = "Seven "
Case 8: GetDigit = "Eight "
Case 9: GetDigit = "Nine "
End Select
End Function

Function Sent(d As String)
Dim c As String, e As String
Dim b As Double, i As Integer
b = Int(d)
If Len(d) - Len(Format(b, "##")) = 0 Then
Sent = ""
Exit Function
End If
c = Right(d, Len(d) - Len(Format(b, "##")) - 1)
For i = 1 To Len(c)
e = e & GetDigit(Mid(c, i, 1))
Next i
Sent = e
End Function
On 4/8/2019 10:36, Monang Pasaribu 
monang_pasar...@hotmail.com [belajar-excel] 
wrote:


dear Mas Agus

Mohon maaf, yang benar 0.01 di bacanya seharusnya zero point zero one

Best Regards,

Re: [belajar-excel] KETERANGAN dengan Kriteria

2019-04-14 Terurut Topik HAIRUL ALAM ha_m...@yahoo.co.id [belajar-excel]
 Yang Terhormat Master
Terimakasih Banyak Pencerahannya
SalamHairul
Pada Jumat, 12 April 2019 18.29.51 WITA, odong nando odongna...@yahoo.com 
[belajar-excel]  menulis:

  

fyi
br,

odong nando


Pada Jumat, 12 April 2019 14.40.47 WIB, HAIRUL ALAM ha_m...@yahoo.co.id 
[belajar-excel]  menulis:

  

AssalamualaikumPara Master
Mohon pencerahannya seperti file terlampir, untuk KETERANGAN pada kolom J yang 
diberi warna kuning seperti contoh cell J4 dengan mengikuti criteria kolom G, 
bagaimana bentuk rumusnya excelnya 
Terimakasih

WassalamualaikumHairul Alam  #yiv2103989319 #yiv2103989319 -- 
#yiv2103989319ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 
0;padding:0 10px;}#yiv2103989319 #yiv2103989319ygrp-mkp hr {border:1px solid 
#d8d8d8;}#yiv2103989319 #yiv2103989319ygrp-mkp #yiv2103989319hd 
{color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 
0;}#yiv2103989319 #yiv2103989319ygrp-mkp #yiv2103989319ads 
{margin-bottom:10px;}#yiv2103989319 #yiv2103989319ygrp-mkp .yiv2103989319ad 
{padding:0 0;}#yiv2103989319 #yiv2103989319ygrp-mkp .yiv2103989319ad p 
{margin:0;}#yiv2103989319 #yiv2103989319ygrp-mkp .yiv2103989319ad a 
{color:#ff;text-decoration:none;}#yiv2103989319 #yiv2103989319ygrp-sponsor 
#yiv2103989319ygrp-lc {font-family:Arial;}#yiv2103989319 
#yiv2103989319ygrp-sponsor #yiv2103989319ygrp-lc #yiv2103989319hd {margin:10px 
0px;font-weight:700;font-size:78%;line-height:122%;}#yiv2103989319 
#yiv2103989319ygrp-sponsor #yiv2103989319ygrp-lc .yiv2103989319ad 
{margin-bottom:10px;padding:0 0;}#yiv2103989319 #yiv2103989319actions 
{font-family:Verdana;font-size:11px;padding:10px 0;}#yiv2103989319 
#yiv2103989319activity 
{background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv2103989319
 #yiv2103989319activity span {font-weight:700;}#yiv2103989319 
#yiv2103989319activity span:first-child 
{text-transform:uppercase;}#yiv2103989319 #yiv2103989319activity span a 
{color:#5085b6;text-decoration:none;}#yiv2103989319 #yiv2103989319activity span 
span {color:#ff7900;}#yiv2103989319 #yiv2103989319activity span 
.yiv2103989319underline {text-decoration:underline;}#yiv2103989319 
.yiv2103989319attach 
{clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 
0;width:400px;}#yiv2103989319 .yiv2103989319attach div a 
{text-decoration:none;}#yiv2103989319 .yiv2103989319attach img 
{border:none;padding-right:5px;}#yiv2103989319 .yiv2103989319attach label 
{display:block;margin-bottom:5px;}#yiv2103989319 .yiv2103989319attach label a 
{text-decoration:none;}#yiv2103989319 blockquote {margin:0 0 0 
4px;}#yiv2103989319 .yiv2103989319bold 
{font-family:Arial;font-size:13px;font-weight:700;}#yiv2103989319 
.yiv2103989319bold a {text-decoration:none;}#yiv2103989319 dd.yiv2103989319last 
p a {font-family:Verdana;font-weight:700;}#yiv2103989319 dd.yiv2103989319last p 
span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv2103989319 
dd.yiv2103989319last p span.yiv2103989319yshortcuts 
{margin-right:0;}#yiv2103989319 div.yiv2103989319attach-table div div a 
{text-decoration:none;}#yiv2103989319 div.yiv2103989319attach-table 
{width:400px;}#yiv2103989319 div.yiv2103989319file-title a, #yiv2103989319 
div.yiv2103989319file-title a:active, #yiv2103989319 
div.yiv2103989319file-title a:hover, #yiv2103989319 div.yiv2103989319file-title 
a:visited {text-decoration:none;}#yiv2103989319 div.yiv2103989319photo-title a, 
#yiv2103989319 div.yiv2103989319photo-title a:active, #yiv2103989319 
div.yiv2103989319photo-title a:hover, #yiv2103989319 
div.yiv2103989319photo-title a:visited {text-decoration:none;}#yiv2103989319 
div#yiv2103989319ygrp-mlmsg #yiv2103989319ygrp-msg p a 
span.yiv2103989319yshortcuts 
{font-family:Verdana;font-size:10px;font-weight:normal;}#yiv2103989319 
.yiv2103989319green {color:#628c2a;}#yiv2103989319 .yiv2103989319MsoNormal 
{margin:0 0 0 0;}#yiv2103989319 o {font-size:0;}#yiv2103989319 
#yiv2103989319photos div {float:left;width:72px;}#yiv2103989319 
#yiv2103989319photos div div {border:1px solid 
#66;min-height:62px;overflow:hidden;width:62px;}#yiv2103989319 
#yiv2103989319photos div label 
{color:#66;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv2103989319
 #yiv2103989319reco-category {font-size:77%;}#yiv2103989319 
#yiv2103989319reco-desc {font-size:77%;}#yiv2103989319 .yiv2103989319replbq 
{margin:4px;}#yiv2103989319 #yiv2103989319ygrp-actbar div a:first-child 
{margin-right:2px;padding-right:5px;}#yiv2103989319 #yiv2103989319ygrp-mlmsg 
{font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv2103989319 
#yiv2103989319ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv2103989319 
#yiv2103989319ygrp-mlmsg select, #yiv2103989319 input, #yiv2103989319 textarea 
{font:99% Arial, Helvetica, clean, sans-serif;}#yiv2103989319 
#yiv2103989319ygrp-mlmsg pre, #yiv2103989319 code {font:115% 
monospace;}#yiv2103989319 #yiv2103989319ygrp-mlmsg *