<?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: extract multiple tables from a single sheet in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601854#M680097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not an easy task but I've had to do something very similar in the past. Here's the steps I took.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Do a Transformation Load on the Excel sheet to get rid of duplicate blanks. Leave one blank row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Get the Row numbers where there are blanks. &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;GetNullsTable:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOAD Row where isnull(A);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOAD A,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; RowNo() as Row&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Resident CrossTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Excel sheet You will get a value 2,7, etc. after the cross table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use the values of Row to create a range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableRowRanges:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Load Peek(Row)+1as StartOfRange,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Row-1 as EndOfRange&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Resident GetNullsTable;&lt;/P&gt;&lt;P&gt;This gives you a table where each row in the TableRowRanges table is a range of Rows to load for each table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Use a loop function to loop through all the rows in the TableRowRanges table and use the values of StartOfRange and EndOfRange to set what rows to load using Where clauses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last step is going to take some coding work that I can't put together quickly tonight. This explanation is intended to give you a good starting place but not necessarily a complete code solution. Let me know if you have any questions and I'll do my best to answer. If it's helpful, please mark it as such. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2014 04:13:13 GMT</pubDate>
    <dc:creator>trey_bayne</dc:creator>
    <dc:date>2014-04-23T04:13:13Z</dc:date>
    <item>
      <title>extract multiple tables from a single sheet</title>
      <link>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601849#M680088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i get monthly reports from the security departments where there are a few tables in the sheet. the column names are consistent but the amount of data are not.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but the thing about the tables is that it can start anywhere and i cannot define a cell... i know how to get data when they are laid horizontally using textbetween, right, left etc but is there anyway to get the data the same way when they are arranged horizontally.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ive attached a sheet of sample data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;thank you in advance&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Akhila de Costa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 08:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601849#M680088</guid>
      <dc:creator />
      <dc:date>2014-04-22T08:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: extract multiple tables from a single sheet</title>
      <link>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601850#M680089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Akhila,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i understand, that you dont know how many rows you have in each table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i think, you know:&lt;/P&gt;&lt;P&gt;- what tables should be in your spreadsheet,&lt;/P&gt;&lt;P&gt;- what are column names for each table&lt;/P&gt;&lt;P&gt;- in which excel column (A,B,C, etc) your business column (Doman/Virus, ect) is localised&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 10:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601850#M680089</guid>
      <dc:creator />
      <dc:date>2014-04-22T10:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: extract multiple tables from a single sheet</title>
      <link>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601851#M680090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you can&amp;nbsp; load mutiple tables using below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;from xls where rowno()&amp;lt;=10&amp;nbsp; ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ///( for example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from xls where rowno()&amp;gt;10 and rowno()&amp;lt;=20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;from xls where rownno()&amp;gt;20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can take your rownos in xls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if your row increase in any of table after update will not come into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i suggest you to take them in differents worksheets&lt;/P&gt;&lt;P&gt;and load normally&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 10:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601851#M680090</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-04-22T10:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: extract multiple tables from a single sheet</title>
      <link>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601852#M680092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, correct to the point&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 03:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601852#M680092</guid>
      <dc:creator />
      <dc:date>2014-04-23T03:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: extract multiple tables from a single sheet</title>
      <link>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601853#M680095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yea, i amn aware of that method but the thing is im not the one making these reports and this is the format they send it in... so i have a figure out away to get it done&lt;/P&gt;&lt;P&gt;thankyou anyway &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 03:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601853#M680095</guid>
      <dc:creator />
      <dc:date>2014-04-23T03:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: extract multiple tables from a single sheet</title>
      <link>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601854#M680097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not an easy task but I've had to do something very similar in the past. Here's the steps I took.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Do a Transformation Load on the Excel sheet to get rid of duplicate blanks. Leave one blank row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Get the Row numbers where there are blanks. &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;GetNullsTable:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOAD Row where isnull(A);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOAD A,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; RowNo() as Row&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Resident CrossTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Excel sheet You will get a value 2,7, etc. after the cross table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use the values of Row to create a range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableRowRanges:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Load Peek(Row)+1as StartOfRange,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Row-1 as EndOfRange&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Resident GetNullsTable;&lt;/P&gt;&lt;P&gt;This gives you a table where each row in the TableRowRanges table is a range of Rows to load for each table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Use a loop function to loop through all the rows in the TableRowRanges table and use the values of StartOfRange and EndOfRange to set what rows to load using Where clauses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last step is going to take some coding work that I can't put together quickly tonight. This explanation is intended to give you a good starting place but not necessarily a complete code solution. Let me know if you have any questions and I'll do my best to answer. If it's helpful, please mark it as such. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 04:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601854#M680097</guid>
      <dc:creator>trey_bayne</dc:creator>
      <dc:date>2014-04-23T04:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: extract multiple tables from a single sheet</title>
      <link>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601855#M680099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great, ill try it out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 04:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-multiple-tables-from-a-single-sheet/m-p/601855#M680099</guid>
      <dc:creator />
      <dc:date>2014-04-23T04:16:00Z</dc:date>
    </item>
  </channel>
</rss>

