<?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 Read from excel replace the value then store it back in same excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Read-from-excel-replace-the-value-then-store-it-back-in-same/m-p/491956#M183907</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;I have couple of excel in a folder and in all the excels I have field called PATH which contain some location.Based on the value in one of the field of another other table I want to replace the value of PATH field in the excel sheet and save it with the same name.For example if the value of the field is LEAVE then I will be replace the value as shown below if not location will remain same it will not be replaced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(i,e If the value in a path is C:/Desktop/Folder1/Folder2 i want to replace it to D:/Desktop/Folder1/Folder3 if the value of the PATH is LEAVE, if not PATH will remain same C:/Desktop/Folder1/Folder2).I am aware that I can use REPLACE function to replace the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace('Path','C:/Desktop/Folder1/','D:/Desktop/Folder1') returns 'D:/Desktop/Folder1/Folder3'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I would say that all the excel is in the format "ExcelName_YYYYDD".So after reading and replace the value in excel I need to store it back with same name only. For example if I have below files I need to save it with the same name only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExcelName_201301.xls&lt;/P&gt;&lt;P&gt;ExcelName_201302.xls&lt;/P&gt;&lt;P&gt;ExcelName_201303.xls&lt;/P&gt;&lt;P&gt;ExcelName_201304.xls&lt;/P&gt;&lt;P&gt;ExcelName_201305.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope my requirement is understand if not please let me know. Hope some one can help me on this soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to achieve above requirement without the use of Macro.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;qvforum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jul 2013 17:26:49 GMT</pubDate>
    <dc:creator>qlikviewforum</dc:creator>
    <dc:date>2013-07-17T17:26:49Z</dc:date>
    <item>
      <title>Read from excel replace the value then store it back in same excel</title>
      <link>https://community.qlik.com/t5/QlikView/Read-from-excel-replace-the-value-then-store-it-back-in-same/m-p/491956#M183907</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;I have couple of excel in a folder and in all the excels I have field called PATH which contain some location.Based on the value in one of the field of another other table I want to replace the value of PATH field in the excel sheet and save it with the same name.For example if the value of the field is LEAVE then I will be replace the value as shown below if not location will remain same it will not be replaced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(i,e If the value in a path is C:/Desktop/Folder1/Folder2 i want to replace it to D:/Desktop/Folder1/Folder3 if the value of the PATH is LEAVE, if not PATH will remain same C:/Desktop/Folder1/Folder2).I am aware that I can use REPLACE function to replace the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace('Path','C:/Desktop/Folder1/','D:/Desktop/Folder1') returns 'D:/Desktop/Folder1/Folder3'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I would say that all the excel is in the format "ExcelName_YYYYDD".So after reading and replace the value in excel I need to store it back with same name only. For example if I have below files I need to save it with the same name only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExcelName_201301.xls&lt;/P&gt;&lt;P&gt;ExcelName_201302.xls&lt;/P&gt;&lt;P&gt;ExcelName_201303.xls&lt;/P&gt;&lt;P&gt;ExcelName_201304.xls&lt;/P&gt;&lt;P&gt;ExcelName_201305.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope my requirement is understand if not please let me know. Hope some one can help me on this soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to achieve above requirement without the use of Macro.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;qvforum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 17:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-from-excel-replace-the-value-then-store-it-back-in-same/m-p/491956#M183907</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-07-17T17:26:49Z</dc:date>
    </item>
  </channel>
</rss>

