<?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: Split a single excel column in to multiple columns based on condition! in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Split-a-single-excel-column-in-to-multiple-columns-based-on/m-p/2277031#M52932</link>
    <description>Many Thanx Shong,
&lt;BR /&gt;It works and hopefully it will help the rest who have a similar issue.
&lt;BR /&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Biruhale</description>
    <pubDate>Wed, 26 Sep 2012 18:34:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-09-26T18:34:49Z</dc:date>
    <item>
      <title>Split a single excel column in to multiple columns based on condition!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-a-single-excel-column-in-to-multiple-columns-based-on/m-p/2277029#M52930</link>
      <description>Hello I am having an issue in spliting an excel column into columns and attached an example and any help is apreciated.&lt;BR /&gt;N.B -Consider the empty cells are there to separate countries.&lt;BR /&gt;      - also Country and date are in one cell.&lt;BR /&gt;      -some countries have one link the other have two or three links.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Biruh&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Biruh</description>
      <pubDate>Mon, 24 Sep 2012 15:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-a-single-excel-column-in-to-multiple-columns-based-on/m-p/2277029#M52930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-24T15:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Split a single excel column in to multiple columns based on condition!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-a-single-excel-column-in-to-multiple-columns-based-on/m-p/2277030#M52931</link>
      <description>Hi Biruh 
&lt;BR /&gt;Below is an example job to implement your request. 
&lt;BR /&gt;start code on tJavaFlex: 
&lt;BR /&gt; 
&lt;PRE&gt;// start part of your Java code&lt;BR /&gt;int index1=0;&lt;BR /&gt;int index2=0;&lt;BR /&gt;String country="";&lt;BR /&gt;String date="";&lt;/PRE&gt; 
&lt;BR /&gt;main code on tJavaFlex: 
&lt;BR /&gt; 
&lt;PRE&gt;// here is the main part of the component,&lt;BR /&gt;// a piece of code executed in the row&lt;BR /&gt;// loop&lt;BR /&gt;index1=out1.newColumn.indexOf("(");&lt;BR /&gt;index2=out1.newColumn.indexOf(")");&lt;BR /&gt;country=out1.newColumn.substring(0,index1);&lt;BR /&gt;date=out1.newColumn.substring((index1+1),(index2-1));&lt;BR /&gt;globalMap.put("country",country);&lt;BR /&gt;globalMap.put("date",date);&lt;/PRE&gt; 
&lt;BR /&gt;Result printed on the console: 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job forum26293 at 09:29 26/09/2012.&lt;BR /&gt;&lt;BR /&gt; connecting to socket on port 3337&lt;BR /&gt; connected&lt;BR /&gt;.----------+---------+------------------------.&lt;BR /&gt;|                  tLogRow_1                  |&lt;BR /&gt;|=---------+---------+-----------------------=|&lt;BR /&gt;|Country   |Date     |link                    |&lt;BR /&gt;|=---------+---------+-----------------------=|&lt;BR /&gt;|AREGENTINA|10/10/201|http://wwww.messi.com   |&lt;BR /&gt;|AREGENTINA|10/10/201|http://wwww.maradona.com|&lt;BR /&gt;|ITALY     |10/8/199 |http://www.baggio.com   |&lt;BR /&gt;|ITALY     |10/8/199 |http://www.maldini.com  |&lt;BR /&gt;|ENGLAND   |4/4/199  |http://www.beckham.com  |&lt;BR /&gt;|FRANCE    |3/4/199  |http://www.cantona.com  |&lt;BR /&gt;'----------+---------+------------------------'&lt;BR /&gt; disconnected&lt;BR /&gt;Job forum26293 ended at 09:29 26/09/2012. &lt;/PRE&gt; 
&lt;BR /&gt;For more details, please see my screenshots.</description>
      <pubDate>Wed, 26 Sep 2012 02:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-a-single-excel-column-in-to-multiple-columns-based-on/m-p/2277030#M52931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-26T02:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Split a single excel column in to multiple columns based on condition!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split-a-single-excel-column-in-to-multiple-columns-based-on/m-p/2277031#M52932</link>
      <description>Many Thanx Shong,
&lt;BR /&gt;It works and hopefully it will help the rest who have a similar issue.
&lt;BR /&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Biruhale</description>
      <pubDate>Wed, 26 Sep 2012 18:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split-a-single-excel-column-in-to-multiple-columns-based-on/m-p/2277031#M52932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-26T18:34:49Z</dc:date>
    </item>
  </channel>
</rss>

