<?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 Cols utilities: how to let &amp;lt;text to columns&amp;gt; take care of empty data? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Cols-utilities-how-to-let-lt-text-to-columns-gt-take-care-of/m-p/254339#M49931</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I got a problem when using Cols-&amp;gt;utilities-&amp;gt;text to columns.&lt;/P&gt;&lt;P&gt;For example I have data 1, ,2,3, after doing text to columns, I want to get {1},{ },{2},{3} these four columns, while JMP gives me {1},{2},{3} as below screen shot.&lt;/P&gt;&lt;P&gt;Excel can do this with &amp;lt;Text to Columns&amp;gt;&lt;/P&gt;&lt;P&gt;Is there an solution out there in JMP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result I got from JMP:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steven_gong_1-1585200437035.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22567i3B1AA1F554F73EA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steven_gong_1-1585200437035.png" alt="steven_gong_1-1585200437035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;what I expected:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steven_gong_2-1585200470456.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22568i565B0A486CB20A72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steven_gong_2-1585200470456.png" alt="steven_gong_2-1585200470456.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 05:29:21 GMT</pubDate>
    <dc:creator>steven_gong</dc:creator>
    <dc:date>2020-03-26T05:29:21Z</dc:date>
    <item>
      <title>Cols utilities: how to let &lt;text to columns&gt; take care of empty data?</title>
      <link>https://community.jmp.com/t5/Discussions/Cols-utilities-how-to-let-lt-text-to-columns-gt-take-care-of/m-p/254339#M49931</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I got a problem when using Cols-&amp;gt;utilities-&amp;gt;text to columns.&lt;/P&gt;&lt;P&gt;For example I have data 1, ,2,3, after doing text to columns, I want to get {1},{ },{2},{3} these four columns, while JMP gives me {1},{2},{3} as below screen shot.&lt;/P&gt;&lt;P&gt;Excel can do this with &amp;lt;Text to Columns&amp;gt;&lt;/P&gt;&lt;P&gt;Is there an solution out there in JMP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result I got from JMP:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steven_gong_1-1585200437035.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22567i3B1AA1F554F73EA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steven_gong_1-1585200437035.png" alt="steven_gong_1-1585200437035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;what I expected:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steven_gong_2-1585200470456.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22568i565B0A486CB20A72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steven_gong_2-1585200470456.png" alt="steven_gong_2-1585200470456.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 05:29:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cols-utilities-how-to-let-lt-text-to-columns-gt-take-care-of/m-p/254339#M49931</guid>
      <dc:creator>steven_gong</dc:creator>
      <dc:date>2020-03-26T05:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cols utilities: how to let &lt;text to columns&gt; take care of empty data?</title>
      <link>https://community.jmp.com/t5/Discussions/Cols-utilities-how-to-let-lt-text-to-columns-gt-take-care-of/m-p/254346#M49933</link>
      <description>&lt;P&gt;I am not aware of doing what you want with the Text to Columns() function, but here is a simple function that will do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = New Table( "Example",
	Add Rows( 3 ),
	New Column( "string",
		Character,
		"Nominal",
		Set Values( {"1,2,3", "1,2,3,4", "1,,3,4"} ),
		Set Display Width( 44 )
	)
);

newTexttoColumns = Function({dt,x},{defaultlocal},
start = N Cols( dt );
For( theRow = 1, theRow &amp;lt;= N Rows( dt ), theRow++,
	theWord = "";
	wordCnt = 1;
	For( i = 1, i &amp;lt;= Length( Column( x )[theRow] ), i++,
	
		If( Substr( Column( x )[theRow], i, 1 ) == "," | i == Length( Column( x )[theRow] ),
			If(i == Length( Column( x )[theRow]),theWord = theWord || Substr( Column( x )[theRow], i, 1 ));
			If( N Col( dt ) &amp;lt; start + wordCnt,
				dt &amp;lt;&amp;lt; New Column( "", character )
			);
			Column( start + wordCnt )[theRow] = theWord;
			wordCnt++;
			theWord = "";
		,
			theWord = theWord || Substr( Column( x )[theRow], i, 1 )
		)
	
	);
);
0;
);

return = newTexttoColumns(dt,"string");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Mar 2020 06:35:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cols-utilities-how-to-let-lt-text-to-columns-gt-take-care-of/m-p/254346#M49933</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-03-26T06:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cols utilities: how to let &lt;text to columns&gt; take care of empty data?</title>
      <link>https://community.jmp.com/t5/Discussions/Cols-utilities-how-to-let-lt-text-to-columns-gt-take-care-of/m-p/254730#M50019</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;What a speed to deliver such a cool script!&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, I think JMP may need to consider to enhance the function of &amp;lt;text to columns&amp;gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 02:41:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cols-utilities-how-to-let-lt-text-to-columns-gt-take-care-of/m-p/254730#M50019</guid>
      <dc:creator>steven_gong</dc:creator>
      <dc:date>2020-03-28T02:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cols utilities: how to let &lt;text to columns&gt; take care of empty data?</title>
      <link>https://community.jmp.com/t5/Discussions/Cols-utilities-how-to-let-lt-text-to-columns-gt-take-care-of/m-p/254731#M50020</link>
      <description>&lt;P&gt;If you think JMP should have the enhancement, please add it to the JMP Wish List&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 02:43:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cols-utilities-how-to-let-lt-text-to-columns-gt-take-care-of/m-p/254731#M50020</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-03-28T02:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cols utilities: how to let &lt;text to columns&gt; take care of empty data?</title>
      <link>https://community.jmp.com/t5/Discussions/Cols-utilities-how-to-let-lt-text-to-columns-gt-take-care-of/m-p/582374#M78890</link>
      <description>&lt;P&gt;I recently had the same issue and wondered if a checkbox can be added to the tool:&lt;BR /&gt;Then the user can decide on his own if he wants to enable/disable the feature to treat multiple separator character as a single one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Text To Columns: handle missing data correctly" uid="582008" url="https://community.jmp.com/t5/JMP-Wish-List/Text-To-Columns-handle-missing-data-correctly/m-p/582008#U582008" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 20:47:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Cols-utilities-how-to-let-lt-text-to-columns-gt-take-care-of/m-p/582374#M78890</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-27T20:47:20Z</dc:date>
    </item>
  </channel>
</rss>

