<?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 Import data from multiple .xls and .xlsx files in same folder in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Import-data-from-multiple-xls-and-xlsx-files-in-same-folder/m-p/225092#M77435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bruce&lt;/P&gt;&lt;P&gt;I followed your advise + added the following on the second pass where .xlsx files is loaded:&lt;/P&gt;&lt;P&gt;1. Started script with &lt;B&gt;set&lt;/B&gt; ErrorMode=0;&lt;/P&gt;&lt;P&gt;The reason for doing this is that otherwise error will be given if .xls and .xlsx files in the same folder (when it starts reading script it will bounce when the *.xls loops to a .xlsx file)&lt;/P&gt;&lt;P&gt;2. Replace "biff" in FROM lines with "ooxml"&lt;/P&gt;&lt;P&gt;3. Replace "embedded labels, header is 2" with "embedded labels, header is 3"&lt;/P&gt;&lt;P&gt;4. Remove $ sign next to sheet names&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, one of the load statements on second pass will be:&lt;/P&gt;&lt;P&gt;Concatenate ("Main")&lt;BR /&gt; LOAD&lt;BR /&gt; Template_No,&lt;BR /&gt; Template_Name,&lt;BR /&gt; Template_Owner,&lt;BR /&gt; Template_CreatedOn,&lt;BR /&gt; Template_LastModifiedOn,&lt;BR /&gt; Template_Version,&lt;BR /&gt; Template_JobFamily,&lt;BR /&gt; Template_JobPosition,&lt;BR /&gt; Employee_Surname,&lt;BR /&gt; Employee_Name,&lt;BR /&gt; Employee_StartDate,&lt;BR /&gt; Employee_Unit,&lt;BR /&gt; Doc_DateTimeFileStarted,&lt;BR /&gt; Doc_SubmitID,&lt;BR /&gt; Doc_SavedPath,&lt;BR /&gt; Doc_WindowsVersion,&lt;BR /&gt; Doc_ExcelVersion,&lt;BR /&gt; Template_ItemNo,&lt;BR /&gt; Trans_Type,&lt;BR /&gt; Trans_Category,&lt;BR /&gt; Trans_Item,&lt;BR /&gt; Trans_AssessedBy,&lt;BR /&gt; Month1_Status,&lt;BR /&gt; Month1_DateAssessed,&lt;BR /&gt; Month1_Comment,&lt;BR /&gt; Month2_Status,&lt;BR /&gt; Month2_DateAssessed,&lt;BR /&gt; Month2_Comment,&lt;BR /&gt; Month3_Status,&lt;BR /&gt; Month3_DateAssessed,&lt;BR /&gt; Month3_Comment&lt;BR /&gt; FROM&lt;BR /&gt; &lt;C&gt;&lt;BR /&gt; (ooxml, embedded labels, header is 3 lines, table is General)&lt;BR /&gt; WHERE(not IsNull(Template_ItemNo));&lt;/C&gt;&lt;/P&gt;&lt;P&gt;remember the "Set ErrorMode=0;" at top of script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Apr 2010 21:02:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-26T21:02:56Z</dc:date>
    <item>
      <title>Import data from multiple .xls and .xlsx files in same folder</title>
      <link>https://community.qlik.com/t5/QlikView/Import-data-from-multiple-xls-and-xlsx-files-in-same-folder/m-p/225090#M77433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I would appreciate some help on the following question:&lt;/P&gt;&lt;P&gt;I am importing data from a number of Excel files from a folder using the ..\*.xls] concurrently. The files (and sheets) content is exactly the same&lt;/P&gt;&lt;P&gt;There are however also .xlsx files (Excel 2007 format) files in the folder, but the script do not allow importing these format files together with the .xls files.&lt;/P&gt;&lt;P&gt;Is there a way (possible with a "if" statement) how I can import both file formats.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;My full script is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Template_No,&lt;/P&gt;&lt;P&gt;Template_Name,&lt;/P&gt;&lt;P&gt;Template_Owner,&lt;/P&gt;&lt;P&gt;Template_CreatedOn,&lt;/P&gt;&lt;P&gt;Template_LastModifiedOn,&lt;/P&gt;&lt;P&gt;Template_Version,&lt;/P&gt;&lt;P&gt;Template_JobFamily,&lt;/P&gt;&lt;P&gt;Template_JobPosition,&lt;/P&gt;&lt;P&gt;Employee_Surname,&lt;/P&gt;&lt;P&gt;Employee_Name,&lt;/P&gt;&lt;P&gt;Employee_StartDate,&lt;/P&gt;&lt;P&gt;Employee_Unit,&lt;/P&gt;&lt;P&gt;Doc_DateTimeFileStarted,&lt;/P&gt;&lt;P&gt;Doc_SubmitID,&lt;/P&gt;&lt;P&gt;Doc_SavedPath,&lt;/P&gt;&lt;P&gt;Doc_WindowsVersion,&lt;/P&gt;&lt;P&gt;Doc_ExcelVersion,&lt;/P&gt;&lt;P&gt;Template_ItemNo,&lt;/P&gt;&lt;P&gt;Trans_Type,&lt;/P&gt;&lt;P&gt;Trans_Category,&lt;/P&gt;&lt;P&gt;Trans_Item,&lt;/P&gt;&lt;P&gt;Trans_AssessedBy,&lt;/P&gt;&lt;P&gt;Month1_Status,&lt;/P&gt;&lt;P&gt;Month1_DateAssessed,&lt;/P&gt;&lt;P&gt;Month1_Comment,&lt;/P&gt;&lt;P&gt;Month2_Status,&lt;/P&gt;&lt;P&gt;Month2_DateAssessed,&lt;/P&gt;&lt;P&gt;Month2_Comment,&lt;/P&gt;&lt;P&gt;Month3_Status,&lt;/P&gt;&lt;P&gt;Month3_DateAssessed,&lt;/P&gt;&lt;P&gt;Month3_Comment&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, header is 2 lines, table is General$)&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;(not IsNull(Template_ItemNo));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;Concatenate ("Main")&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Template_No,&lt;/P&gt;&lt;P&gt;Template_Name,&lt;/P&gt;&lt;P&gt;Template_Owner,&lt;/P&gt;&lt;P&gt;Template_CreatedOn,&lt;/P&gt;&lt;P&gt;Template_LastModifiedOn,&lt;/P&gt;&lt;P&gt;Template_Version,&lt;/P&gt;&lt;P&gt;Template_JobFamily,&lt;/P&gt;&lt;P&gt;Template_JobPosition,&lt;/P&gt;&lt;P&gt;Employee_Surname,&lt;/P&gt;&lt;P&gt;Employee_Name,&lt;/P&gt;&lt;P&gt;Employee_StartDate,&lt;/P&gt;&lt;P&gt;Employee_Unit,&lt;/P&gt;&lt;P&gt;Doc_DateTimeFileStarted,&lt;/P&gt;&lt;P&gt;Doc_SubmitID,&lt;/P&gt;&lt;P&gt;Doc_SavedPath,&lt;/P&gt;&lt;P&gt;Doc_WindowsVersion,&lt;/P&gt;&lt;P&gt;Doc_ExcelVersion,&lt;/P&gt;&lt;P&gt;Template_ItemNo,&lt;/P&gt;&lt;P&gt;Trans_Type,&lt;/P&gt;&lt;P&gt;Trans_Category,&lt;/P&gt;&lt;P&gt;Trans_Item,&lt;/P&gt;&lt;P&gt;Trans_AssessedBy,&lt;/P&gt;&lt;P&gt;Month1_Status,&lt;/P&gt;&lt;P&gt;Month1_DateAssessed,&lt;/P&gt;&lt;P&gt;Month1_Comment,&lt;/P&gt;&lt;P&gt;Month2_Status,&lt;/P&gt;&lt;P&gt;Month2_DateAssessed,&lt;/P&gt;&lt;P&gt;Month2_Comment,&lt;/P&gt;&lt;P&gt;Month3_Status,&lt;/P&gt;&lt;P&gt;Month3_DateAssessed,&lt;/P&gt;&lt;P&gt;Month3_Comment&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, header is 2 lines, table is Occupation$)&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;(not IsNull(Template_ItemNo));&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;Concatenate ("Main")&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Template_No,&lt;/P&gt;&lt;P&gt;Template_Name,&lt;/P&gt;&lt;P&gt;Template_Owner,&lt;/P&gt;&lt;P&gt;Template_CreatedOn,&lt;/P&gt;&lt;P&gt;Template_LastModifiedOn,&lt;/P&gt;&lt;P&gt;Template_Version,&lt;/P&gt;&lt;P&gt;Template_JobFamily,&lt;/P&gt;&lt;P&gt;Template_JobPosition,&lt;/P&gt;&lt;P&gt;Employee_Surname,&lt;/P&gt;&lt;P&gt;Employee_Name,&lt;/P&gt;&lt;P&gt;Employee_StartDate,&lt;/P&gt;&lt;P&gt;Employee_Unit,&lt;/P&gt;&lt;P&gt;Doc_DateTimeFileStarted,&lt;/P&gt;&lt;P&gt;Doc_SubmitID,&lt;/P&gt;&lt;P&gt;Doc_SavedPath,&lt;/P&gt;&lt;P&gt;Doc_WindowsVersion,&lt;/P&gt;&lt;P&gt;Doc_ExcelVersion,&lt;/P&gt;&lt;P&gt;Template_ItemNo,&lt;/P&gt;&lt;P&gt;Trans_Type,&lt;/P&gt;&lt;P&gt;Trans_Category,&lt;/P&gt;&lt;P&gt;Trans_Item,&lt;/P&gt;&lt;P&gt;Trans_AssessedBy,&lt;/P&gt;&lt;P&gt;Month1_Status,&lt;/P&gt;&lt;P&gt;Month1_DateAssessed,&lt;/P&gt;&lt;P&gt;Month1_Comment,&lt;/P&gt;&lt;P&gt;Month2_Status,&lt;/P&gt;&lt;P&gt;Month2_DateAssessed,&lt;/P&gt;&lt;P&gt;Month2_Comment,&lt;/P&gt;&lt;P&gt;Month3_Status,&lt;/P&gt;&lt;P&gt;Month3_DateAssessed,&lt;/P&gt;&lt;P&gt;Month3_Comment&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, header is 2 lines, table is [Level 1 - Technical Basic$])&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;(not IsNull(Template_ItemNo));&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;Concatenate ("Main")&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Template_No,&lt;/P&gt;&lt;P&gt;Template_Name,&lt;/P&gt;&lt;P&gt;Template_Owner,&lt;/P&gt;&lt;P&gt;Template_CreatedOn,&lt;/P&gt;&lt;P&gt;Template_LastModifiedOn,&lt;/P&gt;&lt;P&gt;Template_Version,&lt;/P&gt;&lt;P&gt;Template_JobFamily,&lt;/P&gt;&lt;P&gt;Template_JobPosition,&lt;/P&gt;&lt;P&gt;Employee_Surname,&lt;/P&gt;&lt;P&gt;Employee_Name,&lt;/P&gt;&lt;P&gt;Employee_StartDate,&lt;/P&gt;&lt;P&gt;Employee_Unit,&lt;/P&gt;&lt;P&gt;Doc_DateTimeFileStarted,&lt;/P&gt;&lt;P&gt;Doc_SubmitID,&lt;/P&gt;&lt;P&gt;Doc_SavedPath,&lt;/P&gt;&lt;P&gt;Doc_WindowsVersion,&lt;/P&gt;&lt;P&gt;Doc_ExcelVersion,&lt;/P&gt;&lt;P&gt;Template_ItemNo,&lt;/P&gt;&lt;P&gt;Trans_Type,&lt;/P&gt;&lt;P&gt;Trans_Category,&lt;/P&gt;&lt;P&gt;Trans_Item,&lt;/P&gt;&lt;P&gt;Trans_AssessedBy,&lt;/P&gt;&lt;P&gt;Month1_Status,&lt;/P&gt;&lt;P&gt;Month1_DateAssessed,&lt;/P&gt;&lt;P&gt;Month1_Comment,&lt;/P&gt;&lt;P&gt;Month2_Status,&lt;/P&gt;&lt;P&gt;Month2_DateAssessed,&lt;/P&gt;&lt;P&gt;Month2_Comment,&lt;/P&gt;&lt;P&gt;Month3_Status,&lt;/P&gt;&lt;P&gt;Month3_DateAssessed,&lt;/P&gt;&lt;P&gt;Month3_Comment&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, header is 2 lines, table is [Level 2 - Technical Competence$])&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;(not IsNull(Template_ItemNo));&lt;/P&gt;&lt;P&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;Concatenate ("Main")&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Template_No,&lt;/P&gt;&lt;P&gt;Template_Name,&lt;/P&gt;&lt;P&gt;Template_Owner,&lt;/P&gt;&lt;P&gt;Template_CreatedOn,&lt;/P&gt;&lt;P&gt;Template_LastModifiedOn,&lt;/P&gt;&lt;P&gt;Template_Version,&lt;/P&gt;&lt;P&gt;Template_JobFamily,&lt;/P&gt;&lt;P&gt;Template_JobPosition,&lt;/P&gt;&lt;P&gt;Employee_Surname,&lt;/P&gt;&lt;P&gt;Employee_Name,&lt;/P&gt;&lt;P&gt;Employee_StartDate,&lt;/P&gt;&lt;P&gt;Employee_Unit,&lt;/P&gt;&lt;P&gt;Doc_DateTimeFileStarted,&lt;/P&gt;&lt;P&gt;Doc_SubmitID,&lt;/P&gt;&lt;P&gt;Doc_SavedPath,&lt;/P&gt;&lt;P&gt;Doc_WindowsVersion,&lt;/P&gt;&lt;P&gt;Doc_ExcelVersion,&lt;/P&gt;&lt;P&gt;Template_ItemNo,&lt;/P&gt;&lt;P&gt;Trans_Type,&lt;/P&gt;&lt;P&gt;Trans_Category,&lt;/P&gt;&lt;P&gt;Trans_Item,&lt;/P&gt;&lt;P&gt;Trans_AssessedBy,&lt;/P&gt;&lt;P&gt;Month1_Status,&lt;/P&gt;&lt;P&gt;Month1_DateAssessed,&lt;/P&gt;&lt;P&gt;Month1_Comment,&lt;/P&gt;&lt;P&gt;Month2_Status,&lt;/P&gt;&lt;P&gt;Month2_DateAssessed,&lt;/P&gt;&lt;P&gt;Month2_Comment,&lt;/P&gt;&lt;P&gt;Month3_Status,&lt;/P&gt;&lt;P&gt;Month3_DateAssessed,&lt;/P&gt;&lt;P&gt;Month3_Comment&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, header is 2 lines, table is [Level 3 - Technical Advanced$])&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;(not IsNull(Template_ItemNo));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 18:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-data-from-multiple-xls-and-xlsx-files-in-same-folder/m-p/225090#M77433</guid>
      <dc:creator />
      <dc:date>2010-04-26T18:57:29Z</dc:date>
    </item>
    <item>
      <title>Import data from multiple .xls and .xlsx files in same folder</title>
      <link>https://community.qlik.com/t5/QlikView/Import-data-from-multiple-xls-and-xlsx-files-in-same-folder/m-p/225091#M77434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simpliest way would to do in 2 passes ; once for the xls and once for the xlsx. The 2 formats are different (at least to QV) so you need 2 load starements.&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 19:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-data-from-multiple-xls-and-xlsx-files-in-same-folder/m-p/225091#M77434</guid>
      <dc:creator />
      <dc:date>2010-04-26T19:12:30Z</dc:date>
    </item>
    <item>
      <title>Import data from multiple .xls and .xlsx files in same folder</title>
      <link>https://community.qlik.com/t5/QlikView/Import-data-from-multiple-xls-and-xlsx-files-in-same-folder/m-p/225092#M77435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bruce&lt;/P&gt;&lt;P&gt;I followed your advise + added the following on the second pass where .xlsx files is loaded:&lt;/P&gt;&lt;P&gt;1. Started script with &lt;B&gt;set&lt;/B&gt; ErrorMode=0;&lt;/P&gt;&lt;P&gt;The reason for doing this is that otherwise error will be given if .xls and .xlsx files in the same folder (when it starts reading script it will bounce when the *.xls loops to a .xlsx file)&lt;/P&gt;&lt;P&gt;2. Replace "biff" in FROM lines with "ooxml"&lt;/P&gt;&lt;P&gt;3. Replace "embedded labels, header is 2" with "embedded labels, header is 3"&lt;/P&gt;&lt;P&gt;4. Remove $ sign next to sheet names&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, one of the load statements on second pass will be:&lt;/P&gt;&lt;P&gt;Concatenate ("Main")&lt;BR /&gt; LOAD&lt;BR /&gt; Template_No,&lt;BR /&gt; Template_Name,&lt;BR /&gt; Template_Owner,&lt;BR /&gt; Template_CreatedOn,&lt;BR /&gt; Template_LastModifiedOn,&lt;BR /&gt; Template_Version,&lt;BR /&gt; Template_JobFamily,&lt;BR /&gt; Template_JobPosition,&lt;BR /&gt; Employee_Surname,&lt;BR /&gt; Employee_Name,&lt;BR /&gt; Employee_StartDate,&lt;BR /&gt; Employee_Unit,&lt;BR /&gt; Doc_DateTimeFileStarted,&lt;BR /&gt; Doc_SubmitID,&lt;BR /&gt; Doc_SavedPath,&lt;BR /&gt; Doc_WindowsVersion,&lt;BR /&gt; Doc_ExcelVersion,&lt;BR /&gt; Template_ItemNo,&lt;BR /&gt; Trans_Type,&lt;BR /&gt; Trans_Category,&lt;BR /&gt; Trans_Item,&lt;BR /&gt; Trans_AssessedBy,&lt;BR /&gt; Month1_Status,&lt;BR /&gt; Month1_DateAssessed,&lt;BR /&gt; Month1_Comment,&lt;BR /&gt; Month2_Status,&lt;BR /&gt; Month2_DateAssessed,&lt;BR /&gt; Month2_Comment,&lt;BR /&gt; Month3_Status,&lt;BR /&gt; Month3_DateAssessed,&lt;BR /&gt; Month3_Comment&lt;BR /&gt; FROM&lt;BR /&gt; &lt;C&gt;&lt;BR /&gt; (ooxml, embedded labels, header is 3 lines, table is General)&lt;BR /&gt; WHERE(not IsNull(Template_ItemNo));&lt;/C&gt;&lt;/P&gt;&lt;P&gt;remember the "Set ErrorMode=0;" at top of script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 21:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-data-from-multiple-xls-and-xlsx-files-in-same-folder/m-p/225092#M77435</guid>
      <dc:creator />
      <dc:date>2010-04-26T21:02:56Z</dc:date>
    </item>
  </channel>
</rss>

