<?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: subtract cells from different rows in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/subtract-cells-from-different-rows/m-p/749966#M93048</link>
    <description>&lt;P&gt;it works great. Thank you so much&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2024 19:42:42 GMT</pubDate>
    <dc:creator>AFaiz</dc:creator>
    <dc:date>2024-04-25T19:42:42Z</dc:date>
    <item>
      <title>subtract cells from different rows</title>
      <link>https://community.jmp.com/t5/Discussions/subtract-cells-from-different-rows/m-p/748039#M92810</link>
      <description>&lt;P&gt;is there a way to do this calculation in JMP?&lt;/P&gt;&lt;P&gt;i would like to subtract cell 1 from cell 2 and place the result in a new column, cell3 from cell4, and so on.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AFaiz_0-1713470057756.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63480iE15C7161D9B55E2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AFaiz_0-1713470057756.png" alt="AFaiz_0-1713470057756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 19:56:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/subtract-cells-from-different-rows/m-p/748039#M92810</guid>
      <dc:creator>AFaiz</dc:creator>
      <dc:date>2024-04-18T19:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: subtract cells from different rows</title>
      <link>https://community.jmp.com/t5/Discussions/subtract-cells-from-different-rows/m-p/748041#M92812</link>
      <description>&lt;P&gt;You can use Lag() to access values from other rows of a column. Then you can create a formula using Lag between those two columns you have&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

dt &amp;lt;&amp;lt; New Column("S", Numeric, Continuous, Formula(
	Lag(:weight) - :height 
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 20:06:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/subtract-cells-from-different-rows/m-p/748041#M92812</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-18T20:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: subtract cells from different rows</title>
      <link>https://community.jmp.com/t5/Discussions/subtract-cells-from-different-rows/m-p/749966#M93048</link>
      <description>&lt;P&gt;it works great. Thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 19:42:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/subtract-cells-from-different-rows/m-p/749966#M93048</guid>
      <dc:creator>AFaiz</dc:creator>
      <dc:date>2024-04-25T19:42:42Z</dc:date>
    </item>
  </channel>
</rss>

