<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Number to written english in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419795#M156192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://classicasp.aspfaq.com/general/how-do-i-convert-numbers-into-words.html"&gt;Here's&lt;/A&gt; an example. If you add that code in the macro editor then you can use the function num2words in a sub like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox num2words(789)&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2013 13:14:08 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-01-14T13:14:08Z</dc:date>
    <item>
      <title>Number to written english</title>
      <link>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419794#M156191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a macro that converts a number to written english.for example: 105 to "one hundred and five".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 13:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419794#M156191</guid>
      <dc:creator />
      <dc:date>2013-01-14T13:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Number to written english</title>
      <link>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419795#M156192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://classicasp.aspfaq.com/general/how-do-i-convert-numbers-into-words.html"&gt;Here's&lt;/A&gt; an example. If you add that code in the macro editor then you can use the function num2words in a sub like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox num2words(789)&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 13:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419795#M156192</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-14T13:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Number to written english</title>
      <link>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419796#M156193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://javascript.about.com/library/bltoword.htm"&gt;http://javascript.about.com/library/bltoword.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it ok in Java?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok ducky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 13:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419796#M156193</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-01-14T13:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Number to written english</title>
      <link>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419797#M156194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a VBA example (in the grey box) which is easy to adapt to VBScript ... just need to remove the optional statements at the top and the "As String" and "Val" statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://www.yogeshguptaonline.com/2009/07/excel-functions-convert-numbers-into.html" title="http://www.yogeshguptaonline.com/2009/07/excel-functions-convert-numbers-into.html"&gt;http://www.yogeshguptaonline.com/2009/07/excel-functions-convert-numbers-into.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 13:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419797#M156194</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-01-14T13:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Number to written english</title>
      <link>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419798#M156195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Dear Layal,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Plz try this....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub Par&lt;BR /&gt;vPar=InputBox("Enter the Value")&lt;BR /&gt;SpellNumber(vPar)&lt;BR /&gt;'msgbox Result&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Main Function&lt;BR /&gt;Function SpellNumber(ByVal MyNumber)&lt;BR /&gt;Dim Dollars, Cents, Temp&lt;BR /&gt;Dim DecimalPlace, Count&lt;BR /&gt;ReDim Place(9)&lt;BR /&gt;Place(2) = " Thousand "&lt;BR /&gt;Place(3) = " Million "&lt;BR /&gt;Place(4) = " Billion "&lt;BR /&gt;Place(5) = " Trillion "&lt;BR /&gt;' String representation of amount.&lt;BR /&gt;MyNumber = Trim(MyNumber)&lt;BR /&gt;' Position of decimal place 0 if none.&lt;BR /&gt;DecimalPlace = InStr(MyNumber, ".")&lt;BR /&gt;' Convert cents and set MyNumber to dollar amount.&lt;BR /&gt;If DecimalPlace &amp;gt; 0 Then&lt;BR /&gt;Cents = GetTens(Left(Mid(MyNumber, DecimalPlace + 1)&amp;amp; "00", 2))&lt;BR /&gt;MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))&lt;BR /&gt;End If&lt;BR /&gt;Count = 1&lt;BR /&gt;Do While MyNumber &amp;lt;&amp;gt; ""&lt;BR /&gt;Temp = GetHundreds(Right(MyNumber, 3))&lt;BR /&gt;If Temp &amp;lt;&amp;gt; "" Then Dollars = Temp &amp;amp; Place(Count) &amp;amp; Dollars&lt;BR /&gt;If Len(MyNumber) &amp;gt; 3 Then&lt;BR /&gt;MyNumber = Left(MyNumber, Len(MyNumber) - 3)&lt;BR /&gt;Else&lt;BR /&gt;MyNumber = ""&lt;BR /&gt;End If&lt;BR /&gt;Count = Count + 1&lt;BR /&gt;Loop&lt;BR /&gt;Select Case Dollars&lt;BR /&gt;Case ""&lt;BR /&gt;Dollars = "No Dollars"&lt;BR /&gt;Case "One"&lt;BR /&gt;Dollars = "One Dollar"&lt;BR /&gt;Case Else&lt;BR /&gt;Dollars = Dollars &amp;amp; " Dollars"&lt;BR /&gt;End Select&lt;BR /&gt;Select Case Cents&lt;BR /&gt;Case ""&lt;BR /&gt;Cents = " and No Cents"&lt;BR /&gt;Case "One"&lt;BR /&gt;Cents = " and One Cent"&lt;BR /&gt;Case Else&lt;BR /&gt;Cents = " and " &amp;amp; Cents &amp;amp; " Cents"&lt;BR /&gt;End Select&lt;BR /&gt;SpellNumber = Dollars &amp;amp; Cents&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' Converts a number from 100-999 into text &lt;BR /&gt;Function GetHundreds(ByVal MyNumber)&lt;BR /&gt;Dim Result &lt;BR /&gt;If MyNumber = 0 Then Exit Function&lt;BR /&gt;MyNumber = Right("000" &amp;amp; MyNumber, 3)&lt;BR /&gt;' Convert the hundreds place.&lt;BR /&gt;If Mid(MyNumber, 1, 1) &amp;lt;&amp;gt; "0" Then&lt;BR /&gt;Result = GetDigit(Mid(MyNumber, 1, 1)) &amp;amp; " Hundred "&lt;BR /&gt;End If&lt;BR /&gt;' Convert the tens and ones place.&lt;BR /&gt;If Mid(MyNumber, 2, 1) &amp;lt;&amp;gt; "0" Then&lt;BR /&gt;Result = Result &amp;amp; GetTens(Mid(MyNumber, 2))&lt;BR /&gt;Else&lt;BR /&gt;Result = Result &amp;amp; GetDigit(Mid(MyNumber, 3))&lt;BR /&gt;End If&lt;BR /&gt;GetHundreds = Result&lt;BR /&gt;msgbox Result&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' Converts a number from 10 to 99 into text. &lt;BR /&gt;Function GetTens(TensText)&lt;BR /&gt;Dim Result &lt;BR /&gt;Result = "" ' Null out the temporary function value.&lt;BR /&gt;If Left(TensText, 1) = 1 Then ' If value between 10-19...&lt;BR /&gt;Select Case TensText&lt;BR /&gt;Case 10: Result = "Ten"&lt;BR /&gt;Case 11: Result = "Eleven"&lt;BR /&gt;Case 12: Result = "Twelve"&lt;BR /&gt;Case 13: Result = "Thirteen"&lt;BR /&gt;Case 14: Result = "Fourteen"&lt;BR /&gt;Case 15: Result = "Fifteen"&lt;BR /&gt;Case 16: Result = "Sixteen"&lt;BR /&gt;Case 17: Result = "Seventeen"&lt;BR /&gt;Case 18: Result = "Eighteen"&lt;BR /&gt;Case 19: Result = "Nineteen"&lt;BR /&gt;Case Else&lt;BR /&gt;End Select&lt;BR /&gt;Else ' If value between 20-99...&lt;BR /&gt;Select Case Left(TensText, 1)&lt;BR /&gt;Case 2: Result = "Twenty "&lt;BR /&gt;Case 3: Result = "Thirty "&lt;BR /&gt;Case 4: Result = "Forty "&lt;BR /&gt;Case 5: Result = "Fifty "&lt;BR /&gt;Case 6: Result = "Sixty "&lt;BR /&gt;Case 7: Result = "Seventy "&lt;BR /&gt;Case 8: Result = "Eighty "&lt;BR /&gt;Case 9: Result = "Ninety "&lt;BR /&gt;Case Else&lt;BR /&gt;End Select&lt;BR /&gt;Result = Result &amp;amp; GetDigit _&lt;BR /&gt;(Right(TensText, 1)) ' Retrieve ones place.&lt;BR /&gt;End If&lt;BR /&gt;GetTens = Result&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' Converts a number from 1 to 9 into text. &lt;BR /&gt;Function GetDigit(Digit)&lt;BR /&gt;Select Case Digit&lt;BR /&gt;Case 1: GetDigit = "One"&lt;BR /&gt;Case 2: GetDigit = "Two"&lt;BR /&gt;Case 3: GetDigit = "Three"&lt;BR /&gt;Case 4: GetDigit = "Four"&lt;BR /&gt;Case 5: GetDigit = "Five"&lt;BR /&gt;Case 6: GetDigit = "Six"&lt;BR /&gt;Case 7: GetDigit = "Seven"&lt;BR /&gt;Case 8: GetDigit = "Eight"&lt;BR /&gt;Case 9: GetDigit = "Nine"&lt;BR /&gt;Case Else: GetDigit = ""&lt;BR /&gt;End Select&lt;BR /&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 06:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419798#M156195</guid>
      <dc:creator />
      <dc:date>2013-01-16T06:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Number to written english</title>
      <link>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419799#M156196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="30474" class="jive-image-thumbnail jive-image" onclick="" alt="untitled.JPG" src="https://community.qlik.com/legacyfs/online/30474_untitled.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 07:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419799#M156196</guid>
      <dc:creator />
      <dc:date>2013-01-16T07:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Number to written english</title>
      <link>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419800#M156197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parag:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's great!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 09:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-to-written-english/m-p/419800#M156197</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-01-16T09:09:16Z</dc:date>
    </item>
  </channel>
</rss>

