<?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: Formula to remove first three characters from a alpha-numeric string in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266476#M51910</link>
    <description>&lt;P&gt;If the column you are reading from is actually a character column, and not a numeric column with a format applied to it, then the substring is what you want to use.&amp;nbsp; Make sure the column is a character column. and if so, the below will work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;a="Thu 01/02/2020 10:42 PM";

b=substr(a,5);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The formula version of the above code if the original column is called "MyColumn"&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;substr(:MyColumn,5);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If not then you just need to change the format for the column&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2020 18:00:18 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-05-13T18:00:18Z</dc:date>
    <item>
      <title>Formula to remove first three characters from a alpha-numeric string</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266468#M51907</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I remove "Thu" from the alphanumeric string "Thu 01/02/2020 10:42 PM" using and assigning a formulae, to a column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using below formulas and it doesn't work. what am I doing wrong?&lt;/P&gt;&lt;P&gt;1. left&lt;/P&gt;&lt;P&gt;2. right&lt;/P&gt;&lt;P&gt;3. word&lt;/P&gt;&lt;P&gt;4. substr&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 17:32:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266468#M51907</guid>
      <dc:creator>tajrida</dc:creator>
      <dc:date>2020-05-13T17:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to remove first three characters from a alpha-numeric string</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266476#M51910</link>
      <description>&lt;P&gt;If the column you are reading from is actually a character column, and not a numeric column with a format applied to it, then the substring is what you want to use.&amp;nbsp; Make sure the column is a character column. and if so, the below will work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;a="Thu 01/02/2020 10:42 PM";

b=substr(a,5);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The formula version of the above code if the original column is called "MyColumn"&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;substr(:MyColumn,5);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If not then you just need to change the format for the column&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 18:00:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266476#M51910</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-13T18:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to remove first three characters from a alpha-numeric string</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266485#M51911</link>
      <description>&lt;P&gt;Your suggestion is working fine for other character columns in the table BUT not for the column with specific format i.e.,&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;a="Thu 01/02/2020 10:42 PM";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I also checked and verified column properties to ensure it is a "character" column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 18:44:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266485#M51911</guid>
      <dc:creator>tajrida</dc:creator>
      <dc:date>2020-05-13T18:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to remove first three characters from a alpha-numeric string</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266542#M51920</link>
      <description>&lt;P&gt;attach a sample data table please&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 22:05:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266542#M51920</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-13T22:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to remove first three characters from a alpha-numeric string</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266544#M51922</link>
      <description>&lt;P&gt;Thanks. Attached here is the test data file&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 23:34:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266544#M51922</guid>
      <dc:creator>tajrida</dc:creator>
      <dc:date>2020-05-13T23:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to remove first three characters from a alpha-numeric string</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266545#M51923</link>
      <description>&lt;P&gt;I created a new column and placed this formula in it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Substr(:Preparation date, 5)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and it worked without issue.&amp;nbsp; See my attached file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 00:11:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-to-remove-first-three-characters-from-a-alpha-numeric/m-p/266545#M51923</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-14T00:11:51Z</dc:date>
    </item>
  </channel>
</rss>

