<?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 Formula needed  to remove non numeric from a numeric field in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Formula-needed-to-remove-non-numeric-from-a-numeric-field/m-p/18944#M17267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a formula to remove a non numeric from a numeric data field ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2016 18:37:41 GMT</pubDate>
    <dc:creator>vinkane</dc:creator>
    <dc:date>2016-06-08T18:37:41Z</dc:date>
    <item>
      <title>Formula needed  to remove non numeric from a numeric field</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-needed-to-remove-non-numeric-from-a-numeric-field/m-p/18944#M17267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a formula to remove a non numeric from a numeric data field ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 18:37:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-needed-to-remove-non-numeric-from-a-numeric-field/m-p/18944#M17267</guid>
      <dc:creator>vinkane</dc:creator>
      <dc:date>2016-06-08T18:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Formula needed  to remove non numeric from a numeric field</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-needed-to-remove-non-numeric-from-a-numeric-field/m-p/18945#M17268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming your existing column is character data type, and your new column with a formula is numeric, you can set the column formula for the new numeric column to be: try(num(:col))&amp;nbsp; where col is the column name.&amp;nbsp; This seems to work without the try statement, so I suppose you can just use num(:col). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 21:04:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-needed-to-remove-non-numeric-from-a-numeric-field/m-p/18945#M17268</guid>
      <dc:creator>mikedriscoll</dc:creator>
      <dc:date>2016-06-08T21:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Formula needed  to remove non numeric from a numeric field</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-needed-to-remove-non-numeric-from-a-numeric-field/m-p/18946#M17269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See examples below. The first removes everything but integers. The second allows for decimal numbers (assuming period as delimiter).&lt;/P&gt;&lt;P&gt;Formatted numerics such as dates or scientific notation require a little more complex search string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 15px; line-height: normal; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;pi&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt;":3b@./14Q15%9"&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 15px; line-height: normal; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;num&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #032ce4;"&gt;Regex&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;pi&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #942193;"&gt;"[^0-9]+"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #942193;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Globalreplace&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier; font-size: 15px; color: #032ce4;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px; color: #032ce4;"&gt;Regex&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px;"&gt;pi&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px; color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px; color: #942193;"&gt;"[^0-9.]+"&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px; color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px; color: #942193;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px; color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px;"&gt; Globalreplace&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px;"&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 15px; color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier; font-size: 15px; color: #011993;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier; font-size: 15px; color: #011993;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: just learned this has posted before. See Craige's excellent post in this thread &lt;A _jive_internal="true" href="https://community.jmp.com/thread/65675" style="font-size: 10pt;"&gt;Extract numbers from string in JSL &lt;/A&gt;&lt;A _jive_internal="true" href="https://community.jmp.com/thread/65675" style="font-size: 10pt;"&gt; &lt;/A&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 22:24:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-needed-to-remove-non-numeric-from-a-numeric-field/m-p/18946#M17269</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2016-06-08T22:24:27Z</dc:date>
    </item>
  </channel>
</rss>

