<?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: New column from existing one with dashes and periods in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/New-column-from-existing-one-with-dashes-and-periods/m-p/747111#M92690</link>
    <description>&lt;P&gt;You can for example use If + Contains in a Formula&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Contains(:document, "399"),
	"399"
,
	"Standard"
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2024 12:55:22 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-04-15T12:55:22Z</dc:date>
    <item>
      <title>New column from existing one with dashes and periods</title>
      <link>https://community.jmp.com/t5/Discussions/New-column-from-existing-one-with-dashes-and-periods/m-p/747102#M92688</link>
      <description>&lt;P&gt;Hi, I am new to programming in general and am having trouble with this one column in JMP. I want to create a new column from one that is autogenerated, but my if/ then statements aren't working. I think its because sometimes there are words and spaces within the strings of numbers and often dashes and periods. I am looking for only one number within a string of numbers. Sometimes it will be at the front, sometimes sandwiched in the middle. I want to find the strings with the number 399 in there somewhere, all others will be standard. Can someone help? Example:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;document&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;requisition&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;100-399-214.2&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;399&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;399-214.2-199&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;399&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;100-100-344&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;standard&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;214.2-100 and 598-100-399&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;399&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 15 Apr 2024 12:45:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/New-column-from-existing-one-with-dashes-and-periods/m-p/747102#M92688</guid>
      <dc:creator>MultipleLion305</dc:creator>
      <dc:date>2024-04-15T12:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: New column from existing one with dashes and periods</title>
      <link>https://community.jmp.com/t5/Discussions/New-column-from-existing-one-with-dashes-and-periods/m-p/747111#M92690</link>
      <description>&lt;P&gt;You can for example use If + Contains in a Formula&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Contains(:document, "399"),
	"399"
,
	"Standard"
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 12:55:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/New-column-from-existing-one-with-dashes-and-periods/m-p/747111#M92690</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-15T12:55:22Z</dc:date>
    </item>
  </channel>
</rss>

