<?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: Converting alphabet to digits in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Converting-alphabet-to-digits/m-p/227553#M45150</link>
    <description>&lt;P&gt;check to see if you only have 1 word and if so, then change the response&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;if(word(2, :Column 1, " ") == "",
     do what you want if only one letter,
    Word( 1, :Column 1, " " ) || Char(
	Hex To Number( Hex( Word( 2, :Column 1, " " ) ) ) - 64
    )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 27 Sep 2019 20:06:53 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-09-27T20:06:53Z</dc:date>
    <item>
      <title>Converting alphabet to digits</title>
      <link>https://community.jmp.com/t5/Discussions/Converting-alphabet-to-digits/m-p/227514#M45134</link>
      <description>&lt;P&gt;I have a column that contains vaalues like M N , Y Z etc.&lt;/P&gt;&lt;P&gt;I need to remove the space in between,swap the characters and convert last alphabet to digit.&lt;/P&gt;&lt;P&gt;That means -&lt;/P&gt;&lt;P&gt;input : M N&lt;/P&gt;&lt;P&gt;output : N13&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 16:05:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Converting-alphabet-to-digits/m-p/227514#M45134</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2019-09-27T16:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Converting alphabet to digits</title>
      <link>https://community.jmp.com/t5/Discussions/Converting-alphabet-to-digits/m-p/227527#M45137</link>
      <description>&lt;P&gt;This will work for your displayed case....but I don't know if it is complete enough.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
word(2,:targetvariable," ") || Char( contains( alphabet, word(1,:targetvariable," ")))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; This is a formula that can be used for a formula for a new column.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 16:25:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Converting-alphabet-to-digits/m-p/227527#M45137</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-09-27T16:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Converting alphabet to digits</title>
      <link>https://community.jmp.com/t5/Discussions/Converting-alphabet-to-digits/m-p/227547#M45145</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the following Formula (copy - paste in the Formula Editor)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Word( 1, :Column 1, " " ) || Char(
	Hex To Number( Hex( Word( 2, :Column 1, " " ) ) ) - 64
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is a snapshot of what the table will look like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SIMPLE TABLE.PNG" style="width: 718px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19498i366A8512D874001B/image-size/large?v=v2&amp;amp;px=999" role="button" title="SIMPLE TABLE.PNG" alt="SIMPLE TABLE.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 18:26:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Converting-alphabet-to-digits/m-p/227547#M45145</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2019-09-27T18:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Converting alphabet to digits</title>
      <link>https://community.jmp.com/t5/Discussions/Converting-alphabet-to-digits/m-p/227550#M45148</link>
      <description>Thanks for the response.For M N , the expected output is N13. I was able to change the Word function and get this working. There can be cases when column 1 has only one alphabet like "A". In this case i need to print A0 in column 2. How can I extend the code to do this?&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Sep 2019 18:54:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Converting-alphabet-to-digits/m-p/227550#M45148</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2019-09-27T18:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Converting alphabet to digits</title>
      <link>https://community.jmp.com/t5/Discussions/Converting-alphabet-to-digits/m-p/227553#M45150</link>
      <description>&lt;P&gt;check to see if you only have 1 word and if so, then change the response&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;if(word(2, :Column 1, " ") == "",
     do what you want if only one letter,
    Word( 1, :Column 1, " " ) || Char(
	Hex To Number( Hex( Word( 2, :Column 1, " " ) ) ) - 64
    )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Sep 2019 20:06:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Converting-alphabet-to-digits/m-p/227553#M45150</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-09-27T20:06:53Z</dc:date>
    </item>
  </channel>
</rss>

