<?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: Excel Custom Number Format Import in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excel-Custom-Number-Format-Import/m-p/1285436#M402497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the Num# function in your LOAD statement in the load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Num#( fieldnameA ,'#,##0 ST') &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2017 17:12:39 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2017-01-20T17:12:39Z</dc:date>
    <item>
      <title>Excel Custom Number Format Import</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Custom-Number-Format-Import/m-p/1285435#M402496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;my question is: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is there a way I can import this custom number format to qlikview ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="format.PNG" class="jive-image image-1" height="331" src="https://community.qlik.com/legacyfs/online/150236_format.PNG" style="height: 331.274px; width: 470px;" width="470" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 11:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Custom-Number-Format-Import/m-p/1285435#M402496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-20T11:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Custom Number Format Import</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Custom-Number-Format-Import/m-p/1285436#M402497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the Num# function in your LOAD statement in the load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Num#( fieldnameA ,'#,##0 ST') &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Custom-Number-Format-Import/m-p/1285436#M402497</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-20T17:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Custom Number Format Import</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Custom-Number-Format-Import/m-p/1285437#M402498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, re-formating the imported number is not what I am after.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What I need is a way to read the number format that is specified in the Excel custom number format, not (only) the actual value of the field.&lt;/SPAN&gt;&lt;BR /&gt;The reason is that the field contains numeric values, but each row has a different excel number format, which for me is information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, in the same field, there are some rows that have this format:&lt;BR /&gt;#,##0, "ST"&lt;/P&gt;&lt;P&gt;while others have&lt;/P&gt;&lt;P&gt;#,##0, "L"&lt;/P&gt;&lt;P&gt;...and then a few more different formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do read the format in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Excel file can't be altered, there is no other column that gives away what format my column would contain)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 13:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Custom-Number-Format-Import/m-p/1285437#M402498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-21T13:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Custom Number Format Import</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Custom-Number-Format-Import/m-p/1285438#M402499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what do you want to do with these different formats once you have read them? I guess just reading the formats alone will not be of much value. Using them together with the numbers that are formatted according to that would probably be a goal then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a part of a spreadsheet that you could share with a more extensive explanation? That way we won't waste yours or ours time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By creating an Excel VBA macro you can easily extract any numberformat out of a spreadsheet and determine exactly which values that are using them...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 20:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Custom-Number-Format-Import/m-p/1285438#M402499</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-21T20:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Custom Number Format Import</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Custom-Number-Format-Import/m-p/1285439#M402500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solution could be to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Copy the Excel-file to a temporary file folder&lt;/P&gt;&lt;P&gt;2) Open the copied Excel-file&lt;/P&gt;&lt;P&gt;3) Run a tiny VBScript macro that copies the format values to an adjoining column&lt;/P&gt;&lt;P&gt;4) Save the Excel-file&lt;/P&gt;&lt;P&gt;5) Read it from QlikView load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another solution could be:&lt;/P&gt;&lt;P&gt;1) Run a tiny VBScript macro to copy the format values (all of them) into a QlikView variable in the load script&lt;/P&gt;&lt;P&gt;2) Access the format for a particular value either in the load script or later in an expression in a chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField()-function can be used in both cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Macro/Module VBScript for the second solution would look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-22 01_12_05-Edit Module.png" class="jive-image image-1" src="/legacyfs/online/150370_2017-01-22 01_12_05-Edit Module.png" style="height: 458px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And using this VBScript function from a load scxript would be to simply use it like this and assign the return value to a QlikView variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-22 01_13_00-Edit Script [C__Users_psd_Documents_JiveJSON2.qvw_].png" class="jive-image image-2" height="31" src="/legacyfs/online/150371_2017-01-22 01_13_00-Edit Script [C__Users_psd_Documents_JiveJSON2.qvw_].png" style="height: 31px; width: 571.478px;" width="571" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can pick the value you want like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField( allNumberFormats , Chr(13) &amp;amp; Chr(10) , 59 )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // To get the 59th NumberFormat&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just displayed in a Text Box in QlikView they would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-22 01_16_11-QlikView x64 - [C__Users_psd_Documents_JiveJSON2.qvw_].png" class="jive-image image-3" height="339" src="/legacyfs/online/150372_2017-01-22 01_16_11-QlikView x64 - [C__Users_psd_Documents_JiveJSON2.qvw_].png" style="height: 338.705px; width: 173px;" width="173" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2017 00:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Custom-Number-Format-Import/m-p/1285439#M402500</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-22T00:17:34Z</dc:date>
    </item>
  </channel>
</rss>

