<?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: How to create a formula column that extract letters/numbers from an ID? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343425#M59269</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this work for you?:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Substr( :Original Value, -5, 5 )&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 21 Dec 2020 09:42:50 GMT</pubDate>
    <dc:creator>HadleyMyers</dc:creator>
    <dc:date>2020-12-21T09:42:50Z</dc:date>
    <item>
      <title>How to create a formula column that extract letters/numbers from an ID?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343385#M59265</link>
      <description>&lt;P&gt;I have a list of ID numbers. However, I only number which is important to me is the last five digits from the ID number. I'm sure there's a formula column script we could utilize to perform this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;The id number that i have is&amp;nbsp;24KL-L200123. I just need to create a formula column that could pull the last 5 digits and the end result would be 00123.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. sincerely appreciate any advise on this&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:09:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343385#M59265</guid>
      <dc:creator>Danial1</dc:creator>
      <dc:date>2023-06-11T11:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a formula column that extract letters/numbers from an ID?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343424#M59268</link>
      <description>&lt;P&gt;Are the ID numbers always similar format to your example? As in are the last five characters in the string always digits you want? If they are you could use Right() function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Right("24KL-L200123",5);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 09:42:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343424#M59268</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2020-12-21T09:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a formula column that extract letters/numbers from an ID?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343425#M59269</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this work for you?:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Substr( :Original Value, -5, 5 )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Dec 2020 09:42:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343425#M59269</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2020-12-21T09:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a formula column that extract letters/numbers from an ID?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343426#M59270</link>
      <description>&lt;P&gt;it worked. I'm interested to know what's the fundamental behind this. Could you share them a little in detail. Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 10:27:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343426#M59270</guid>
      <dc:creator>Danial1</dc:creator>
      <dc:date>2020-12-21T10:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a formula column that extract letters/numbers from an ID?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343446#M59272</link>
      <description>&lt;P&gt;I suggest checking out JMP Scripting Index (from JMP go to Help / Scripting Index) and &lt;A href="https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/character-functions.shtml" target="_self"&gt;https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/character-functions.shtml&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right(&lt;EM&gt;string&lt;/EM&gt;, &lt;EM&gt;count&lt;/EM&gt;:(&lt;/img&gt; returns a substring of the right-most&amp;nbsp;&lt;EM&gt;count&amp;nbsp;&lt;/EM&gt;characters of the &lt;EM&gt;string&lt;/EM&gt;&lt;SPAN class="Emphasis"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Emphasis"&gt;Substr(&lt;EM&gt;string&lt;/EM&gt;, &lt;EM&gt;startIndex&lt;/EM&gt;, &lt;EM&gt;count&lt;/EM&gt;:(&lt;/img&gt; extracts the characters that are the portion of the first argument &lt;EM&gt;string&lt;/EM&gt;. Begins at the position given by the second argument (&lt;EM&gt;startIndex&lt;/EM&gt;), and ends based on the number of characters specified in the third argument (&lt;EM&gt;count&lt;/EM&gt;).&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;If&amp;nbsp;&lt;SPAN class="Emphasis"&gt;start&lt;/SPAN&gt;&amp;nbsp;is negative&lt;/STRONG&gt;,&amp;nbsp;&lt;SPAN class="command"&gt;Substr&lt;/SPAN&gt;&amp;nbsp;searches backward from&amp;nbsp;&lt;SPAN class="Emphasis"&gt;start&lt;/SPAN&gt;&amp;nbsp;from the end of the string. If&amp;nbsp;&lt;SPAN class="Emphasis"&gt;length&lt;/SPAN&gt;&amp;nbsp;is negative or absent,&amp;nbsp;&lt;SPAN class="command"&gt;Substr&lt;/SPAN&gt;&amp;nbsp;returns a string that begins with&amp;nbsp;&lt;SPAN class="Emphasis"&gt;start&lt;/SPAN&gt;&amp;nbsp;and continues to the end of the text string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 10:49:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343446#M59272</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2020-12-21T10:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a formula column that extract letters/numbers from an ID?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343449#M59275</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7531"&gt;@HadleyMyers&lt;/a&gt;&amp;nbsp;response using the Substr() function, is the method that I most frequently use, there is a function that has been added that actually enhances the readability of the code and provides the specific functionality that you need.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Right( :Original Value, 5 )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Dec 2020 13:33:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-formula-column-that-extract-letters-numbers-from/m-p/343449#M59275</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-12-21T13:33:34Z</dc:date>
    </item>
  </channel>
</rss>

