<?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: Question about &amp;quot;word&amp;quot; formula, purpose to split one character and get key shorten word in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324855#M57423</link>
    <description>&lt;P&gt;thanks sir, it works well if the name follow same rule.&lt;/P&gt;&lt;P&gt;but if one row content is changed as unexpected, for example "M3&lt;FONT size="5" color="#FF0000"&gt;L22DD1&lt;/FONT&gt;X10_I35_O55", what I want is short name "X10_I35_O55", do have better solution.&lt;/P&gt;&lt;P&gt;then keep use "&lt;FONT size="5" color="#ff0000"&gt;L22DD1"&lt;/FONT&gt; &lt;FONT size="4" color="#000000"&gt;&lt;FONT size="5" color="#ff0000"&gt;&amp;nbsp;&lt;/FONT&gt;separate&lt;FONT size="5" color="#ff0000"&gt;&lt;FONT size="4" color="#000000"&gt;&amp;nbsp;the word to two parts and get the last one.&amp;nbsp;M3&lt;FONT size="5" color="#FF0000"&gt;L22DD1&lt;/FONT&gt;X10_I35_O55--&amp;gt;X10_I35_O55?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 03:48:37 GMT</pubDate>
    <dc:creator>qspringleaf</dc:creator>
    <dc:date>2020-10-22T03:48:37Z</dc:date>
    <item>
      <title>Question about "word" formula, purpose to split one character and get key shorten word</title>
      <link>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324835#M57421</link>
      <description>&lt;P&gt;I have one table with one column, name is "Batch ID", I want to use one script to generate one column, name is "Short ID", formula use Word( 2, :Batch ID, "L22DD1" ), only want to get 2nd word, for example, E3&lt;FONT size="5" color="#FF6600"&gt;L22DD1&lt;/FONT&gt;K27---&amp;gt;K27, but how come after run JSL, its outcome is K2 not K27? kindly help to sugget whether have other solutions if it not work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Batch ID&lt;/TD&gt;&lt;TD&gt;Short ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M3L22DD1K2&lt;/TD&gt;&lt;TD&gt;K2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E3L22DD1K45&lt;/TD&gt;&lt;TD&gt;K45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M3L22DD1K41&lt;/TD&gt;&lt;TD&gt;K4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E3L22DD1K27&lt;/TD&gt;&lt;TD&gt;K27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M3L22DD1K3&lt;/TD&gt;&lt;TD&gt;K3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M3L22DD1K42&lt;/TD&gt;&lt;TD&gt;K42&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M3L22DD1K43&lt;/TD&gt;&lt;TD&gt;K43&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M3L22DD1K44&lt;/TD&gt;&lt;TD&gt;K44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M3L22DD1K45&lt;/TD&gt;&lt;TD&gt;K45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M3L22DD1K4&lt;/TD&gt;&lt;TD&gt;K4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M3L22DD1K5&lt;/TD&gt;&lt;TD&gt;K5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M3L22DD1K6&lt;/TD&gt;&lt;TD&gt;K6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E3L22DD1K46&lt;/TD&gt;&lt;TD&gt;K46&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E3L22DD1K47&lt;/TD&gt;&lt;TD&gt;K47&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E3L22DD1K48&lt;/TD&gt;&lt;TD&gt;K48&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E3L22DD1K49&lt;/TD&gt;&lt;TD&gt;K49&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E3L22DD1K50&lt;/TD&gt;&lt;TD&gt;K50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E3L22DD1K51&lt;/TD&gt;&lt;TD&gt;K51&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E3L22DD1K52&lt;/TD&gt;&lt;TD&gt;K52&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:41:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324835#M57421</guid>
      <dc:creator>qspringleaf</dc:creator>
      <dc:date>2023-06-09T23:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question about "word" formula, purpose to split one character and get key shorten word</title>
      <link>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324854#M57422</link>
      <description>&lt;P&gt;Here is the formula that I would use in creating the Short ID column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "Short ID", character, formula( "K" || Word( -1, :Batch ID, "K" )&amp;nbsp;)&amp;nbsp;);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 02:44:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324854#M57422</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-22T02:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Question about "word" formula, purpose to split one character and get key shorten word</title>
      <link>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324855#M57423</link>
      <description>&lt;P&gt;thanks sir, it works well if the name follow same rule.&lt;/P&gt;&lt;P&gt;but if one row content is changed as unexpected, for example "M3&lt;FONT size="5" color="#FF0000"&gt;L22DD1&lt;/FONT&gt;X10_I35_O55", what I want is short name "X10_I35_O55", do have better solution.&lt;/P&gt;&lt;P&gt;then keep use "&lt;FONT size="5" color="#ff0000"&gt;L22DD1"&lt;/FONT&gt; &lt;FONT size="4" color="#000000"&gt;&lt;FONT size="5" color="#ff0000"&gt;&amp;nbsp;&lt;/FONT&gt;separate&lt;FONT size="5" color="#ff0000"&gt;&lt;FONT size="4" color="#000000"&gt;&amp;nbsp;the word to two parts and get the last one.&amp;nbsp;M3&lt;FONT size="5" color="#FF0000"&gt;L22DD1&lt;/FONT&gt;X10_I35_O55--&amp;gt;X10_I35_O55?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 03:48:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324855#M57423</guid>
      <dc:creator>qspringleaf</dc:creator>
      <dc:date>2020-10-22T03:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Question about "word" formula, purpose to split one character and get key shorten word</title>
      <link>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324863#M57425</link>
      <description>Hi,&lt;BR /&gt;The problem with using a string as delimiter is that the function Word() does not understand it a unique string but as a collection of individual delimiters. Hence, in your example where M3L22DD1K41 yields K4, the digit "1" in your delimiter is found in the string "L22DD1".&lt;BR /&gt;One way to solve this is to use the Substitute function within the Word function as follows:&lt;BR /&gt;Word (2, substitute (:BATCH_ID, "L22DD1", "-"),"-")&lt;BR /&gt;This way every occurence of "L22DD1" is replace within the formula by "-" and then the desired word is extracted based on the "-" delimiter&lt;BR /&gt;Hope it helps.&lt;BR /&gt;Best&lt;BR /&gt;TS</description>
      <pubDate>Thu, 22 Oct 2020 05:08:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324863#M57425</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2020-10-22T05:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question about "word" formula, purpose to split one character and get key shorten word</title>
      <link>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324864#M57426</link>
      <description>&lt;P&gt;so thankful for help, it works well now and also understand more about function of&amp;nbsp; "word".&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 05:15:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324864#M57426</guid>
      <dc:creator>qspringleaf</dc:creator>
      <dc:date>2020-10-22T05:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Question about "word" formula, purpose to split one character and get key shorten word</title>
      <link>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324933#M57432</link>
      <description>&lt;P&gt;If you know what the break string is, i.e.&amp;nbsp;&lt;SPAN&gt;L22DD1, then the 2 parts can be identified and separated with the following 2 assignment statements&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For the Short ID&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Substr( :Batch ID, Contains( :Batch ID, "L22DD1" ) + 6 )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;For the First Part of the Batch ID&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Substr( :Batch ID, 1, Contains( :Batch ID, "L22DD1" ) + 5 )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Oct 2020 09:16:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-about-quot-word-quot-formula-purpose-to-split-one/m-p/324933#M57432</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-22T09:16:32Z</dc:date>
    </item>
  </channel>
</rss>

